Skip to content

Commit

Permalink
Unrolled build for rust-lang#125653
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#125653 - GuillaumeGomez:migrate-const-prop-lint, r=jieyouxu

Migrate `run-make/const-prop-lint` to `rmake.rs`

Part of rust-lang#121876.

r? ``@jieyouxu``
  • Loading branch information
rust-timer authored May 30, 2024
2 parents 23ea77b + 5b0e6cb commit faff11f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 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 @@ -21,7 +21,6 @@ run-make/compiler-lookup-paths-2/Makefile
run-make/compiler-lookup-paths/Makefile
run-make/compiler-rt-works-on-mingw/Makefile
run-make/compressed-debuginfo/Makefile
run-make/const-prop-lint/Makefile
run-make/const_fn_mir/Makefile
run-make/crate-data-smoke/Makefile
run-make/crate-hash-rustc-version/Makefile
Expand Down
9 changes: 0 additions & 9 deletions tests/run-make/const-prop-lint/Makefile

This file was deleted.

18 changes: 18 additions & 0 deletions tests/run-make/const-prop-lint/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Tests that const prop lints interrupting codegen don't leave `.o` files around.

use std::fs;

use run_make_support::{rustc, tmp_dir};

fn main() {
rustc().input("input.rs").run_fail_assert_exit_code(1);

for entry in fs::read_dir(tmp_dir()).unwrap() {
let entry = entry.unwrap();
let path = entry.path();

if path.is_file() && path.extension().is_some_and(|ext| ext == "o") {
panic!("there should not be `.o` files!");
}
}
}

0 comments on commit faff11f

Please sign in to comment.