Skip to content

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