mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge #8091
8091: Add test for goto def on proc macro invocation r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7073 bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
d0805c6444
@ -1176,4 +1176,21 @@ fn foo() { A { a$0: }; }
|
|||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn goto_proc_macro() {
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
//- /main.rs crate:main deps:mac
|
||||||
|
use mac::fn_macro;
|
||||||
|
|
||||||
|
fn_macro$0!();
|
||||||
|
|
||||||
|
//- /mac.rs crate:mac
|
||||||
|
#[proc_macro]
|
||||||
|
fn fn_macro() {}
|
||||||
|
//^^^^^^^^
|
||||||
|
"#,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user