File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for IfLetMutex {
6464 let diag = |diag : & mut Diagnostic | {
6565 diag. span_label (
6666 op_mutex. span ,
67- "This Mutex will remain locked for the entire `if let`-block..." ,
67+ "this Mutex will remain locked for the entire `if let`-block..." ,
6868 ) ;
6969 diag. span_label (
7070 arm_mutex. span ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
22 --> $DIR/if_let_mutex.rs:10:5
33 |
44LL | if let Err(locked) = m.lock() {
5- | ^ - This Mutex will remain locked for the entire `if let`-block...
5+ | ^ - this Mutex will remain locked for the entire `if let`-block...
66 | _____|
77 | |
88LL | | do_stuff(locked);
@@ -20,7 +20,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
2020 --> $DIR/if_let_mutex.rs:22:5
2121 |
2222LL | if let Some(locked) = m.lock().unwrap().deref() {
23- | ^ - This Mutex will remain locked for the entire `if let`-block...
23+ | ^ - this Mutex will remain locked for the entire `if let`-block...
2424 | _____|
2525 | |
2626LL | | do_stuff(locked);
@@ -37,7 +37,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
3737 --> $DIR/if_let_mutex.rs:43:5
3838 |
3939LL | if let Ok(i) = mutex.lock() {
40- | ^ ----- This Mutex will remain locked for the entire `if let`-block...
40+ | ^ ----- this Mutex will remain locked for the entire `if let`-block...
4141 | _____|
4242 | |
4343LL | | do_stuff(i);
You can’t perform that action at this time.
0 commit comments