@@ -102,19 +102,19 @@ impl AtomicBool {
102
102
103
103
/// Load the value
104
104
///
105
- /// # Failure
105
+ /// # Panics
106
106
///
107
- /// Fails if `order` is `Release` or `AcqRel`.
107
+ /// Panics if `order` is `Release` or `AcqRel`.
108
108
#[ inline]
109
109
pub fn load ( & self , order : Ordering ) -> bool {
110
110
unsafe { atomic_load ( self . v . get ( ) as * const uint , order) > 0 }
111
111
}
112
112
113
113
/// Store the value
114
114
///
115
- /// # Failure
115
+ /// # Panics
116
116
///
117
- /// Fails if `order` is `Acquire` or `AcqRel`.
117
+ /// Panics if `order` is `Acquire` or `AcqRel`.
118
118
#[ inline]
119
119
pub fn store ( & self , val : bool , order : Ordering ) {
120
120
let val = if val { UINT_TRUE } else { 0 } ;
@@ -313,19 +313,19 @@ impl AtomicInt {
313
313
314
314
/// Load the value
315
315
///
316
- /// # Failure
316
+ /// # Panics
317
317
///
318
- /// Fails if `order` is `Release` or `AcqRel`.
318
+ /// Panics if `order` is `Release` or `AcqRel`.
319
319
#[ inline]
320
320
pub fn load ( & self , order : Ordering ) -> int {
321
321
unsafe { atomic_load ( self . v . get ( ) as * const int , order) }
322
322
}
323
323
324
324
/// Store the value
325
325
///
326
- /// # Failure
326
+ /// # Panics
327
327
///
328
- /// Fails if `order` is `Acquire` or `AcqRel`.
328
+ /// Panics if `order` is `Acquire` or `AcqRel`.
329
329
#[ inline]
330
330
pub fn store ( & self , val : int , order : Ordering ) {
331
331
unsafe { atomic_store ( self . v . get ( ) , val, order) ; }
@@ -435,19 +435,19 @@ impl AtomicUint {
435
435
436
436
/// Load the value
437
437
///
438
- /// # Failure
438
+ /// # Panics
439
439
///
440
- /// Fails if `order` is `Release` or `AcqRel`.
440
+ /// Panics if `order` is `Release` or `AcqRel`.
441
441
#[ inline]
442
442
pub fn load ( & self , order : Ordering ) -> uint {
443
443
unsafe { atomic_load ( self . v . get ( ) as * const uint , order) }
444
444
}
445
445
446
446
/// Store the value
447
447
///
448
- /// # Failure
448
+ /// # Panics
449
449
///
450
- /// Fails if `order` is `Acquire` or `AcqRel`.
450
+ /// Panics if `order` is `Acquire` or `AcqRel`.
451
451
#[ inline]
452
452
pub fn store ( & self , val : uint , order : Ordering ) {
453
453
unsafe { atomic_store ( self . v . get ( ) , val, order) ; }
@@ -557,9 +557,9 @@ impl<T> AtomicPtr<T> {
557
557
558
558
/// Load the value
559
559
///
560
- /// # Failure
560
+ /// # Panics
561
561
///
562
- /// Fails if `order` is `Release` or `AcqRel`.
562
+ /// Panics if `order` is `Release` or `AcqRel`.
563
563
#[ inline]
564
564
pub fn load ( & self , order : Ordering ) -> * mut T {
565
565
unsafe {
@@ -569,9 +569,9 @@ impl<T> AtomicPtr<T> {
569
569
570
570
/// Store the value
571
571
///
572
- /// # Failure
572
+ /// # Panics
573
573
///
574
- /// Fails if `order` is `Acquire` or `AcqRel`.
574
+ /// Panics if `order` is `Acquire` or `AcqRel`.
575
575
#[ inline]
576
576
pub fn store ( & self , ptr : * mut T , order : Ordering ) {
577
577
unsafe { atomic_store ( self . p . get ( ) , ptr as uint , order) ; }
@@ -729,9 +729,9 @@ unsafe fn atomic_xor<T>(dst: *mut T, val: T, order: Ordering) -> T {
729
729
///
730
730
/// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
731
731
///
732
- /// # Failure
732
+ /// # Panics
733
733
///
734
- /// Fails if `order` is `Relaxed`
734
+ /// Panics if `order` is `Relaxed`
735
735
#[ inline]
736
736
#[ stable]
737
737
pub fn fence ( order : Ordering ) {
0 commit comments