File tree 3 files changed +13
-12
lines changed
tests/run-make/rustc-macro-dep-files
3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ run-make/return-non-c-like-enum-from-c/Makefile
132
132
run-make/rlib-format-packed-bundled-libs-2/Makefile
133
133
run-make/rlib-format-packed-bundled-libs-3/Makefile
134
134
run-make/rlib-format-packed-bundled-libs/Makefile
135
- run-make/rustc-macro-dep-files/Makefile
136
135
run-make/sanitizer-cdylib-link/Makefile
137
136
run-make/sanitizer-dylib-link/Makefile
138
137
run-make/sanitizer-staticlib-link/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // --emit dep-info used to print all macro-generated code it could
2
+ // find as if it was part of a nonexistent file named "proc-macro source",
3
+ // which is not a valid path. After this was fixed in #36776, this test checks
4
+ // that macro code is not falsely seen as coming from a different file in dep-info.
5
+ // See https://github.com/rust-lang/rust/issues/36625
6
+
7
+ use run_make_support:: { fs_wrapper, rustc, target} ;
8
+
9
+ fn main ( ) {
10
+ rustc ( ) . input ( "foo.rs" ) . run ( ) ;
11
+ rustc ( ) . input ( "bar.rs" ) . target ( target ( ) ) . emit ( "dep-info" ) . run ( ) ;
12
+ assert ! ( !fs_wrapper:: read_to_string( "bar.d" ) . contains( "proc-macro source" ) ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments