Skip to content

Commit e6db93d

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

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Test that emitting an error because of arithmetic overflow lint does not leave .o files around
2+
// because of interrupted codegen.
3+
4+
use std::fs;
5+
6+
use run_make_support::{rustc, tmp_dir};
7+
8+
fn main() {
9+
rustc().input("input.rs").run_fail_assert_exit_code(1);
10+
11+
for entry in fs::read_dir(tmp_dir()).unwrap() {
12+
let entry = entry.unwrap();
13+
let path = entry.path();
14+
15+
if path.is_file() && path.extension().and_then(|ext| ext.to_str()) == Some("o") {
16+
panic!("There should not be `.o` files!");
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)