@@ -13,15 +13,6 @@ LL | #![deny(keyword_idents)]
1313 | ^^^^^^^^^^^^^^
1414 = note: `#[deny(keyword_idents_2018)]` implied by `#[deny(keyword_idents)]`
1515
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-
2516error: `async` is a keyword in the 2018 edition
2617 --> $DIR/async-ident.rs:12:19
2718 |
@@ -32,7 +23,7 @@ LL | ($async:expr, async) => {};
3223 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
3324
3425error: `async` is a keyword in the 2018 edition
35- --> $DIR/async-ident.rs:19 :6
26+ --> $DIR/async-ident.rs:17 :6
3627 |
3728LL | foo!(async);
3829 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -41,7 +32,7 @@ LL | foo!(async);
4132 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
4233
4334error: `async` is a keyword in the 2018 edition
44- --> $DIR/async-ident.rs:28 :11
35+ --> $DIR/async-ident.rs:26 :11
4536 |
4637LL | trait async {}
4738 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -50,7 +41,7 @@ LL | trait async {}
5041 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5142
5243error: `async` is a keyword in the 2018 edition
53- --> $DIR/async-ident.rs:32 :10
44+ --> $DIR/async-ident.rs:30 :10
5445 |
5546LL | impl async for MyStruct {}
5647 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -59,7 +50,7 @@ LL | impl async for MyStruct {}
5950 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
6051
6152error: `async` is a keyword in the 2018 edition
62- --> $DIR/async-ident.rs:38 :12
53+ --> $DIR/async-ident.rs:36 :12
6354 |
6455LL | static async: u32 = 0;
6556 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -68,7 +59,7 @@ LL | static async: u32 = 0;
6859 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
6960
7061error: `async` is a keyword in the 2018 edition
71- --> $DIR/async-ident.rs:44 :11
62+ --> $DIR/async-ident.rs:42 :11
7263 |
7364LL | const async: u32 = 0;
7465 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -77,7 +68,7 @@ LL | const async: u32 = 0;
7768 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
7869
7970error: `async` is a keyword in the 2018 edition
80- --> $DIR/async-ident.rs:50 :15
71+ --> $DIR/async-ident.rs:48 :15
8172 |
8273LL | impl Foo { fn async() {} }
8374 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -86,7 +77,7 @@ LL | impl Foo { fn async() {} }
8677 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8778
8879error: `async` is a keyword in the 2018 edition
89- --> $DIR/async-ident.rs:55 :12
80+ --> $DIR/async-ident.rs:53 :12
9081 |
9182LL | struct async {}
9283 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -95,7 +86,7 @@ LL | struct async {}
9586 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
9687
9788error: `async` is a keyword in the 2018 edition
98- --> $DIR/async-ident.rs:58 :9
89+ --> $DIR/async-ident.rs:56 :9
9990 |
10091LL | let async: async = async {};
10192 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -104,7 +95,7 @@ LL | let async: async = async {};
10495 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
10596
10697error: `async` is a keyword in the 2018 edition
107- --> $DIR/async-ident.rs:58 :16
98+ --> $DIR/async-ident.rs:56 :16
10899 |
109100LL | let async: async = async {};
110101 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -113,7 +104,7 @@ LL | let async: async = async {};
113104 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
114105
115106error: `async` is a keyword in the 2018 edition
116- --> $DIR/async-ident.rs:58 :24
107+ --> $DIR/async-ident.rs:56 :24
117108 |
118109LL | let async: async = async {};
119110 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -122,7 +113,7 @@ LL | let async: async = async {};
122113 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
123114
124115error: `async` is a keyword in the 2018 edition
125- --> $DIR/async-ident.rs:69 :19
116+ --> $DIR/async-ident.rs:67 :19
126117 |
127118LL | () => (pub fn async() {})
128119 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -131,13 +122,13 @@ LL | () => (pub fn async() {})
131122 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
132123
133124error: `async` is a keyword in the 2018 edition
134- --> $DIR/async-ident.rs:76 :6
125+ --> $DIR/async-ident.rs:74 :6
135126 |
136127LL | (async) => (1)
137128 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
138129 |
139130 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
140131 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
141132
142- error: aborting due to 15 previous errors
133+ error: aborting due to 14 previous errors
143134
0 commit comments