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: VIM-9.1
code snippet to reproduce:
use proc_macro_impl::remove_fragment; macro_rules! foo { (1+2) => {}; } macro_rules! pack { ($e:expr) => { remove_fragment!(foo!($e)) }; } fn main() { pack!(1+2); }
use proc_macro::*; #[proc_macro] pub fn remove_fragment(stream: TokenStream) -> TokenStream { stream.into_iter().map(|tt| { match tt { TokenTree::Group(g) => { let mut out = Group::new(g.delimiter(), remove_fragment(g.stream())); out.set_span(g.span()); out.into() } _ => tt, } }).collect() }
cargo build 0 errors
cargo build
rust-analyzer.expandMacro:
// Recursive expansion of pack!! macro // ==================================== Expansion had errors: expected literal: `1`
The text was updated successfully, but these errors were encountered:
That's invisible groups striking again (we don't handle them correctly).
Sorry, something went wrong.
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: VIM-9.1
code snippet to reproduce:
cargo build
0 errorsrust-analyzer.expandMacro:
The text was updated successfully, but these errors were encountered: