We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 5478242 2022-01-12 nightly rustc version: nightly-2021-12-20-x86_64-unknown-linux-gnu
When using the span().source_file() to get the path of the caller, RA reports the "not implemented" macro error.
The code works find with cargo build.
The whole project reproducing the issue is in: https://github.com/yezuochang/proc_macro_example
#[proc_macro] pub fn testmacro(input: TokenStream) -> TokenStream { let _caller_path = input .clone() .into_iter() .last() .unwrap() .span() .source_file() .path(); return input; }
The text was updated successfully, but these errors were encountered:
CC #10570
Sorry, something went wrong.
SourceFile
15fdb95
Successfully merging a pull request may close this issue.
rust-analyzer version: rust-analyzer 5478242 2022-01-12 nightly
rustc version: nightly-2021-12-20-x86_64-unknown-linux-gnu
When using the span().source_file() to get the path of the caller, RA reports the "not implemented" macro error.
The code works find with cargo build.
The whole project reproducing the issue is in: https://github.com/yezuochang/proc_macro_example
The text was updated successfully, but these errors were encountered: