1
1
error: 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
3
3
|
4
4
LL | if let Err(locked) = m.lock() {
5
5
| ^ - this Mutex will remain locked for the entire `if let`-block...
@@ -19,7 +19,7 @@ LL | | };
19
19
= help: to override `-D warnings` add `#[allow(clippy::if_let_mutex)]`
20
20
21
21
error: 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
23
23
|
24
24
LL | if let Some(locked) = m.lock().unwrap().deref() {
25
25
| ^ - this Mutex will remain locked for the entire `if let`-block...
@@ -37,7 +37,7 @@ LL | | };
37
37
= help: move the lock call outside of the `if let ...` expression
38
38
39
39
error: 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
41
41
|
42
42
LL | if let Ok(i) = mutex.lock() {
43
43
| ^ ----- this Mutex will remain locked for the entire `if let`-block...
@@ -54,7 +54,7 @@ LL | | };
54
54
= help: move the lock call outside of the `if let ...` expression
55
55
56
56
error: 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
58
58
|
59
59
LL | if let Ok(_) = m1.lock() {
60
60
| ^ -- this Mutex will remain locked for the entire `if let`-block...
0 commit comments