Skip to content

Commit c5167c3

Browse files
committed
rewrite rustc-macro-dep-files to rmake
1 parent f3ef4e9 commit c5167c3

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ run-make/return-non-c-like-enum-from-c/Makefile
132132
run-make/rlib-format-packed-bundled-libs-2/Makefile
133133
run-make/rlib-format-packed-bundled-libs-3/Makefile
134134
run-make/rlib-format-packed-bundled-libs/Makefile
135-
run-make/rustc-macro-dep-files/Makefile
136135
run-make/sanitizer-cdylib-link/Makefile
137136
run-make/sanitizer-dylib-link/Makefile
138137
run-make/sanitizer-staticlib-link/Makefile

tests/run-make/rustc-macro-dep-files/Makefile

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)