Skip to content

Commit 678efb6

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

File tree

5 files changed

+12
-19
lines changed

5 files changed

+12
-19
lines changed

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

tests/run-make/issue-26092/Makefile

-6
This file was deleted.

tests/run-make/link-dedup/Makefile

-12
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 and printing an obscure message
4+
// instead of reaching the helpful error message. This test checks that the panic does not occur.
5+
// See https://github.com/rust-lang/rust/pull/26199
6+
7+
fn main() {
8+
let output = String::from_utf8(rustc().output("").input("blank.rs").command_output().stderr)
9+
.unwrap()
10+
.to_lowercase();
11+
assert!(!output.contains("panic"));
12+
}

0 commit comments

Comments
 (0)