You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #7866 - rust-lang:edition-2021-tests, r=Manishearth
update most tests to 2021 edition
Some tests would no longer work at all, so I added `edition:2015` or `edition:2018` to them.
Notably 2021 panics are not yet detected correctly. Once ready, this closes#7842.
---
changelog: none
Copy file name to clipboardExpand all lines: tests/ui/await_holding_lock.stderr
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await
2
-
--> $DIR/await_holding_lock.rs:7:9
2
+
--> $DIR/await_holding_lock.rs:6:9
3
3
|
4
4
LL | let guard = x.lock().unwrap();
5
5
| ^^^^^
6
6
|
7
7
= note: `-D clippy::await-holding-lock` implied by `-D warnings`
8
8
note: these are all the await points this lock is held through
9
-
--> $DIR/await_holding_lock.rs:7:5
9
+
--> $DIR/await_holding_lock.rs:6:5
10
10
|
11
11
LL | / let guard = x.lock().unwrap();
12
12
LL | | baz().await
13
13
LL | | }
14
14
| |_^
15
15
16
16
error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await
17
-
--> $DIR/await_holding_lock.rs:28:9
17
+
--> $DIR/await_holding_lock.rs:27:9
18
18
|
19
19
LL | let guard = x.lock().unwrap();
20
20
| ^^^^^
21
21
|
22
22
note: these are all the await points this lock is held through
23
-
--> $DIR/await_holding_lock.rs:28:5
23
+
--> $DIR/await_holding_lock.rs:27:5
24
24
|
25
25
LL | / let guard = x.lock().unwrap();
26
26
LL | |
@@ -32,27 +32,27 @@ LL | | }
32
32
| |_^
33
33
34
34
error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await
35
-
--> $DIR/await_holding_lock.rs:41:13
35
+
--> $DIR/await_holding_lock.rs:40:13
36
36
|
37
37
LL | let guard = x.lock().unwrap();
38
38
| ^^^^^
39
39
|
40
40
note: these are all the await points this lock is held through
41
-
--> $DIR/await_holding_lock.rs:41:9
41
+
--> $DIR/await_holding_lock.rs:40:9
42
42
|
43
43
LL | / let guard = x.lock().unwrap();
44
44
LL | | baz().await
45
45
LL | | };
46
46
| |_____^
47
47
48
48
error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await
49
-
--> $DIR/await_holding_lock.rs:53:13
49
+
--> $DIR/await_holding_lock.rs:52:13
50
50
|
51
51
LL | let guard = x.lock().unwrap();
52
52
| ^^^^^
53
53
|
54
54
note: these are all the await points this lock is held through
0 commit comments