Skip to content

Commit b3fea26

Browse files
committed
utils: Fix AtomicCell::is_lock_free doctest with target without stable inline asm support
1 parent 1d59843 commit b3fea26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crossbeam-utils/src/atomic/atomic_cell.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl<T> AtomicCell<T> {
101101
/// ```
102102
/// # // Always use fallback for now on environments that do not support inline assembly.
103103
/// # if cfg!(any(miri, crossbeam_loom, crossbeam_atomic_cell_force_fallback)) { return; }
104+
/// # atomic_maybe_uninit::cfg_no_atomic_cas! { if true { return; } }
104105
/// use crossbeam_utils::atomic::AtomicCell;
105106
///
106107
/// // This type is internally represented as `AtomicUsize` so we can just use atomic

0 commit comments

Comments
 (0)