Skip to content

Commit 70a3ac6

Browse files
committed
Rewrite and rename issue-26092 to rmake
1 parent 40e35d6 commit 70a3ac6

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

Diff for: src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ run-make/issue-20626/Makefile
9999
run-make/issue-22131/Makefile
100100
run-make/issue-25581/Makefile
101101
run-make/issue-26006/Makefile
102-
run-make/issue-26092/Makefile
103102
run-make/issue-28595/Makefile
104103
run-make/issue-33329/Makefile
105104
run-make/issue-35164/Makefile

Diff for: tests/run-make/issue-26092/Makefile

-6
This file was deleted.

Diff for: tests/run-make/link-dedup/Makefile

-12
This file was deleted.
File renamed without changes.

Diff for: tests/run-make/no-panic-blank-output/rmake.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// When an empty output file is passed to rustc, the ensuing error message
2+
// should be clear. However, calling file_stem on an empty path returns None,
3+
// which, when unwrapped, causes a panic, stopping execution of rustc
4+
// and printing an obscure message instead of reaching the helpful
5+
// error message. This test checks that the panic does not occur.
6+
// See https://github.com/rust-lang/rust/pull/26199
7+
8+
fn main() {
9+
let output = String::from_utf8(rustc().output("").input("blank.rs").command_output().stderr)
10+
.unwrap()
11+
.to_lowercase();
12+
assert!(!output.contains("panic"));
13+
}

0 commit comments

Comments
 (0)