Skip to content
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

Back out #62150 (Implement mem::{zeroed,uninitialized} in terms of MaybeUninit) #63343

Merged
merged 1 commit into from
Aug 11, 2019

Conversation

ishitatsuyuki
Copy link
Contributor

@ishitatsuyuki ishitatsuyuki commented Aug 7, 2019

Ref: #62825

cc @RalfJung

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 7, 2019
src/libcore/intrinsics.rs Outdated Show resolved Hide resolved
bors added a commit to rust-lang/miri that referenced this pull request Aug 7, 2019
Revert "uninit intrinsic is gone"

This reverts commit fa290f1.
Uninit is [being reinstated](rust-lang/rust#63343) because it breaks some broken code.
@Centril
Copy link
Contributor

Centril commented Aug 9, 2019

r? @RalfJung

@ishitatsuyuki
Copy link
Contributor Author

I went with an amend, so technically this is no longer a revert. Is that fine?

@rust-highfive

This comment has been minimized.

@ishitatsuyuki
Copy link
Contributor Author

Out of time today, will fix it later.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

…=RalfJung"

This reverts commit 1d45156, reversing
changes made to 0f92eb8.
@RalfJung
Copy link
Member

Looking good, thanks a lot! Let's get this into the beta.

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Aug 11, 2019

📌 Commit 2358e3e has been approved by RalfJung

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 11, 2019
@bors
Copy link
Contributor

bors commented Aug 11, 2019

⌛ Testing commit 2358e3e with merge 2b78e10...

bors added a commit that referenced this pull request Aug 11, 2019
@RalfJung RalfJung changed the title Back out #62150 Back out #62150 (Implement mem::{zeroed,uninitialized} in terms of MaybeUninit) Aug 11, 2019
@bors
Copy link
Contributor

bors commented Aug 11, 2019

☀️ Test successful - checks-azure
Approved by: RalfJung
Pushing 2b78e10 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 11, 2019
@bors bors merged commit 2358e3e into rust-lang:master Aug 11, 2019
Centril added a commit to Centril/rust that referenced this pull request Mar 17, 2020
implement zeroed and uninitialized with MaybeUninit

This is the second attempt of doing such a change (first PR: rust-lang#62150). The last change [got reverted](rust-lang#63343) because it [caused](rust-lang#62825) some [issues](rust-lang#52898 (comment)) in [code that incorrectly used these functions](AltF02/x11-rs#99).

Since then, the [problematic code has been fixed](AltF02/x11-rs#101), and rustc [gained a lint](rust-lang#63346) that is able to detect many misuses of these functions statically and a [dynamic check that panics](rust-lang#66059) instead of causing UB for some incorrect uses.

Fixes rust-lang#62825
Centril added a commit to Centril/rust that referenced this pull request Mar 17, 2020
implement zeroed and uninitialized with MaybeUninit

This is the second attempt of doing such a change (first PR: rust-lang#62150). The last change [got reverted](rust-lang#63343) because it [caused](rust-lang#62825) some [issues](rust-lang#52898 (comment)) in [code that incorrectly used these functions](AltF02/x11-rs#99).

Since then, the [problematic code has been fixed](AltF02/x11-rs#101), and rustc [gained a lint](rust-lang#63346) that is able to detect many misuses of these functions statically and a [dynamic check that panics](rust-lang#66059) instead of causing UB for some incorrect uses.

Fixes rust-lang#62825
Centril added a commit to Centril/rust that referenced this pull request Mar 17, 2020
implement zeroed and uninitialized with MaybeUninit

This is the second attempt of doing such a change (first PR: rust-lang#62150). The last change [got reverted](rust-lang#63343) because it [caused](rust-lang#62825) some [issues](rust-lang#52898 (comment)) in [code that incorrectly used these functions](AltF02/x11-rs#99).

Since then, the [problematic code has been fixed](AltF02/x11-rs#101), and rustc [gained a lint](rust-lang#63346) that is able to detect many misuses of these functions statically and a [dynamic check that panics](rust-lang#66059) instead of causing UB for some incorrect uses.

Fixes rust-lang#62825
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants