Macro rules meta variable name raw-variable is not equal
rust-analyzer version: rust-analyzer 1.80.0 (05147895 2024-07-21)
rustc version: rustc 1.80.0 (051478957 2024-07-21)
editor or extension: Vim 9.1 coc-rust-analyzer
code snippet to reproduce:
macro_rules! x {
($r#break:tt) => {
$break
};
}
fn main() {
x!(2);
}
rustc: no errors
ra: break outside of loop (rust-analyzer E0268)
no error cases:
macro_rules! x {
($r#break:tt) => {
$r#break
};
}
fn main() {
x!(2);
}
macro_rules! x {
($break:tt) => {
$break
};
}
fn main() {
x!(2);
}
This seems to be fixed? I cannot reproduce it.
This seems to be fixed? I cannot reproduce it.
rust-analyzer 1.82.0-nightly (7c2012d0 2024-07-26) reproduced
This does expand correctly for me as well now on the latest release
We should add a test for this though I think
@rustbot claim
@rustbot release-assignment
Closed by #18561