mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Store invocation site for eager macros
This commit is contained in:
parent
b98ee075ee
commit
26f604b907
5 changed files with 52 additions and 28 deletions
|
@ -749,6 +749,31 @@ fn test() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn goto_through_included_file() {
|
||||
check(
|
||||
r#"
|
||||
//- /main.rs
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! include {}
|
||||
|
||||
include!("foo.rs");
|
||||
//^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
fn f() {
|
||||
foo<|>();
|
||||
}
|
||||
|
||||
mod confuse_index {
|
||||
pub fn foo() {}
|
||||
}
|
||||
|
||||
//- /foo.rs
|
||||
fn foo() {}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn goto_for_type_param() {
|
||||
check(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue