ICE when using \\.\NUL
as the input filename on Windows
#128681
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
O-windows
Operating system: Windows
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
On a Windows machine, run:
Meta
rustc --version --verbose
:Error output
Which is here:
rust/compiler/rustc_session/src/config.rs
Line 842 in 4d48a6b
Specifically the
file_stem().unwrap()
panics. The\\.\NUL
device is pretty weird as it's a device in its own right that you can read/write to but also a kind of root directory (you can do\\.\NUL\path\to\rust.rs
) and callingparent()
on\\.\NUL
should returnNone
. It doesn't quite fit with std's model of paths.Backtrace
The text was updated successfully, but these errors were encountered: