-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cannot create local mono-item for DefId #51388
Comments
Possibly dupe/related to #50865? |
Yea I think this is a dupe, handling over there |
The issue you mention seems to have something to do with impl trait (and looks like it goes away when the use is removed?) , whereas the issue I posted here crashes with even the simplest rust code. Are they really the same? |
Hmm... you're right. I mean impl Trait in the other issue is just the trigger, the cause is in a normal function calling another one, but here you have another crate |
I've discovered that if I tell the compiler to emit another type along with
I'm wondering if by not running the code-gen or linking when outputting the metadata is causing this. |
Triage: still repros:
|
Issue: rust-lang/rust#51388
Issue: rust-lang/rust#51388
Since #49433, |
PR with fix: #115353 |
Emit error instead of ICE when optimized MIR is missing Closes rust-lang#51388
The following scenario used to work fine 1.25.0:
This would create two .bc files that could be linked together into a program, but when I try this on 1.26.{0,1,2} the compiler crashes like so:
The text was updated successfully, but these errors were encountered: