Skip to content

Commit c35510f

Browse files
committed
rewrite metadata-dep-info to rmake
1 parent abd4a84 commit c35510f

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ run-make/macos-deployment-target/Makefile
101101
run-make/macos-fat-archive/Makefile
102102
run-make/manual-link/Makefile
103103
run-make/many-crates-but-no-match/Makefile
104-
run-make/metadata-dep-info/Makefile
105104
run-make/min-global-align/Makefile
106105
run-make/mingw-export-call-convention/Makefile
107106
run-make/mismatching-target-triples/Makefile

tests/run-make/metadata-dep-info/Makefile

-7
This file was deleted.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Emitting dep-info alongside metadata would present subtle discrepancies
2+
// in the output file, such as the filename transforming underscores_ into hyphens-.
3+
// After the fix in #114750, this test checks that the emitted files are identical
4+
// to the expected output.
5+
// See https://github.com/rust-lang/rust/issues/68839
6+
7+
use run_make_support::{diff, rustc};
8+
9+
fn main() {
10+
rustc()
11+
.emit("metadata,dep-info")
12+
.crate_type("lib")
13+
.input("dash-separated.rs")
14+
.extra_filename("_something-extra")
15+
.run();
16+
diff()
17+
.expected_file("dash-separated_something-extra.expected.d")
18+
.actual_file("dash-separated_something-extra.d")
19+
.run();
20+
}

0 commit comments

Comments
 (0)