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

std: Tidy up some unsafe impls for sync #22596

Merged
merged 1 commit into from
Feb 25, 2015

Conversation

alexcrichton
Copy link
Member

This commit removes many unnecessary unsafe impl blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for RwLock are a little off when reviewing #22574 and wanted to ensure that we
had our story straight on these implementations.

This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing rust-lang#22574 and wanted to ensure that we
had our story straight on these implementations.
@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -16,6 +16,12 @@ use fmt;
use thread;

pub struct Flag { failed: UnsafeCell<bool> }

// This flag is only ever accessed with a lock previously held. Note that this
// a totally private structure.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"totally private" ... pub struct Flag. :P

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice ;)

@huonw
Copy link
Member

huonw commented Feb 24, 2015

@bors r+ 64fe

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 25, 2015
 This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing rust-lang#22574 and wanted to ensure that we
had our story straight on these implementations.
@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 64fe93e with merge 0d6e229...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-linux-64-x-android-t

@Manishearth
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Feb 25, 2015

1 similar comment
@bors
Copy link
Contributor

bors commented Feb 25, 2015

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-win-32-nopt-t

@Manishearth
Copy link
Member

@bors: retry

(Please ignore the failures for now)

@bors
Copy link
Contributor

bors commented Feb 25, 2015

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-mac-64-opt

@bors bors merged commit 64fe93e into rust-lang:master Feb 25, 2015
@alexcrichton alexcrichton deleted the fix-some-impls branch March 27, 2015 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants