Changelog #20
Commit: c388130
Release: 2020-04-13
New Features
-
#3875new release strategy: we now just promote Sunday’s nightly to stable. -
#3899enables semantic highlighting by default. -
#3706,#3884,#3938show native rust-analyzer’s diagnostics for not exhaustive patterns. As a reminder, all rust-analyzer diagnostics can be disabled with"rust-analyzer.diagnostics.enable"setting. -
#3925Reorder record fields assist to sort the fields in the declaration order.
-
#3902improve documentation for Sublime Text. -
#3901,#3910add more heuristics for hiding obvious param hints. -
#3905handle patterns with ellipsis. -
#3935generated trait methods now usetodo!rather thanunimplemented!.
Fixes
-
#3933fix accidentally quadratic behavior when expanding theinclude!macro. -
#3868fix panic in Chalk. -
#3872fix"rust-analyzer.checkOnSave.command"option. -
#3878when completing a macro call, don’t add()if they are already there. -
#3892fix "parser is stuck" error during macro expansion. -
#3912fix parsing of where clauses withFntraits. -
#3939canonicalize paths coming fromcargo metadata.
Internal Improvements
-
#3944speed up type inference by up to 30% percent. -
#3867addCIchecks for stray `eprintln`s. -
#3842,#3906,#3920copy libprocmacro from rustc. We will be using this library to load proc macro dynamic libraries. -
#3863use.rastextension for serialized syntax trees in tests. This adds syntax highlighting! -
#3876renamecomplete_scopeto hopefully less confusingcomplete_unqualified_path. -
#3882centralize the logic for computing missing struct fields. -
#3826when doing syntax highlighting, produce a flat list of ranges. -
#3909generate token accessors. -
#3913remove allocation from the "least common ancestor" algorithm. -
#3915format generated code in a more readable way. -
#3917improvett::Subtreedebug print. -
#3748implement Chalk’s debug methods using TLS. -
#3926align tokens names withsynsomewhat. -
#3940useactions-rsforcargo audit. -
#3942more precise typing of TypeScript config. -
#3949cleanup cfg handling. -
#3951,#3955simplify and unify grammar for record literals and patterns.