-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Don't ICE if crate has no valid crate types left #51035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -642,7 +642,7 @@ fn write_metadata<'a, 'gcx>(tcx: TyCtxt<'a, 'gcx, 'gcx>, | |||
config::CrateTypeDylib | | |||
config::CrateTypeProcMacro => MetadataKind::Compressed, | |||
} | |||
}).max().unwrap(); | |||
}).max().unwrap_or(MetadataKind::None); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the source of the regression. Reaching this code is the source of the regression. But it seems a sensible change anyway imo.
If preferred I'll do a bisect and figure out where the real regression happened
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r+ |
📌 Commit 0b1b26f has been approved by |
Don't ICE if crate has no valid crate types left fixes #50993
☀️ Test successful - status-appveyor, status-travis |
fixes #50993