Skip to content

Commit

Permalink
fix core for targets with max-atomic-width = 0
Browse files Browse the repository at this point in the history
closes #45802
  • Loading branch information
japaric committed Nov 8, 2017
1 parent 02004ef commit 47ed473
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 @@ -927,6 +927,7 @@ impl<T> AtomicPtr<T> {
}
}

#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "atomic_from", since = "1.23.0")]
impl<T> From<*mut T> for AtomicPtr<T> {
#[inline]
Expand Down

0 comments on commit 47ed473

Please sign in to comment.