Changelog #72
Commit: 7be0613
Release: 2021-04-12
Sponsors
Become a sponsor: On OpenCollective or GitHub Sponsors.
Fixes
-
#8433intern lots of things (great for memory usage):
-
#8406improve indexing of impls (great for analysis speed):
-
#8355do not drop errors fromcargo metadataandcargo check. -
#8339fix "Extract variable" assist in guards. -
#8245properly resolve intra-doc links in hover and goto_definition. -
#8371don’t useHirDisplayWrapperwhen displayingSourceCode. -
#8381lower attributes on tuple fields. -
#8386avoid O(n²) when constructingAttrSourceMap. -
#8389do not import on the fly inside record literal fields. -
#8390support trait impls in unnamed consts. -
#8392(first contribution) add space after lifetime in "Expand macro" output. -
#8394infer variants through type aliased enums. -
#8397(first contribution) improve "still loading" error message. -
#8412emit folding ranges for multiline array literals. -
#8207offer "Remove `dbg!`" assist on empty calls. -
#8421reduce allocations in "Expand macro" formatter. -
#8426track recursion limit when expanding custom derive. -
#8431add trait member token modifier to associated types. -
#8440fix crash onsyninvolving lifetimes returned by Chalk. -
#8444shrinkunlinked-filediagnostic to 3 characters. -
#8447resolve prelude and crate root names in the rootDefMap. -
#8450don’t ignore unnamed consts when looking for definitions. -
#8457don’t assume wrong binary operator return type when primitives are involved. -
#8436fix "Extract function"'s mutability of variables outliving the body. -
#8463support macros in pattern position.
Internal Improvements
-
#8334intern and shrink more data to reduce memory usage. -
#8337explain "extract if condition" refactoring. -
#8326rewrite "Reorder fields" assist to use mutable syntax trees. -
#8343document hypothetical completion problem. -
#8348,#8353,#8359,#8366,#8419type inference now uses Chalk’s types everywhere. -
#8350prepare to storeOpQueueresults in the queue itself. -
#8364(first contribution) slightly reduce the memory usage of some `enum`s -
#8374internTypeRefs stored inBody. -
#8376,#8380infer: remove redundantrecord_field_resolutionsandrecord_pat_field_resolutionsfields. -
#8379document broken windows. -
#8429add documentation and test for//!doc comment continuation on Enter. -
#8384use linear regression to catch accidentally super-linear performance regressions.