-
Notifications
You must be signed in to change notification settings - Fork 13k
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
panic when calling MaybeUninhabited::into_inner on uninhabited type #57145
Conversation
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
So... I am confident that the impl does what it promises. I just don't know if I can single handedly sign off on this. I think it would be enough for @rust-lang/libs to sign off on this, although it kind of touches language and compiler. |
@bors: try |
⌛ Trying commit c118b17 with merge c8bd38c4de0d52227df9d7c04afd10f3080e9a6a... |
Er sorry, just now realizing that the implementation already does this, we're just adding something else under that umbrella. Sounds good to me! @bors: r+ |
📌 Commit c118b17 has been approved by |
…excrichton panic when calling MaybeUninhabited::into_inner on uninhabited type I do this by adding an internal-only intrinsic `panic_if_uninhabited`. I have no idea what I am doing here, just mindlessly copying code around, so please review carefully!
panic when calling MaybeUninhabited::into_inner on uninhabited type I do this by adding an internal-only intrinsic `panic_if_uninhabited`. I have no idea what I am doing here, just mindlessly copying code around, so please review carefully!
☀️ Test successful - status-appveyor, status-travis |
Tested on commit rust-lang/rust@8c2d0f4. Direct link to PR: <rust-lang/rust#57145> 💔 miri on linux: test-pass → test-fail (cc @oli-obk @RalfJung @eddyb, @rust-lang/infra).
I do this by adding an internal-only intrinsic
panic_if_uninhabited
. I have no idea what I am doing here, just mindlessly copying code around, so please review carefully!