We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer 1.88.0-nightly (a15cce2 2025-04-17)
rustc version: rustc 1.88.0-nightly (a15cce269 2025-04-17)
editor or extension: VIM9.1 coc-rust-analyzer
code snippet to reproduce:
struct Foo; #[proc_macro_impl::identity_walk] impl<'a> AsRef<&'a i32> for Foo { | }
| is cursor, input fn, complete fn as_ref(..)~:
|
fn
fn as_ref(..)~
struct Foo; #[proc_macro_impl::identity_walk] impl<'a> AsRef<&'a i32> for Foo { fn as_ref(&self) -> &&'ai32 { } }
Expect &&'a i32:
&&'a i32
struct Foo; #[proc_macro_impl::identity_walk] impl<'a> AsRef<&'a i32> for Foo { fn as_ref(&self) -> &&'a i32 { } }
proc_macro implements:
use proc_macro::*; #[proc_macro_attribute] pub fn identity_walk(_attr: TokenStream, stream: TokenStream) -> TokenStream { stream.into_iter() .map(|tt| match tt { TokenTree::Group(g) => { let mut sub = Group::new( g.delimiter(), identity_walk(TokenStream::new(), g.stream()), ); sub.set_span(g.span()); sub.into() }, _ => tt, }) .collect() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rust-analyzer version: rust-analyzer 1.88.0-nightly (a15cce2 2025-04-17)
rustc version: rustc 1.88.0-nightly (a15cce269 2025-04-17)
editor or extension: VIM9.1 coc-rust-analyzer
code snippet to reproduce:
|
is cursor, inputfn
, completefn as_ref(..)~
:Expect
&&'a i32
:proc_macro implements:
The text was updated successfully, but these errors were encountered: