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
7 = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
8 note: lint level defined here
9 --> $DIR/mutex_atomic.rs:4:9
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
17 10 | Mutex::new(5usize);
20 = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
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
25 11 | Mutex::new(9isize);
28 = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
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
33 13 | Mutex::new(&x as *const u32);
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
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
41 14 | Mutex::new(&mut x as *mut u32);
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 = note: #[deny(mutex_atomic)] implied by #[deny(clippy)]
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
49 15 | Mutex::new(0u32);
52 note: lint level defined here
53 --> $DIR/mutex_atomic.rs:5:9
55 5 | #![deny(mutex_integer)]
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
61 16 | Mutex::new(0i32);
64 error: aborting due to 7 previous errors