mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Map tokens from include!
expansion to the included file
This commit is contained in:
parent
05a6286fb2
commit
901c8a4259
4 changed files with 37 additions and 20 deletions
|
@ -833,8 +833,7 @@ fn test() {
|
|||
#[rustc_builtin_macro]
|
||||
macro_rules! include {}
|
||||
|
||||
include!("foo.rs");
|
||||
//^^^^^^^^^^^^^^^^^^^
|
||||
include!("foo.rs");
|
||||
|
||||
fn f() {
|
||||
foo$0();
|
||||
|
@ -846,6 +845,7 @@ mod confuse_index {
|
|||
|
||||
//- /foo.rs
|
||||
fn foo() {}
|
||||
//^^^
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue