-
-
Notifications
You must be signed in to change notification settings - Fork 15k
ICE when rustc asked to -o /dev/null on OSX #66530
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-macosOperating system: macOSOperating system: macOSP-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-macosOperating system: macOSOperating system: macOSP-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Ok, so rustc outputting to /dev/null is a bit pathelogical but it used to not ICE the compiler.
If you checkout
https://github.com/jethrogb/rust-reduce/tree/master/tests/suite/futures_core
and from dir tests/suite/futures_core run:
rustc --crate-type lib -o /dev/null input.rs
Then rustc is vexed:
(ICEs on stable and nightly)
The irony is that this is in the test suite of a rust code minimisation project.... 🤣 🤣 🤣
Let me minimise the reproduction of the problem...