Skip to content

Naming & minor type adjustments to std::unstable::sync::UnsafeAtomicRcBox #8790

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

Closed
wants to merge 2 commits into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Aug 27, 2013

UnsafeAtomicRcBoxUnsafeArc (#7674), and AtomicRcBoxDataArcData to reflect this.

Also, the inner pointer of UnsafeArc is now *mut ArcData, which avoids some transmutes to ~: i.e. less chance of mistakes.

huonw added 2 commits August 27, 2013 20:12
This means that fewer `transmute`s are required, so there is less
chance of a `transmute` not having the corresponding `forget`
(possibly leading to use-after-free, etc).
@huonw
Copy link
Member Author

huonw commented Aug 27, 2013

r @bblum or @brson?

bors added a commit that referenced this pull request Aug 27, 2013
`UnsafeAtomicRcBox` → `UnsafeArc` (#7674), and `AtomicRcBoxData` → `ArcData` to reflect this.

Also, the inner pointer of `UnsafeArc` is now `*mut ArcData`, which avoids some transmutes to `~`: i.e. less chance of mistakes.
@bors bors closed this Aug 27, 2013
@huonw huonw deleted the unsafearc branch November 25, 2013 10:55
xFrednet pushed a commit to xFrednet/rust that referenced this pull request May 21, 2022
Lint `empty_lint_after_outer_attr` on argumentless macros

Reverts the change from 034c81b as it's no longer needed. The test is left just in case. Original issue is rust-lang#2475.

changelog: Lint `empty_lint_after_outer_attr` on argumentless macros again
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.

3 participants