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. -
#12886
cache the resulting file inSemantics::original_ast_node
. -
#12887
don’t duplicate existing&mut
in completions. -
#12895
compte completions after type anchors. -
#12830
insert references in the correct position in macros. -
#12898
don’t add unnecessary brackets in pattern completions. -
#12899
offer completions in path qualifier position. -
#12901
don’t complete marker traits in expression position. -
#12906
complete paths of existing record expressions. -
#12913
fix highlight injection with doc comments. -
#12891
increase stack size on macro expander thread.
Internal Improvements
-
#12890
assume condition/iterable is missing if there is only aBlockExpr
infor
andwhile
loops. -
#12902
sortItemScope::entries
results. -
#12900
usecargo ws rename
to rename crates for publishing. -
#12903
only run rainbow highlighting test on 64-bit Unix. -
#12904
be more explicit when filtering built-in completions. -
#12915
updatextask promote
and release instructions. -
#12871
sync fromrust-lang/rust
.