github rust-lang/rust-analyzer 2023-05-22

latest releases: nightly, 2024-12-23, 2024-12-16...
19 months ago

Changelog #182

Commit: 7ac161c
Release: 2023-05-22 (v0.3.1524)

New Features

  • #14775 add #[doc(alias(..))]-based method completions:

    Screenshot showing completion for method aliases

  • #14811 render hover actions for closure captures and signature:

    Screenshot showing a closure hover with 'Go to' links for returned and captured types, and also its signature

  • #14812 highlight used associated trait items when cursor is on trait import or trait bound:

  • #14789 add moved-out-of-ref diagnostic:

    Screenshot showing a diagnostic when a local is moved out of a reference

  • #14845 add layout info for enum variant and locals:

    Screenshot showing the size of an enum variant on hover

  • #14837 support C string literals.

  • #14787 MIR episode 5, lower slice patterns and anonymous const blocks.

Fixes

  • #14848 (first contribution) traverse else blocks of let-else in preorder_expr.
  • #14809 support #[macro_use(name, ...)].
  • #14824 diagnose non-value return and break type mismatches.
  • #14825 fix evaluation of negation for floating point types.
  • #14828 process macro_use prelude in semantic scope resolver.
  • #14823 only render discriminant hints for data-carrying enums with primitive repr.
  • #14822 force-disable the augmentsSyntaxTokens capability on VS Code.
  • #14802 fix layout for hir_ty::Ty and friends.
  • #14820 expand format_args! with more details.
  • #14851 handle match scrutinee in closure captures.
  • #14855 consider block impls in lookup_impl_assoc_item_for_trait_ref.
  • #14863 consider all tokens in macro calls when analyzing locals.

Internal Improvements

  • #14746 parse unstable associated return type bounds.
  • #14794, #14818, #14835 restructure InlayHint, no longer derive properties from its kind.
  • #14810 inline handlers module.
  • #14834 do less file parsing for symbol index generation.
  • #14836 bump rustc_lexer.
  • #14843 partially support panic message in MirEvalError.
  • #14847 reduce MIR memory usage.
  • #14857 shrink ProcMacroExpander from 8 to 4 bytes.
  • #14819 fix division by zero in analysis-stats.

See also the changelog post.

Don't miss a new rust-analyzer release

NewReleases is sending notifications on new releases.