You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That hint in FooRef is not an elided lifetime hint, its a generic parameter hint, rendering the name of the generic parameter that the arg is supplied for. 1) We don't have elision hints for path type generic args yet, 2) we wouldn't render them either way when there is a lifetime specified (as is the case with '_ here)
That hint in FooRef is not an elided lifetime hint, its a generic parameter hint, rendering the name of the generic parameter that the arg is supplied for. 1) We don't have elision hints for path type generic args yet, 2) we wouldn't render them either way when there is a lifetime specified (as is the case with '_ here)
is there a way to show the elided lifetime for path type generic like ordinary function with reference? Like the screenshot shows here
rust-analyzer version: 0.3.2104-standalone (08c7bbc 2024-09-06)
rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)
editor or extension: VsCode, with rust-analyzer extension version v0.3.2104
relevant settings:
code snippet to reproduce:
The elided lifetime for
self
and forFooRef
should be shown as the same lifetime in the inlay hint. However, they're shown as different lifetimes.Discovered by tionway on the rust community discord.
The text was updated successfully, but these errors were encountered: