Skip to content

Commit 48a9d4b

Browse files
committed
rewrite track-path-dep-info to rmake
1 parent 8daf82f commit 48a9d4b

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ run-make/target-without-atomic-cas/Makefile
158158
run-make/test-benches/Makefile
159159
run-make/thumb-none-cortex-m/Makefile
160160
run-make/thumb-none-qemu/Makefile
161-
run-make/track-path-dep-info/Makefile
162161
run-make/track-pgo-dep-info/Makefile
163162
run-make/translation/Makefile
164163
run-make/type-mismatch-same-crate-name/Makefile

tests/run-make/track-path-dep-info/Makefile

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This test checks the functionality of `tracked_path::path`, a procedural macro
2+
// feature that adds a dependency to another file inside the procmacro. In this case,
3+
// the text file is added through this method, and the test checks that the compilation
4+
// output successfully added the file as a dependency.
5+
// See https://github.com/rust-lang/rust/pull/84029
6+
7+
//FIXME(Oneirical): Try it on musl
8+
9+
use run_make_support::{bare_rustc, fs_wrapper, rustc};
10+
11+
fn main() {
12+
bare_rustc().input("macro_def.rs").run();
13+
rustc().env("EXISTING_PROC_MACRO_ENV", "1").emit("dep-info").input("macro_use.rs").run();
14+
assert!(fs_wrapper::read_to_string("macro_use.d").contains("emojis.txt:"));
15+
}

0 commit comments

Comments
 (0)