]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/mutex_atomic.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / mutex_atomic.stderr
CommitLineData
f20569fa
XL
1error: consider using an `AtomicBool` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
2 --> $DIR/mutex_atomic.rs:6:5
3 |
4LL | Mutex::new(true);
5 | ^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::mutex-atomic` implied by `-D warnings`
8
9error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
10 --> $DIR/mutex_atomic.rs:7:5
11 |
12LL | Mutex::new(5usize);
13 | ^^^^^^^^^^^^^^^^^^
14
15error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
16 --> $DIR/mutex_atomic.rs:8:5
17 |
18LL | Mutex::new(9isize);
19 | ^^^^^^^^^^^^^^^^^^
20
21error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
22 --> $DIR/mutex_atomic.rs:10:5
23 |
24LL | Mutex::new(&x as *const u32);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
28 --> $DIR/mutex_atomic.rs:11:5
29 |
30LL | Mutex::new(&mut x as *mut u32);
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
34 --> $DIR/mutex_atomic.rs:12:5
35 |
36LL | Mutex::new(0u32);
37 | ^^^^^^^^^^^^^^^^
38 |
39 = note: `-D clippy::mutex-integer` implied by `-D warnings`
40
41error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>`
42 --> $DIR/mutex_atomic.rs:13:5
43 |
44LL | Mutex::new(0i32);
45 | ^^^^^^^^^^^^^^^^
46
47error: aborting due to 7 previous errors
48