Skip to content

std: Tidy up some unsafe impls for sync#22596

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:fix-some-impls
Feb 25, 2015
Merged

std: Tidy up some unsafe impls for sync#22596
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:fix-some-impls

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @brson

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

Comment thread src/libstd/sync/poison.rs

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice ;)

@huonw

huonw commented Feb 24, 2015

Copy link
Copy Markdown
Contributor

@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

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

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

@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

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

@Manishearth

Copy link
Copy Markdown
Member

@bors: retry

@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

1 similar comment
@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

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

@Manishearth

Copy link
Copy Markdown
Member

@bors: retry

(Please ignore the failures for now)

@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

@bors

bors commented Feb 25, 2015

Copy link
Copy Markdown
Collaborator

💔 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
lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 13, 2026
by reusing the function escape_snippet_bits used in postfix.rs, the issue seems to be gone completely.
made one test cases, using $bar as per the issue rust-lang#22596 by kpreid.
tried making a $0 test case but although it was working on the IDE, the test case always failed.
a possible improvement would be moving escape_snippet_bits to place where both postfix.rs and on_enter.rs can see it,
but im not sure where I would do that...
lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 13, 2026
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