11error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a deadlock
2- --> tests/ui/if_let_mutex.rs:16 :5
2+ --> tests/ui/if_let_mutex.rs:17 :5
33 |
44LL | if let Err(locked) = m.lock() {
55 | ^ - this Mutex will remain locked for the entire `if let`-block...
@@ -19,7 +19,7 @@ LL | | };
1919 = help: to override `-D warnings` add `#[allow(clippy::if_let_mutex)]`
2020
2121error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a deadlock
22- --> tests/ui/if_let_mutex.rs:29 :5
22+ --> tests/ui/if_let_mutex.rs:30 :5
2323 |
2424LL | if let Some(locked) = m.lock().unwrap().deref() {
2525 | ^ - this Mutex will remain locked for the entire `if let`-block...
@@ -37,7 +37,7 @@ LL | | };
3737 = help: move the lock call outside of the `if let ...` expression
3838
3939error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a deadlock
40- --> tests/ui/if_let_mutex.rs:51 :5
40+ --> tests/ui/if_let_mutex.rs:52 :5
4141 |
4242LL | if let Ok(i) = mutex.lock() {
4343 | ^ ----- this Mutex will remain locked for the entire `if let`-block...
@@ -54,7 +54,7 @@ LL | | };
5454 = help: move the lock call outside of the `if let ...` expression
5555
5656error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a deadlock
57- --> tests/ui/if_let_mutex.rs:60 :5
57+ --> tests/ui/if_let_mutex.rs:61 :5
5858 |
5959LL | if let Ok(_) = m1.lock() {
6060 | ^ -- this Mutex will remain locked for the entire `if let`-block...
0 commit comments