@@ -43,19 +43,19 @@ fn main() {
43
43
44
44
// Release success order forbids failure order of Acquire or SeqCst
45
45
let _ = x. compare_exchange_weak ( ptr2, ptr, Ordering :: Release , Ordering :: Acquire ) ;
46
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Release`
46
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
47
47
let _ = x. compare_exchange_weak ( ptr2, ptr, Ordering :: Release , Ordering :: SeqCst ) ;
48
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Release`
48
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
49
49
50
50
// Relaxed success order also forbids failure order of Acquire or SeqCst
51
51
let _ = x. compare_exchange_weak ( ptr, ptr2, Ordering :: Relaxed , Ordering :: SeqCst ) ;
52
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Relaxed`
52
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
53
53
let _ = x. compare_exchange_weak ( ptr, ptr2, Ordering :: Relaxed , Ordering :: Acquire ) ;
54
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Relaxed`
54
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
55
55
56
56
// Acquire/AcqRel forbids failure order of SeqCst
57
57
let _ = x. compare_exchange_weak ( ptr2, ptr, Ordering :: Acquire , Ordering :: SeqCst ) ;
58
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Acquire`
58
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
59
59
let _ = x. compare_exchange_weak ( ptr2, ptr, Ordering :: AcqRel , Ordering :: SeqCst ) ;
60
- //~^ ERROR compare_exchange_weak's failure ordering may not be stronger than the success ordering of `AcqRel`
60
+ //~^ ERROR compare_exchange_weak's failure ordering may not be stronger
61
61
}
0 commit comments