1

Changelog #122

 2 years ago
source link: https://rust-analyzer.github.io/thisweek/2022/03/28/changelog-122.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 #122

Mar 28, 2022

New Features

  • #11780 add experimental type mismatch diagnostic (can be disabled using "rust-analyzer.diagnostics.disabled": ["type-mismatch"]):

    Your browser does not support the video tag.

  • #11772 support constants in const eval:

    159888144 52e538c6 2034 4e61 b947 a4c4296ee46a
  • #11809 disable experimental diagnostics by default (can be re-enabled using rust-analyzer.diagnostics.enableExperimental).

Fixes

  • #11789 rename lifetime elision hint configuration key to rust-analyzer.inlayHints.lifetimeElisionHints.enable.

  • #11805 don’t try to resolve methods on unknown types.

  • #11800 fix #[macro_use] no longer importing non-macro_rules! macros.

  • #11806 fix async block type inference using containing function return type.

  • #11797 fix unwrap on a None value in proc macros built with Rust 1.57.0.

  • #11801 avoid returning None from Span::join to fix some proc macros.

  • #11826 stop emitting #[must_use] in Generate new assist.

  • #11782 fix flyimport showing functions in pattern position.

  • #11785 fix tuple- and record struct completions not working with existing braces.

  • #11786 don’t add wildcard pattern for fill_match_arms with local enums.

  • #11795 correctly suggest auto importing traits from aliases.

  • #11791 fix and improve signature help.

  • #11802 add stubs to make proc macros work that use the SourceFile API.

  • #11825 don’t complete Drop::drop for qualified paths.

  • #11831 disable ref_match for qualified paths as well.

Internal Improvements

  • #11793 (first contribution) consolidate LSIF references into a single edge where possible.

  • #11788 improve find_path and extern prelude handling.

  • #11833 move mismatched arg count diagnostic to inference.

  • #11776 replace write! with direct Formatter calls.

  • #11810 rename the 1.47 proc macro ABI to 1.48.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK