|
| 1 | += Changelog #72 |
| 2 | +:sectanchors: |
| 3 | +:page-layout: post |
| 4 | + |
| 5 | +Commit: commit:7be06139b632ee615fc18af04dd67947e2c794b2[] + |
| 6 | +Release: release:2021-04-12[] |
| 7 | + |
| 8 | +== Sponsors |
| 9 | + |
| 10 | +**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or |
| 11 | +https://github.com/sponsors/rust-analyzer[GitHub Sponsors]. |
| 12 | + |
| 13 | +== New Features |
| 14 | + |
| 15 | +* pr:8388[] auto-close blocks when typing `{`: |
| 16 | ++ |
| 17 | +image::https://user-images.githubusercontent.com/1786438/114024061-e8d70a00-9873-11eb-89d6-c50296cbf495.gif[] |
| 18 | +* pr:8375[] show errors from `cargo metadata` and initial `cargo check` in the status bar. |
| 19 | +* pr:8410[] support `InsertReplaceSupport` capability |
| 20 | + |
| 21 | + |
| 22 | +== Fixes |
| 23 | + |
| 24 | +* pr:8433[] intern lots of things (great for memory usage): |
| 25 | ++ |
| 26 | +image::https://user-images.githubusercontent.com/308347/114185930-f1504300-994e-11eb-8e99-7925c54ab3c3.png[] |
| 27 | +* pr:8406[] improve indexing of impls (great for analysis speed): |
| 28 | ++ |
| 29 | +image::https://user-images.githubusercontent.com/308347/114210350-595f5300-9968-11eb-87aa-b7835faafdb8.png[] |
| 30 | +* pr:8355[] do not drop errors from `cargo metadata` and `cargo check`. |
| 31 | +* pr:8339[] fix "Extract variable" assist in guards. |
| 32 | +* pr:8245[] properly resolve intra-doc links in hover and goto_definition. |
| 33 | +* pr:8371[] don't use `HirDisplayWrapper` when displaying `SourceCode`. |
| 34 | +* pr:8381[] lower attributes on tuple fields. |
| 35 | +* pr:8386[] avoid O(n²) when constructing `AttrSourceMap`. |
| 36 | +* pr:8389[] do not import on the fly inside record literal fields. |
| 37 | +* pr:8390[] support trait impls in unnamed consts. |
| 38 | +* pr:8392[] (first contribution) add space after lifetime in "Expand macro" output. |
| 39 | +* pr:8394[] infer variants through type aliased enums. |
| 40 | +* pr:8397[] (first contribution) improve "still loading" error message. |
| 41 | +* pr:8412[] emit folding ranges for multiline array literals. |
| 42 | +* pr:8207[] offer "Remove `dbg!`" assist on empty calls. |
| 43 | +* pr:8421[] reduce allocations in "Expand macro" formatter. |
| 44 | +* pr:8426[] track recursion limit when expanding custom derive. |
| 45 | +* pr:8431[] add trait member token modifier to associated types. |
| 46 | +* pr:8440[] fix crash on `syn` involving lifetimes returned by Chalk. |
| 47 | +* pr:8444[] shrink `unlinked-file` diagnostic to 3 characters. |
| 48 | +* pr:8447[] resolve prelude and crate root names in the root `DefMap`. |
| 49 | +* pr:8450[] don't ignore unnamed consts when looking for definitions. |
| 50 | +* pr:8457[] don't assume wrong binary operator return type when primitives are involved. |
| 51 | +* pr:8436[] fix "Extract function"'s mutability of variables outliving the body. |
| 52 | +* pr:8463[] support macros in pattern position. |
| 53 | + |
| 54 | + |
| 55 | +== Internal Improvements |
| 56 | + |
| 57 | +* pr:8334[] intern and shrink more data to reduce memory usage. |
| 58 | +* pr:8337[] explain "extract if condition" refactoring. |
| 59 | +* pr:8326[] rewrite "Reorder fields" assist to use mutable syntax trees. |
| 60 | +* pr:8343[] document hypothetical completion problem. |
| 61 | +* pr:8348[], pr:8353[], pr:8359[], pr:8366[], pr:8419[] type inference now uses Chalk's types everywhere. |
| 62 | +* pr:8350[] prepare to store `OpQueue` results in the queue itself. |
| 63 | +* pr:8364[] (first contribution) slightly reduce the memory usage of some `enum`s |
| 64 | +* pr:8374[] intern `TypeRef`s stored in `Body`. |
| 65 | +* pr:8376[], pr:8380[] infer: remove redundant `record_field_resolutions` and `record_pat_field_resolutions` fields. |
| 66 | +* pr:8379[] document broken windows. |
| 67 | +* pr:8429[] add documentation and test for `//!` doc comment continuation on Enter. |
| 68 | +* pr:8384[] use linear regression to catch accidentally super-linear performance regressions. |
0 commit comments