fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
823 B26 linesraw
1error: `MutexGuard` held across a suspend point, but should not be
2  --> $DIR/mutex.rs:8:9
3   |
4LL |     let _guard = m.lock().unwrap();
5   |         ^^^^^^
6LL |     other().await;
7   |             ----- the value is held across this suspend point
8   |
9note: holding a MutexGuard across suspend points can cause deadlocks, delays, and cause Futures to not implement `Send`
10  --> $DIR/mutex.rs:8:9
11   |
12LL |     let _guard = m.lock().unwrap();
13   |         ^^^^^^
14help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
15  --> $DIR/mutex.rs:8:9
16   |
17LL |     let _guard = m.lock().unwrap();
18   |         ^^^^^^
19note: the lint level is defined here
20  --> $DIR/mutex.rs:3:9
21   |
22LL | #![deny(must_not_suspend)]
23   |         ^^^^^^^^^^^^^^^^
24
25error: aborting due to previous error
26