diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 43cfb1bb6407a..257bf2fc156d9 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -427,10 +427,6 @@ impl AtomicBool { /// `load` takes an [`Ordering`] argument which describes the memory ordering /// of this operation. Possible values are [`SeqCst`], [`Acquire`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Release`] or [`AcqRel`]. - /// /// # Examples /// /// ``` @@ -453,10 +449,6 @@ impl AtomicBool { /// `store` takes an [`Ordering`] argument which describes the memory ordering /// of this operation. Possible values are [`SeqCst`], [`Release`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Acquire`] or [`AcqRel`]. - /// /// # Examples /// /// ``` @@ -1109,10 +1101,6 @@ impl AtomicPtr { /// `load` takes an [`Ordering`] argument which describes the memory ordering /// of this operation. Possible values are [`SeqCst`], [`Acquire`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Release`] or [`AcqRel`]. - /// /// # Examples /// /// ``` @@ -1135,10 +1123,6 @@ impl AtomicPtr { /// `store` takes an [`Ordering`] argument which describes the memory ordering /// of this operation. Possible values are [`SeqCst`], [`Release`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Acquire`] or [`AcqRel`]. - /// /// # Examples /// /// ``` @@ -1692,10 +1676,6 @@ macro_rules! atomic_int { /// `load` takes an [`Ordering`] argument which describes the memory ordering of this operation. /// Possible values are [`SeqCst`], [`Acquire`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Release`] or [`AcqRel`]. - /// /// # Examples /// /// ``` @@ -1717,10 +1697,6 @@ macro_rules! atomic_int { /// `store` takes an [`Ordering`] argument which describes the memory ordering of this operation. /// Possible values are [`SeqCst`], [`Release`] and [`Relaxed`]. /// - /// # Panics - /// - /// Panics if `order` is [`Acquire`] or [`AcqRel`]. - /// /// # Examples /// /// ```