github rust-lang/rust-analyzer 2026-02-23

9 hours ago

Commit: 0c746f6
Release: 2026-02-23 (v0.3.2803)

Fixes

  • #21635 (first contribution) improve #[cfg] handling when inserting or merging imports.
  • #21665 (first contribution) don't qualify parameter names in add_missing_impl_members.
  • #21675 (first contribution) exclude references in macro calls inside tests when excludeTests is enabled.
  • #21664 handle cycles in sizedness_constraint_for_ty.
  • #21652, #21692 fix predicates of built-in derive traits with two parameters defaulting to Self.
  • #21655 complete derive helpers on empty namerefs.
  • #21594 complete postfix let and letm in match arms.
  • #21600 complete postfix let on block tail expression.
  • #21650 don't complete suggested parameters in complex patterns.
  • #21536 offer toggle_macro_delimiter in nested macro calls.
  • #21623 offer replace_is_method_with_if_let_method on is_some_and.
  • #21684 pick the enclosing instead of first impl block in generate_function.
  • #21688 correctly parenthesize inverted condition in convert_bool_then.
  • #20353 support selecting only a subset of fields in generate_getter_or_setter.
  • #21389 handle references better in convert_to_guarded_return, replace_if_let_with_match and replace_let_with_if_let.
  • #21657 support Span::span_source in proc macro expansion.

Internal Improvements

  • #21631 refactor handling of associated type shorthands.
  • #21630 use CARGO_RESOLVER_LOCKFILE_PATH for lockfile copies on 1.95 and later.
  • #21643 replace edit_in_place::Indent in generate_impl.
  • #21661, #21666 add integration tests for flycheck.

See also the changelog post.

Don't miss a new rust-analyzer release

NewReleases is sending notifications on new releases.