summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-invalid-atomic-ordering-exchange-weak.stderr
blob: 021654cf35eed92b195a3b10b62e9e46a2824271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28:67
   |
LL |     let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering::AcqRel);
   |                                                                   ^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = note: `#[deny(invalid_atomic_ordering)]` on by default
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30:67
   |
LL |     let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::AcqRel);
   |                                                                   ^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:32:67
   |
LL |     let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::AcqRel);
   |                                                                   ^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34:66
   |
LL |     let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::AcqRel);
   |                                                                  ^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36:66
   |
LL |     let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::SeqCst, Ordering::AcqRel);
   |                                                                  ^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40:67
   |
LL |     let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Release);
   |                                                                   ^^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42:67
   |
LL |     let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Acquire, Ordering::Release);
   |                                                                   ^^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:44:67
   |
LL |     let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Release, Ordering::Release);
   |                                                                   ^^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:46:66
   |
LL |     let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::AcqRel, Ordering::Release);
   |                                                                  ^^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: `compare_exchange_weak`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange_weak` does not result in a write
  --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:48:66
   |
LL |     let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::SeqCst, Ordering::Release);
   |                                                                  ^^^^^^^^^^^^^^^^^ invalid failure ordering
   |
   = help: consider using `Acquire` or `Relaxed` failure ordering instead

error: aborting due to 10 previous errors