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

Minor Atomic Changes #8087

Closed
wants to merge 3 commits into from
Closed

Minor Atomic Changes #8087

wants to merge 3 commits into from

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented Jul 28, 2013

Adds a fence operation to close #8061

Also adds static initializers to for atomic types. Since the fields are private, you aren't able to have static mut variables that are an atomic type. Each atomic type's initializer starts at a 0-value (so unset for AtomicFlag and false for AtomicBool).

bors added a commit that referenced this pull request Jul 28, 2013
Adds a fence operation to close #8061

Also adds static initializers to for atomic types. Since the fields are private, you aren't able to have `static mut` variables that are an atomic type. Each atomic type's initializer starts at a 0-value (so unset for `AtomicFlag` and false for `AtomicBool`).
@bors bors closed this Jul 28, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 30, 2021
fix [`shadow_reuse`] false negative for if let bindings

fixes rust-lang#8087

changelog: trigger [`shadow_reuse`] instead of [`shadow_unrelated`] on shadowed `if let` bindings
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.

Implement llvm memory fence intrinsic.
3 participants