|
| 1 | += Changelog #182 |
| 2 | +:sectanchors: |
| 3 | +:experimental: |
| 4 | +:page-layout: post |
| 5 | + |
| 6 | +Commit: commit:7ac161ce77dfa31dc39337c2543a1d777e70c16e[] + |
| 7 | +Release: release:2023-05-22[] (`v0.3.1524`) |
| 8 | + |
| 9 | +== New Features |
| 10 | + |
| 11 | +* pr:14775[] add `#[doc(alias(..))]`-based method completions: |
| 12 | ++ |
| 13 | +image::https://user-images.githubusercontent.com/108802164/237368212-e7c69bb9-3da6-4d8f-a09b-fece1bdd1c0e.png["Screenshot showing completion for method aliases"] |
| 14 | +* pr:14811[] render hover actions for closure captures and signature: |
| 15 | ++ |
| 16 | +image::https://user-images.githubusercontent.com/308347/239809224-3df598fc-2203-41d8-8afa-3f0a0a360e00.png["Screenshot showing a closure hover with 'Go to' links for returned and captured types, and also its signature"] |
| 17 | +* pr:14812[] highlight used associated trait items when cursor is on trait import or trait bound: |
| 18 | ++ |
| 19 | +image::https://user-images.githubusercontent.com/308347/239808933-634a3e29-d79b-4f20-8370-64944e7c9f72.png["Screenshot showing usages of a trait items] |
| 20 | +* pr:14789[] add `moved-out-of-ref` diagnostic: |
| 21 | ++ |
| 22 | +image::https://user-images.githubusercontent.com/308347/239808632-c8362c50-10af-4463-a1f6-1428b901a02f.png["Screenshot showing a diagnostic when a local is moved out of a reference"] |
| 23 | +* pr:14845[] add layout info for enum variant and locals: |
| 24 | ++ |
| 25 | +image::https://user-images.githubusercontent.com/308347/239808173-1f4a2da1-8137-4661-9407-1a3615d38a07.png["Screenshot showing the size of an enum variant on hover"] |
| 26 | +* pr:14837[] support C string literals. |
| 27 | +* pr:14787[] MIR episode 5, lower slice patterns and anonymous `const` blocks. |
| 28 | + |
| 29 | +== Fixes |
| 30 | + |
| 31 | +* pr:14848[] (first contribution) traverse `else` blocks of `let-else` in `preorder_expr`. |
| 32 | +* pr:14809[] support `#[macro_use(name, ...)]`. |
| 33 | +* pr:14824[] diagnose non-value `return` and `break` type mismatches. |
| 34 | +* pr:14825[] fix evaluation of negation for floating point types. |
| 35 | +* pr:14828[] process `macro_use` prelude in semantic scope resolver. |
| 36 | +* pr:14823[] only render discriminant hints for data-carrying enums with primitive `repr`. |
| 37 | +* pr:14822[] force-disable the `augmentsSyntaxTokens` capability on VS Code. |
| 38 | +* pr:14802[] fix layout for `hir_ty::Ty` and friends. |
| 39 | +* pr:14820[] expand `format_args!` with more details. |
| 40 | +* pr:14851[] handle match scrutinee in closure captures. |
| 41 | +* pr:14855[] consider block impls in `lookup_impl_assoc_item_for_trait_ref`. |
| 42 | +* pr:14863[] consider all tokens in macro calls when analyzing locals. |
| 43 | + |
| 44 | +== Internal Improvements |
| 45 | + |
| 46 | +* pr:14746[] parse unstable associated return type bounds. |
| 47 | +* pr:14794[], pr:14818[], pr:14835[] restructure `InlayHint`, no longer derive properties from its kind. |
| 48 | +* pr:14810[] inline handlers module. |
| 49 | +* pr:14834[] do less file parsing for symbol index generation. |
| 50 | +* pr:14836[] bump `rustc_lexer`. |
| 51 | +* pr:14843[] partially support panic message in `MirEvalError`. |
| 52 | +* pr:14847[] reduce MIR memory usage. |
| 53 | +* pr:14857[] shrink `ProcMacroExpander` from 8 to 4 bytes. |
| 54 | +* pr:14819[] fix division by zero in `analysis-stats`. |
0 commit comments