4

Changelog #58

 3 years ago
source link: https://rust-analyzer.github.io/thisweek/2021/01/04/changelog-58.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 #58

Jan 4, 2021

New Features

  • #7130 add extract-assignment assist.

    103537043 b13b7900 4ea4 11eb 84b3 e570d7b92d98
  • #7091 rust-analyzer.server.extraEnv config to specify environment variables for rust-analyzer process.

  • #7107 add working dir to cargo metadata fail messages.

  • #7106 produce fine-grained diffs when formatting files.

  • #7071 pass --all-targets to cargo check when discovering project structure.

  • #7080 initial support for const type parameters.

  • #7121 show lifetimes and labels on hover.

  • #7123 basic support for 2021 edition.

Fixes

  • #7070 fix $0 inserted during edits.

  • #7088 fix false positive "unnecessary braces" diagnostic.

  • #7064 improve auto-importing completion speed and accuracy.

  • #7059 fix handling of $_ in macros.

  • #7075 use .format to trigger postfix format completion.

  • #7101 fix spacing bug in proc-macro.

  • #7055 don’t swallow the "rustfmt not installed error".

  • #7102 fix completion of Default struct update syntax.

  • #7116 fix proc-macros for deep trees.

  • #7125 don’t emit arg count diagnostics for method calls with unknown receiver.

  • #7134 fix type-inference for macro generated arrays.

  • #7136 fixed nested eager macros.

Internal Improvements

  • #7068 add VSCode command to view the rust-analyzer’s hir of a function body.

  • #7077, #7104 avoid allocations.

  • #7113 manual updates.

  • #7115 migrate HasSource::source to return an Option.

  • #7083 refactor mbe parsing code.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK