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 1.82.0-nightly (7c2012d0 2024-07-26)
rustc version: rustc 1.82.0-nightly (7c2012d0e 2024-07-26)
editor or extension: Vim9.1 coc-rust-analyzer
code snippet to reproduce:
fn main() { macro_rules! foo { () => { 1 }; } assert_eq!(foo!(), 1); macro_rules! foo { () => { 2 }; } assert_eq!(foo!(), 2); // in this line rename `foo` }
rename foo into bar
foo
bar
fn main() { macro_rules! foo { () => { 1 }; } assert_eq!(bar!(), 1); macro_rules! bar { () => { 2 }; } assert_eq!(bar!(), 2); // in this line rename `foo` }
expect output:
fn main() { macro_rules! foo { () => { 1 }; } assert_eq!(foo!(), 1); macro_rules! bar { () => { 2 }; } assert_eq!(bar!(), 2); // in this line rename `foo` }
The text was updated successfully, but these errors were encountered:
Let's see if I can do this (I guess this will involve some fundamental changes to namres)...
@rustbot claim
Sorry, something went wrong.
There is a couple of related issues to this #7084 #14862 #15749
The gist of the issue is that we don't handle the textual macro_rules scoping correctly (as well as the macro definition hierarchy https://rustc-dev-guide.rust-lang.org/macro-expansion.html#the-macro-definition-hierarchy)
@rustbot release-assignment
Occupied with other things currently.
No branches or pull requests
rust-analyzer version: rust-analyzer 1.82.0-nightly (7c2012d0 2024-07-26)
rustc version: rustc 1.82.0-nightly (7c2012d0e 2024-07-26)
editor or extension: Vim9.1 coc-rust-analyzer
code snippet to reproduce:
rename
foo
intobar
expect output:
The text was updated successfully, but these errors were encountered: