Changelog #121

Commit: b594f9c
Release: 2022-03-21

Sponsors

Become a sponsor: On OpenCollective or GitHub Sponsors.

New Features

  • #11731 add return type hints for closures with block bodies (enable with rust-analyzer.inlayHints.closureReturnTypeHints):

    158839001 de6ec76d e4e9 4c70 98e0 2c0c4a62b42c
  • #11755 implement lifetime elision hints (enable with rust-analyzer.inlayHints.lifetimeElisionHints and rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames):

    159134856 e2c75d2d f17c 45c7 9a78 3da5ee8b1acd
    159134857 30fac3a1 825e 4f49 ba9b 9fa0bb215694
  • #11771 visualize compiler inserted reborrows via inlay hints (enable using rust-analyzer.inlayHints.reborrowHints):

    159165178 baaf968a 4381 468e 933f 5326ca1b203d
  • #11760 provide signature help when editing generic args:

    159067106 3917a355 ca77 4d23 ad56 945dcc945425
  • #11774 tag macro calls as unsafe if they expand to unsafe expressions:

    159177375 619c59fb 565f 42cd a2f5 73c2c11e77e6
  • #11690 add Inline type alias assist:

    158020510 fed78b5c 4c7e 46d1 9151 3044a29b9990
    158020516 8a2deb6d c6ec 4adf a15b c514fc97dc43
  • #11713, #11753 complete associated consts in patterns.

    159210559 f93461b2 9d05 4f44 a31d 0d91ec3d822d
  • #11688, #11718, #11735 (partially) add const generics support.

Fixes

  • #11708 (first contribution) update manual for inlay hint customization

  • #11739 (first contribution) emit #[must_use] in Generate getter and generate_is_empty_from_len.

  • #11737, #11741 emit #[must_use] in Generate new and Generate enum is_variant.

  • #11714 fix completions in for loop patterns.

  • #11720 mark chaining hints as types.

  • #11694 preserve break and continue labels in Extract to function.

  • #11743 properly unify receivers during method resolution.

  • #11750 fix runnables trying to add doc tests in the crate root from #[macro_export] macros.

  • #11765 fix closure hints using macro ranges.

  • #11710 fix crash when parsing /etc/os-release.

Internal Improvements

  • #11700, #11727, #11734 bump xshell.

  • #11775 treat global_asm and asm macros as unsafe.

  • #11726 more ide_completion refactoring.

  • #11752 allow explicitly specifying end of fixture annotations.

  • #11761 rename call info to signature help.