Changelog #33
Commit: 5ca7cd9
Release: 2020-07-13
Sponsors
Ferrous Systems is a Berlin based consultancy focused on the Rust Programming language. Ferrous Systems offers advice, training, open source development, and proprietary development services for a wide variety of applications in Rust, including embedded systems, compiler/tooling components, and web/backend technologies. This week, Ferrous Systems is running Oxidize Global, an online conference for embedded systems in Rust! Thanks to Ferrous Systems for supporting open source projects like rust-analyzer!
Become a sponsor: opencollective.com/rust-analyzer
New Features
-
#5293,#5299automatically reload workspace onCargo.tomland similar changes.
-
rust-analyzer is available via rustup:
1 2 3 4 5 6 7
$ rustup update nightly info: syncing channel updates ... $ rustup component add \ --toolchain nightly rust-analyzer-preview info: installing component ... $ rustup run nightly rust-analyzer --version rust-analyzer 8b0983e
At the moment, the recommended way to install rust-analyzer is still via GitHub release.
-
#4972gzip rust-analyzer releases. -
#5244add a command to compute memory usage statistics using Archimedes' method. -
#5270highlight error for calls with too few/too many arguments. -
#5284add folding for record literals. -
#5292Goto Type Definition works forself. -
#5294complete function parameters in more cases
-
#5314useparametersemantic tag for function parameters. -
#5326add type inference support for unions.
Fixes
-
#5319upgrade Chalk, fixing a number of type inference bugs. -
#5285correctly determine cursor position when rewriting to a raw strings:
-
#5243consider EPERM error as other vscode processes using rust-analyzer. -
#5252,#5255fix a bug where workspace symbols in workspace would skip symbols from top-level crate. -
#5280re-enable completion for incomplete impl blocks. -
#5288avoid accidentally overwriting config values. -
#5286cap the maximal number of syntax errors. -
#4996correctly generate new struct field in file containing struct def. -
#5311fix goto definition for type alias type parameters. -
#5324show implementation code lens for unions. -
#5328Change Visibility assist works on statics. -
#5330fixignoreattribute autocompletion.
Internal Improvements
-
#5303speed up code completion. -
#5307document how to profile code completion. -
#5242upgrade salsa to 0.15.0 which significantly improves rust-analyzer’s. compile times, by avoiding repeated monomorphisations. -
#5245prepareAssistBuilderfor assists which create new files. -
#5247modernize completion tests. -
#5312make a slow test parallel.