@@ -13,15 +13,6 @@ LL | #![deny(keyword_idents)]
13
13
| ^^^^^^^^^^^^^^
14
14
= note: `#[deny(keyword_idents_2018)]` implied by `#[deny(keyword_idents)]`
15
15
16
- error: `async` is a keyword in the 2018 edition
17
- --> $DIR/async-ident.rs:12:7
18
- |
19
- LL | ($async:expr, async) => {};
20
- | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
21
- |
22
- = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
23
- = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
24
-
25
16
error: `async` is a keyword in the 2018 edition
26
17
--> $DIR/async-ident.rs:12:19
27
18
|
@@ -32,7 +23,7 @@ LL | ($async:expr, async) => {};
32
23
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
33
24
34
25
error: `async` is a keyword in the 2018 edition
35
- --> $DIR/async-ident.rs:19 :6
26
+ --> $DIR/async-ident.rs:17 :6
36
27
|
37
28
LL | foo!(async);
38
29
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -41,7 +32,7 @@ LL | foo!(async);
41
32
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
42
33
43
34
error: `async` is a keyword in the 2018 edition
44
- --> $DIR/async-ident.rs:28 :11
35
+ --> $DIR/async-ident.rs:26 :11
45
36
|
46
37
LL | trait async {}
47
38
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -50,7 +41,7 @@ LL | trait async {}
50
41
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
51
42
52
43
error: `async` is a keyword in the 2018 edition
53
- --> $DIR/async-ident.rs:32 :10
44
+ --> $DIR/async-ident.rs:30 :10
54
45
|
55
46
LL | impl async for MyStruct {}
56
47
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -59,7 +50,7 @@ LL | impl async for MyStruct {}
59
50
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
60
51
61
52
error: `async` is a keyword in the 2018 edition
62
- --> $DIR/async-ident.rs:38 :12
53
+ --> $DIR/async-ident.rs:36 :12
63
54
|
64
55
LL | static async: u32 = 0;
65
56
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -68,7 +59,7 @@ LL | static async: u32 = 0;
68
59
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
69
60
70
61
error: `async` is a keyword in the 2018 edition
71
- --> $DIR/async-ident.rs:44 :11
62
+ --> $DIR/async-ident.rs:42 :11
72
63
|
73
64
LL | const async: u32 = 0;
74
65
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -77,7 +68,7 @@ LL | const async: u32 = 0;
77
68
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
78
69
79
70
error: `async` is a keyword in the 2018 edition
80
- --> $DIR/async-ident.rs:50 :15
71
+ --> $DIR/async-ident.rs:48 :15
81
72
|
82
73
LL | impl Foo { fn async() {} }
83
74
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -86,7 +77,7 @@ LL | impl Foo { fn async() {} }
86
77
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
87
78
88
79
error: `async` is a keyword in the 2018 edition
89
- --> $DIR/async-ident.rs:55 :12
80
+ --> $DIR/async-ident.rs:53 :12
90
81
|
91
82
LL | struct async {}
92
83
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -95,7 +86,7 @@ LL | struct async {}
95
86
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
96
87
97
88
error: `async` is a keyword in the 2018 edition
98
- --> $DIR/async-ident.rs:58 :9
89
+ --> $DIR/async-ident.rs:56 :9
99
90
|
100
91
LL | let async: async = async {};
101
92
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -104,7 +95,7 @@ LL | let async: async = async {};
104
95
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
105
96
106
97
error: `async` is a keyword in the 2018 edition
107
- --> $DIR/async-ident.rs:58 :16
98
+ --> $DIR/async-ident.rs:56 :16
108
99
|
109
100
LL | let async: async = async {};
110
101
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -113,7 +104,7 @@ LL | let async: async = async {};
113
104
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
114
105
115
106
error: `async` is a keyword in the 2018 edition
116
- --> $DIR/async-ident.rs:58 :24
107
+ --> $DIR/async-ident.rs:56 :24
117
108
|
118
109
LL | let async: async = async {};
119
110
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -122,7 +113,7 @@ LL | let async: async = async {};
122
113
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
123
114
124
115
error: `async` is a keyword in the 2018 edition
125
- --> $DIR/async-ident.rs:69 :19
116
+ --> $DIR/async-ident.rs:67 :19
126
117
|
127
118
LL | () => (pub fn async() {})
128
119
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -131,13 +122,13 @@ LL | () => (pub fn async() {})
131
122
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
132
123
133
124
error: `async` is a keyword in the 2018 edition
134
- --> $DIR/async-ident.rs:76 :6
125
+ --> $DIR/async-ident.rs:74 :6
135
126
|
136
127
LL | (async) => (1)
137
128
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
138
129
|
139
130
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
140
131
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
141
132
142
- error: aborting due to 15 previous errors
133
+ error: aborting due to 14 previous errors
143
134
0 commit comments