Changelog #122
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
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: -
#11809
disable experimental diagnostics by default (can be re-enabled usingrust-analyzer.diagnostics.enableExperimental
).
Fixes
-
#11789
rename lifetime elision hint configuration key torust-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 aNone
value in proc macros built with Rust 1.57.0. -
#11801
avoid returningNone
fromSpan::join
to fix some proc macros. -
#11826
stop emitting#[must_use]
inGenerate 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 forfill_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 theSourceFile
API. -
#11825
don’t completeDrop::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
improvefind_path
and extern prelude handling. -
#11833
move mismatched arg count diagnostic to inference. -
#11776
replacewrite!
with directFormatter
calls. -
#11810
rename the 1.47 proc macro ABI to 1.48.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK