Map tokens from include! expansion to the included file

This commit is contained in:
Jonas Schievink 2023-04-13 17:41:24 +02:00
parent 05a6286fb2
commit 901c8a4259
4 changed files with 37 additions and 20 deletions

View file

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