Skip to content

Commit

Permalink
Rollup merge of rust-lang#42098 - japaric:gh42097, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
core: fix unused_macro warning

when compiling the crate for a target with max-atomic-width = 0

fixes rust-lang#42097
  • Loading branch information
Mark-Simulacrum authored May 20, 2017
2 parents 2dc1559 + e4f9db7 commit 950e426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ impl<T> AtomicPtr<T> {
}
}

#[cfg(target_has_atomic = "ptr")]
macro_rules! atomic_int {
($stable:meta,
$stable_cxchg:meta,
Expand Down

0 comments on commit 950e426

Please sign in to comment.