@@ -102,19 +102,19 @@ impl AtomicBool {
102102
103103 /// Load the value
104104 ///
105- /// # Failure
105+ /// # Panics
106106 ///
107- /// Fails if `order` is `Release` or `AcqRel`.
107+ /// Panics if `order` is `Release` or `AcqRel`.
108108 #[ inline]
109109 pub fn load ( & self , order : Ordering ) -> bool {
110110 unsafe { atomic_load ( self . v . get ( ) as * const uint , order) > 0 }
111111 }
112112
113113 /// Store the value
114114 ///
115- /// # Failure
115+ /// # Panics
116116 ///
117- /// Fails if `order` is `Acquire` or `AcqRel`.
117+ /// Panics if `order` is `Acquire` or `AcqRel`.
118118 #[ inline]
119119 pub fn store ( & self , val : bool , order : Ordering ) {
120120 let val = if val { UINT_TRUE } else { 0 } ;
@@ -313,19 +313,19 @@ impl AtomicInt {
313313
314314 /// Load the value
315315 ///
316- /// # Failure
316+ /// # Panics
317317 ///
318- /// Fails if `order` is `Release` or `AcqRel`.
318+ /// Panics if `order` is `Release` or `AcqRel`.
319319 #[ inline]
320320 pub fn load ( & self , order : Ordering ) -> int {
321321 unsafe { atomic_load ( self . v . get ( ) as * const int , order) }
322322 }
323323
324324 /// Store the value
325325 ///
326- /// # Failure
326+ /// # Panics
327327 ///
328- /// Fails if `order` is `Acquire` or `AcqRel`.
328+ /// Panics if `order` is `Acquire` or `AcqRel`.
329329 #[ inline]
330330 pub fn store ( & self , val : int , order : Ordering ) {
331331 unsafe { atomic_store ( self . v . get ( ) , val, order) ; }
@@ -435,19 +435,19 @@ impl AtomicUint {
435435
436436 /// Load the value
437437 ///
438- /// # Failure
438+ /// # Panics
439439 ///
440- /// Fails if `order` is `Release` or `AcqRel`.
440+ /// Panics if `order` is `Release` or `AcqRel`.
441441 #[ inline]
442442 pub fn load ( & self , order : Ordering ) -> uint {
443443 unsafe { atomic_load ( self . v . get ( ) as * const uint , order) }
444444 }
445445
446446 /// Store the value
447447 ///
448- /// # Failure
448+ /// # Panics
449449 ///
450- /// Fails if `order` is `Acquire` or `AcqRel`.
450+ /// Panics if `order` is `Acquire` or `AcqRel`.
451451 #[ inline]
452452 pub fn store ( & self , val : uint , order : Ordering ) {
453453 unsafe { atomic_store ( self . v . get ( ) , val, order) ; }
@@ -557,9 +557,9 @@ impl<T> AtomicPtr<T> {
557557
558558 /// Load the value
559559 ///
560- /// # Failure
560+ /// # Panics
561561 ///
562- /// Fails if `order` is `Release` or `AcqRel`.
562+ /// Panics if `order` is `Release` or `AcqRel`.
563563 #[ inline]
564564 pub fn load ( & self , order : Ordering ) -> * mut T {
565565 unsafe {
@@ -569,9 +569,9 @@ impl<T> AtomicPtr<T> {
569569
570570 /// Store the value
571571 ///
572- /// # Failure
572+ /// # Panics
573573 ///
574- /// Fails if `order` is `Acquire` or `AcqRel`.
574+ /// Panics if `order` is `Acquire` or `AcqRel`.
575575 #[ inline]
576576 pub fn store ( & self , ptr : * mut T , order : Ordering ) {
577577 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 {
729729///
730730/// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
731731///
732- /// # Failure
732+ /// # Panics
733733///
734- /// Fails if `order` is `Relaxed`
734+ /// Panics if `order` is `Relaxed`
735735#[ inline]
736736#[ stable]
737737pub fn fence ( order : Ordering ) {
0 commit comments