-
Notifications
You must be signed in to change notification settings - Fork 341
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
Revert "uninit intrinsic is gone" #895
Conversation
This reverts commit fa290f1. Uninit is being reinstated because it breaks some broken code.
@@ -522,6 +522,37 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx | |||
this.write_scalar(res, dest)?; | |||
} | |||
|
|||
"uninit" => { | |||
// Check fast path: we don't want to force an allocation in case the destination is a simple value, |
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.
we can be proactive and tcx.sess.warn("go update your dependencies")
, even if rustc doesn't do that yet
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.
That will be non-actionable most of the time I think.
Also this is basically #797. We should never have warning that cannot be turned off.
@bors r+ |
📌 Commit 455531c has been approved by |
Revert "uninit intrinsic is gone" This reverts commit fa290f1. Uninit is [being reinstated](rust-lang/rust#63343) because it breaks some broken code.
☀️ Test successful - checks-travis, status-appveyor |
This reverts commit fa290f1.
Uninit is being reinstated because it breaks some broken code.