fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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:8:5 3 | 4LL | Mutex::new(true); 5 | ^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::mutex-atomic` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::mutex_atomic)]` 9 10error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 11 --> $DIR/mutex_atomic.rs:11:5 12 | 13LL | Mutex::new(5usize); 14 | ^^^^^^^^^^^^^^^^^^ 15 16error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 17 --> $DIR/mutex_atomic.rs:13:5 18 | 19LL | Mutex::new(9isize); 20 | ^^^^^^^^^^^^^^^^^^ 21 22error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 23 --> $DIR/mutex_atomic.rs:16:5 24 | 25LL | Mutex::new(&x as *const u32); 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 28error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 29 --> $DIR/mutex_atomic.rs:18:5 30 | 31LL | Mutex::new(&mut x as *mut u32); 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 34error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 35 --> $DIR/mutex_atomic.rs:20:5 36 | 37LL | Mutex::new(0u32); 38 | ^^^^^^^^^^^^^^^^ 39 | 40 = note: `-D clippy::mutex-integer` implied by `-D warnings` 41 = help: to override `-D warnings` add `#[allow(clippy::mutex_integer)]` 42 43error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` 44 --> $DIR/mutex_atomic.rs:23:5 45 | 46LL | Mutex::new(0i32); 47 | ^^^^^^^^^^^^^^^^ 48 49error: aborting due to 7 previous errors 50