-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite rustc-macro-dep-files to rmake
- Loading branch information
Showing
3 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} |