Changelog #140
Commit: 2b472f6
Release: 2022-08-01
An Update on Proc Macros
Rust toolchains newer than 2022-07-29 contain a proc macro server that should be compatible with macros built by the matching compiler.
Since today’s release, the server is automatically detected by and used rust-analyzer.
This means that, from now on, proc macros will keep working when the proc_macro crate changes.
For more details, you can read @fasterthanlime’s blog post.
Fixes
-
#12877(first contribution) insert whitespace when inlining a function defined in a macro. -
#12886cache the resulting file inSemantics::original_ast_node. -
#12887don’t duplicate existing&mutin completions. -
#12895compte completions after type anchors. -
#12830insert references in the correct position in macros. -
#12898don’t add unnecessary brackets in pattern completions. -
#12899offer completions in path qualifier position. -
#12901don’t complete marker traits in expression position. -
#12906complete paths of existing record expressions. -
#12913fix highlight injection with doc comments. -
#12891increase stack size on macro expander thread.
Internal Improvements
-
#12890assume condition/iterable is missing if there is only aBlockExprinforandwhileloops. -
#12902sortItemScope::entriesresults. -
#12900usecargo ws renameto rename crates for publishing. -
#12903only run rainbow highlighting test on 64-bit Unix. -
#12904be more explicit when filtering built-in completions. -
#12915updatextask promoteand release instructions. -
#12871sync fromrust-lang/rust.