mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Rename fails on renaming definitions created by macros
This commit is contained in:
parent
320bb72b7f
commit
c67ecbebc4
5 changed files with 62 additions and 66 deletions
|
@ -1869,8 +1869,7 @@ fn f() { <()>::BAR$0; }"#,
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn macros_are_broken_lol() {
|
||||
cov_mark::check!(macros_are_broken_lol);
|
||||
fn defs_from_macros_arent_renamed() {
|
||||
check(
|
||||
"lol",
|
||||
r#"
|
||||
|
@ -1878,11 +1877,7 @@ macro_rules! m { () => { fn f() {} } }
|
|||
m!();
|
||||
fn main() { f$0() }
|
||||
"#,
|
||||
r#"
|
||||
macro_rules! m { () => { fn f() {} } }
|
||||
lol
|
||||
fn main() { lol() }
|
||||
"#,
|
||||
"error: No identifier available to rename",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue