-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
ICE with mutually recursive infinite-sized type and enum from another module #57271
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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.
I'm getting a very touchy ICE on
rustc 1.33.0-nightly (9eac38634 2018-12-31) running on x86_64-unknown-linux-gnu. I'm not 100% sure what it has to do with...Here is the minimum example I can trigger the ICE with:
I'm expecting to see an error about an infinitely-sized type, but instead the compiler crashes. Changes that make the compiler not ICE:
field::BaseTypeintosignatureObjectType/TypeSignaturenot mutually recursiveObjectType::Classnot containClassTypeSignatureOutput of
RUST_BACKTRACE=1 cargo build: https://gist.github.com/XavilPergis/102774c6c542403db10a351ff013f356Original code that ICE'd: https://gist.github.com/XavilPergis/dafc2bb478f18cee700f78e16eea81cd