0

Changelog #111

 1 year ago
source link: https://rust-analyzer.github.io/thisweek/2022/01/10/changelog-111.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Changelog #111

Jan 10, 2022

New Features

  • #11112 evaluate constants in array repeat expression:

    148725908 da1a03de 83dd 4e4e afd1 b3ae326e298b
  • #11193 add setting to replace specific proc-macros with dummy expanders:

    148529907 12f2442d 627a 4484 8e16 aa903a249bc8
  • #11208 expand attribute macros on impl and trait items.

  • #11214 poke user when supplying faulty configurations.

  • #11145 add setting to use reasonable default expressions when filling missing fields.

Fixes

  • #11107 (first contribution) fix generic type substitution when implementing trait with associated type.

  • #11061 support Move if to guard on if-else chains.

  • #11178 keep block modifiers in Replace match with if let.

  • #11184 pass through mutable parameter references when extracting a function.

  • #11195 pass through reference modifiers when extracting a variable.

  • #11190 improve function parameter completion.

  • #11200, #11207 always put a space after dyn and impl in macro pretty-printing.

  • #11201 fix completions not considering ancestor items for attribute search.

  • #11202 fix hang in apply_demorgan assist.

  • #11204 shorten replacement path in replace_qualified_name_with_use.

  • #11211 fix parsing of #[derive] paths.

  • #11218 don’t insert &mut twice in parameter completion.

  • #11194 don’t include lifetime when generating documentation for new.

  • #11220 don’t include lifetime arguments in add_turbo_fish.

  • #11238 shrink the span of errors from attribute macros and derives.

  • #11187 rename and use the 1.55 proc macro ABI for 1.54.

Internal Improvements

  • #11115 refactor: avoid separate traversal in Replace filter_map().next() with find_map().

  • #11157 remove SemanticScope::speculative_resolve_as_mac.

  • #11189 remove lossy Definition::{from_token,from_node} methods.

  • #11216 support registered tools and attributes in ide layer.

  • #11225, #11230, #11237 clean up doc and attribute handling.

  • #11232 filter out macro calls by file id in when building DynMap.

  • #11235 record attribute calls on assoc items in TraitData and ImplData.

  • #11236 avoid InFile wrapping of DynMap keys.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK