Skip to content

Commit 5b0e6cb

Browse files
Migrate run-make/const-prop-lint to rmake.rs
1 parent c0d6003 commit 5b0e6cb

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run-make/compiler-lookup-paths-2/Makefile
2222
run-make/compiler-lookup-paths/Makefile
2323
run-make/compiler-rt-works-on-mingw/Makefile
2424
run-make/compressed-debuginfo/Makefile
25-
run-make/const-prop-lint/Makefile
2625
run-make/const_fn_mir/Makefile
2726
run-make/crate-data-smoke/Makefile
2827
run-make/crate-hash-rustc-version/Makefile

tests/run-make/const-prop-lint/Makefile

-9
This file was deleted.
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Tests that const prop lints interrupting codegen don't leave `.o` files around.
2+
3+
use std::fs;
4+
5+
use run_make_support::{rustc, tmp_dir};
6+
7+
fn main() {
8+
rustc().input("input.rs").run_fail_assert_exit_code(1);
9+
10+
for entry in fs::read_dir(tmp_dir()).unwrap() {
11+
let entry = entry.unwrap();
12+
let path = entry.path();
13+
14+
if path.is_file() && path.extension().is_some_and(|ext| ext == "o") {
15+
panic!("there should not be `.o` files!");
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)