Skip to content

Commit

Permalink
rewrite rustc-macro-dep-files to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jul 5, 2024
1 parent f3ef4e9 commit c5167c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ run-make/return-non-c-like-enum-from-c/Makefile
run-make/rlib-format-packed-bundled-libs-2/Makefile
run-make/rlib-format-packed-bundled-libs-3/Makefile
run-make/rlib-format-packed-bundled-libs/Makefile
run-make/rustc-macro-dep-files/Makefile
run-make/sanitizer-cdylib-link/Makefile
run-make/sanitizer-dylib-link/Makefile
run-make/sanitizer-staticlib-link/Makefile
Expand Down
11 changes: 0 additions & 11 deletions tests/run-make/rustc-macro-dep-files/Makefile

This file was deleted.

13 changes: 13 additions & 0 deletions tests/run-make/rustc-macro-dep-files/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// --emit dep-info used to print all macro-generated code it could
// find as if it was part of a nonexistent file named "proc-macro source",
// which is not a valid path. After this was fixed in #36776, this test checks
// that macro code is not falsely seen as coming from a different file in dep-info.
// See https://github.com/rust-lang/rust/issues/36625

use run_make_support::{fs_wrapper, rustc, target};

fn main() {
rustc().input("foo.rs").run();
rustc().input("bar.rs").target(target()).emit("dep-info").run();
assert!(!fs_wrapper::read_to_string("bar.d").contains("proc-macro source"));
}

0 comments on commit c5167c3

Please sign in to comment.