-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite and rename
issue-26092
to rmake
- Loading branch information
Showing
5 changed files
with
13 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// When an empty output file is passed to rustc, the ensuing error message | ||
// should be clear. However, calling file_stem on an empty path returns None, | ||
// which, when unwrapped, causes a panic, stopping execution of rustc | ||
// and printing an obscure message instead of reaching the helpful | ||
// error message. This test checks that the panic does not occur. | ||
// See https://github.com/rust-lang/rust/pull/26199 | ||
|
||
fn main() { | ||
let output = String::from_utf8(rustc().output("").input("blank.rs").command_output().stderr) | ||
.unwrap() | ||
.to_lowercase(); | ||
assert!(!output.contains("panic")); | ||
} |