This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed
tests/run-make/rustc-macro-dep-files Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ run-make/return-non-c-like-enum-from-c/Makefile
116116run-make/rlib-format-packed-bundled-libs-2/Makefile
117117run-make/rlib-format-packed-bundled-libs-3/Makefile
118118run-make/rlib-format-packed-bundled-libs/Makefile
119- run-make/rustc-macro-dep-files/Makefile
120119run-make/sanitizer-cdylib-link/Makefile
121120run-make/sanitizer-dylib-link/Makefile
122121run-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