github rust-lang/rust-analyzer 2024-02-12

latest releases: 2024-11-25, nightly, 2024-11-18...
9 months ago

Changelog #220

Commit: c06ca6c
Release: 2024-02-12 (v0.3.1839)

New Features

  • #16510 add option to only run cargo check on the current package.
  • #16502 add unnecessary else diagnostic.
  • #16460 add trailing return diagnostic.
  • #16477 add incorrect case diagnostics for traits and their associated items.
  • #16454 add break and return postfix completions.
  • #16424 add support for converting let statements to guarded returns.
  • #15863 add UnindexedProject notification for LSP clients.

Fixes

  • #16487 (first contribution) improve Deref handling in "Generate getter" assist.
  • #16509 render visibility for tuple struct fields.
  • #16124 improve parser error recovery on missing arguments in call expressions.
  • #16484 preserve where clause when expanding built-in derive macros.
  • #16462 improve error message when proc-macros have not yet been built.
  • #16497 fix spacing when inlining functions defined in macros.
  • #16517 fix crash inside filter_unnecessary_bounds on missing generic parameter.

Internal Improvements

  • #16482 (first contribution) use boxed slice for Subtree::token_trees.
  • #16503 move salsa fork in-tree.
  • #16505 optimize input queries that take no arguments.
  • #16527 remove hack for self-referential SyntaxContexts.
  • #16467 migrate assists to the structured snippet API, part 6.
  • #16474 instrument more paths using tracing.
  • #16499 bump rustc_pattern_analysis.
  • #16525 abstract more over ItemTreeLoc-like structs.
  • #16470 lint against debug prints and disallowed types using Clippy.
  • #16500 run Clippy on Windows, not Linux.
  • #16518, #16519, #16521 enable more Clippy lints.
  • #16492, #16532 sync from downstream.

See also the changelog post.

Don't miss a new rust-analyzer release

NewReleases is sending notifications on new releases.