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:
bors[bot] 2021-03-18 16:24:38 +00:00 committed by GitHub
commit d0805c6444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {}
//^^^^^^^^
"#,
)
}
}