]> git.lizzy.rs Git - rust.git/blob - tests/ui/mutex_atomic.stderr
Merge pull request #1520 from Manishearth/rustup
[rust.git] / tests / ui / mutex_atomic.stderr
1 error: Consider using an AtomicBool instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
2  --> $DIR/mutex_atomic.rs:9:5
3   |
4 9 |     Mutex::new(true);
5   |     ^^^^^^^^^^^^^^^^
6   |
7   = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
8 note: lint level defined here
9  --> $DIR/mutex_atomic.rs:4:9
10   |
11 4 | #![deny(clippy)]
12   |         ^^^^^^
13
14 error: Consider using an AtomicUsize instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
15   --> $DIR/mutex_atomic.rs:10:5
16    |
17 10 |     Mutex::new(5usize);
18    |     ^^^^^^^^^^^^^^^^^^
19    |
20    = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
21
22 error: Consider using an AtomicIsize instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
23   --> $DIR/mutex_atomic.rs:11:5
24    |
25 11 |     Mutex::new(9isize);
26    |     ^^^^^^^^^^^^^^^^^^
27    |
28    = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
29
30 error: Consider using an AtomicPtr instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
31   --> $DIR/mutex_atomic.rs:13:5
32    |
33 13 |     Mutex::new(&x as *const u32);
34    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35    |
36    = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
37
38 error: Consider using an AtomicPtr instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
39   --> $DIR/mutex_atomic.rs:14:5
40    |
41 14 |     Mutex::new(&mut x as *mut u32);
42    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43    |
44    = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
45
46 error: Consider using an AtomicUsize instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
47   --> $DIR/mutex_atomic.rs:15:5
48    |
49 15 |     Mutex::new(0u32);
50    |     ^^^^^^^^^^^^^^^^
51    |
52 note: lint level defined here
53   --> $DIR/mutex_atomic.rs:5:9
54    |
55 5  | #![deny(mutex_integer)]
56    |         ^^^^^^^^^^^^^
57
58 error: Consider using an AtomicIsize instead of a Mutex here. If you just want the locking behaviour and not the internal type, consider using Mutex<()>.
59   --> $DIR/mutex_atomic.rs:16:5
60    |
61 16 |     Mutex::new(0i32);
62    |     ^^^^^^^^^^^^^^^^
63
64 error: aborting due to 7 previous errors
65