@@ -31,7 +31,16 @@ LL | ($async:expr, async) => {};
3131 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
3232
3333error: `async` is a keyword in the 2018 edition
34- --> $DIR/async-ident.rs:36:11
34+ --> $DIR/async-ident.rs:29:6
35+ |
36+ LL | foo!(async);
37+ | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
38+ |
39+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
40+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41+
42+ error: `async` is a keyword in the 2018 edition
43+ --> $DIR/async-ident.rs:38:11
3544 |
3645LL | trait async {}
3746 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -40,7 +49,7 @@ LL | trait async {}
4049 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
4150
4251error: `async` is a keyword in the 2018 edition
43- --> $DIR/async-ident.rs:40 :10
52+ --> $DIR/async-ident.rs:42 :10
4453 |
4554LL | impl async for MyStruct {}
4655 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -49,7 +58,7 @@ LL | impl async for MyStruct {}
4958 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5059
5160error: `async` is a keyword in the 2018 edition
52- --> $DIR/async-ident.rs:46 :12
61+ --> $DIR/async-ident.rs:48 :12
5362 |
5463LL | static async: u32 = 0;
5564 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -58,7 +67,7 @@ LL | static async: u32 = 0;
5867 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5968
6069error: `async` is a keyword in the 2018 edition
61- --> $DIR/async-ident.rs:52 :11
70+ --> $DIR/async-ident.rs:54 :11
6271 |
6372LL | const async: u32 = 0;
6473 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -67,7 +76,7 @@ LL | const async: u32 = 0;
6776 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
6877
6978error: `async` is a keyword in the 2018 edition
70- --> $DIR/async-ident.rs:58 :15
79+ --> $DIR/async-ident.rs:60 :15
7180 |
7281LL | impl Foo { fn async() {} }
7382 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -76,7 +85,7 @@ LL | impl Foo { fn async() {} }
7685 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
7786
7887error: `async` is a keyword in the 2018 edition
79- --> $DIR/async-ident.rs:63 :12
88+ --> $DIR/async-ident.rs:65 :12
8089 |
8190LL | struct async {}
8291 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -85,7 +94,7 @@ LL | struct async {}
8594 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8695
8796error: `async` is a keyword in the 2018 edition
88- --> $DIR/async-ident.rs:66 :9
97+ --> $DIR/async-ident.rs:68 :9
8998 |
9099LL | let async: async = async {};
91100 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -94,7 +103,7 @@ LL | let async: async = async {};
94103 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95104
96105error: `async` is a keyword in the 2018 edition
97- --> $DIR/async-ident.rs:66 :16
106+ --> $DIR/async-ident.rs:68 :16
98107 |
99108LL | let async: async = async {};
100109 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -103,7 +112,7 @@ LL | let async: async = async {};
103112 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104113
105114error: `async` is a keyword in the 2018 edition
106- --> $DIR/async-ident.rs:66 :24
115+ --> $DIR/async-ident.rs:68 :24
107116 |
108117LL | let async: async = async {};
109118 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -112,7 +121,7 @@ LL | let async: async = async {};
112121 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113122
114123error: `async` is a keyword in the 2018 edition
115- --> $DIR/async-ident.rs:77 :19
124+ --> $DIR/async-ident.rs:79 :19
116125 |
117126LL | () => (pub fn async() {})
118127 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -121,13 +130,13 @@ LL | () => (pub fn async() {})
121130 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122131
123132error: `async` is a keyword in the 2018 edition
124- --> $DIR/async-ident.rs:84 :6
133+ --> $DIR/async-ident.rs:86 :6
125134 |
126135LL | (async) => (1)
127136 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
128137 |
129138 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
130139 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
131140
132- error: aborting due to 14 previous errors
141+ error: aborting due to 15 previous errors
133142
0 commit comments