1
1
error: `await` is a keyword in the 2018 edition
2
- --> $DIR/2015-edition-error-in-non-macro-position .rs:6:13
2
+ --> $DIR/2015-edition-error-various-positions .rs:6:13
3
3
|
4
4
LL | pub mod await {
5
5
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
6
6
|
7
7
note: lint level defined here
8
- --> $DIR/2015-edition-error-in-non-macro-position .rs:3:9
8
+ --> $DIR/2015-edition-error-various-positions .rs:3:9
9
9
|
10
10
LL | #![deny(keyword_idents)]
11
11
| ^^^^^^^^^^^^^^
12
12
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
13
13
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
14
14
15
15
error: `await` is a keyword in the 2018 edition
16
- --> $DIR/2015-edition-error-in-non-macro-position .rs:8:20
16
+ --> $DIR/2015-edition-error-various-positions .rs:8:20
17
17
|
18
18
LL | pub struct await;
19
19
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -22,7 +22,7 @@ LL | pub struct await;
22
22
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23
23
24
24
error: `await` is a keyword in the 2018 edition
25
- --> $DIR/2015-edition-error-in-non-macro-position .rs:12:16
25
+ --> $DIR/2015-edition-error-various-positions .rs:12:16
26
26
|
27
27
LL | use outer_mod::await::await;
28
28
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -31,7 +31,7 @@ LL | use outer_mod::await::await;
31
31
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32
32
33
33
error: `await` is a keyword in the 2018 edition
34
- --> $DIR/2015-edition-error-in-non-macro-position .rs:12:23
34
+ --> $DIR/2015-edition-error-various-positions .rs:12:23
35
35
|
36
36
LL | use outer_mod::await::await;
37
37
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -40,7 +40,7 @@ LL | use outer_mod::await::await;
40
40
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41
41
42
42
error: `await` is a keyword in the 2018 edition
43
- --> $DIR/2015-edition-error-in-non-macro-position .rs:17:14
43
+ --> $DIR/2015-edition-error-various-positions .rs:17:14
44
44
|
45
45
LL | struct Foo { await: () }
46
46
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -49,7 +49,7 @@ LL | struct Foo { await: () }
49
49
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50
50
51
51
error: `await` is a keyword in the 2018 edition
52
- --> $DIR/2015-edition-error-in-non-macro-position .rs:21:15
52
+ --> $DIR/2015-edition-error-various-positions .rs:21:15
53
53
|
54
54
LL | impl Foo { fn await() {} }
55
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -58,7 +58,7 @@ LL | impl Foo { fn await() {} }
58
58
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59
59
60
60
error: `await` is a keyword in the 2018 edition
61
- --> $DIR/2015-edition-error-in-non-macro-position .rs:25:14
61
+ --> $DIR/2015-edition-error-various-positions .rs:25:14
62
62
|
63
63
LL | macro_rules! await {
64
64
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -67,7 +67,16 @@ LL | macro_rules! await {
67
67
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68
68
69
69
error: `await` is a keyword in the 2018 edition
70
- --> $DIR/2015-edition-error-in-non-macro-position.rs:32:11
70
+ --> $DIR/2015-edition-error-various-positions.rs:32:5
71
+ |
72
+ LL | await!();
73
+ | ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
74
+ |
75
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
76
+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77
+
78
+ error: `await` is a keyword in the 2018 edition
79
+ --> $DIR/2015-edition-error-various-positions.rs:35:11
71
80
|
72
81
LL | match await { await => {} }
73
82
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
@@ -76,13 +85,13 @@ LL | match await { await => {} }
76
85
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77
86
78
87
error: `await` is a keyword in the 2018 edition
79
- --> $DIR/2015-edition-error-in-non-macro-position .rs:32 :19
88
+ --> $DIR/2015-edition-error-various-positions .rs:35 :19
80
89
|
81
90
LL | match await { await => {} }
82
91
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
83
92
|
84
93
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
85
94
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86
95
87
- error: aborting due to 9 previous errors
96
+ error: aborting due to 10 previous errors
88
97
0 commit comments