Changelog #17
Commit: aaa6961
Release: 2020-03-23
New Features
-
#3582fetch appropriate value ofOUT_DIRfromcargo check. This enables rust-analyzer to work correctly with crates which use compile-time code generation. This might significantly slow-down startup time (as we need to runcargo checkbuild), so this functionality is disabled by default. To enable, set:1
"rust-analyzer.cargoFeatures.loadOutDirsFromCheck": true
-
#3580macro expander is now more tolerant for syntax errors, which makes code completion inside macros more robust. -
#3623Fill Match Arms assist now works even if some arms are already present. -
#3607and instructions for installing rust-analyzer from AUR. -
#3640,#3651assist to merge imports with a common prefix.
-
#3662correctly part arbitrary enum discriminants. -
#3663installation from source usesrust-analyzerfrom$PATHby default. -
#3677includemacro_rules!macros in workspace symbols.
Fixes
-
#3541correctly complete constants and paths in patterns. -
#3668don’t suggest Invert If assist forif letsyntax. -
#3671fix infinite loop in macro expansion during completion. -
#3674use correct name for the library if it is renamed in Cargo.toml. -
#3673guard against runaway macro expansion in expressions. -
#3681only suggest machine-applicable suggestions fromcargo check. -
#3678fix rename behavior in macros.
Internal Improvements
-
#3584usedyn Traitwhen working with salsa database, which improves compile times in release mode. -
#3614in the TypeScript extension, be more explicit about persistent state. -
#3626check trailing whitespace on CI. -
#3629simplify and streamline plugin auto-update. -
#3635simplify extension versioning scheme. -
#3656simplify arena API. -
#3672assists documentation generator skips hidden files. -
#3632log errors fromcargo check.