2 Checks for usages of `Mutex<X>` where an atomic will do.
5 Using a mutex just to make access to a plain bool or
6 reference sequential is shooting flies with cannons.
7 `std::sync::atomic::AtomicBool` and `std::sync::atomic::AtomicPtr` are leaner and
11 This lint cannot detect if the mutex is actually used
12 for waiting before a critical section.
16 let x = Mutex::new(&y);
21 let x = AtomicBool::new(y);