11error: `async` is a keyword in the 2018 edition
2- --> $DIR/async-ident.rs:17 :4
2+ --> $DIR/async-ident.rs:18 :4
33 |
44LL | fn async() {} //~ ERROR async
55 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
66 |
7- = note: #[deny(async_idents)] on by default
7+ note: lint level defined here
8+ --> $DIR/async-ident.rs:13:9
9+ |
10+ LL | #![deny(async_idents)]
11+ | ^^^^^^^^^^^^
812 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
913 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1014
1115error: `async` is a keyword in the 2018 edition
12- --> $DIR/async-ident.rs:22 :7
16+ --> $DIR/async-ident.rs:23 :7
1317 |
1418LL | ($async:expr, async) => {};
1519 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -18,7 +22,7 @@ LL | ($async:expr, async) => {};
1822 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1923
2024error: `async` is a keyword in the 2018 edition
21- --> $DIR/async-ident.rs:22 :19
25+ --> $DIR/async-ident.rs:23 :19
2226 |
2327LL | ($async:expr, async) => {};
2428 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -27,7 +31,7 @@ LL | ($async:expr, async) => {};
2731 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
2832
2933error: `async` is a keyword in the 2018 edition
30- --> $DIR/async-ident.rs:36 :11
34+ --> $DIR/async-ident.rs:37 :11
3135 |
3236LL | trait async {}
3337 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -36,7 +40,7 @@ LL | trait async {}
3640 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
3741
3842error: `async` is a keyword in the 2018 edition
39- --> $DIR/async-ident.rs:40 :10
43+ --> $DIR/async-ident.rs:41 :10
4044 |
4145LL | impl async for MyStruct {}
4246 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -45,7 +49,7 @@ LL | impl async for MyStruct {}
4549 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
4650
4751error: `async` is a keyword in the 2018 edition
48- --> $DIR/async-ident.rs:46 :12
52+ --> $DIR/async-ident.rs:47 :12
4953 |
5054LL | static async: u32 = 0;
5155 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -54,7 +58,7 @@ LL | static async: u32 = 0;
5458 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5559
5660error: `async` is a keyword in the 2018 edition
57- --> $DIR/async-ident.rs:52 :11
61+ --> $DIR/async-ident.rs:53 :11
5862 |
5963LL | const async: u32 = 0;
6064 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -63,7 +67,7 @@ LL | const async: u32 = 0;
6367 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
6468
6569error: `async` is a keyword in the 2018 edition
66- --> $DIR/async-ident.rs:58 :15
70+ --> $DIR/async-ident.rs:59 :15
6771 |
6872LL | impl Foo { fn async() {} }
6973 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -72,7 +76,7 @@ LL | impl Foo { fn async() {} }
7276 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
7377
7478error: `async` is a keyword in the 2018 edition
75- --> $DIR/async-ident.rs:63 :12
79+ --> $DIR/async-ident.rs:64 :12
7680 |
7781LL | struct async {}
7882 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -81,7 +85,7 @@ LL | struct async {}
8185 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8286
8387error: `async` is a keyword in the 2018 edition
84- --> $DIR/async-ident.rs:66 :9
88+ --> $DIR/async-ident.rs:67 :9
8589 |
8690LL | let async: async = async {};
8791 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -90,7 +94,7 @@ LL | let async: async = async {};
9094 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
9195
9296error: `async` is a keyword in the 2018 edition
93- --> $DIR/async-ident.rs:66 :16
97+ --> $DIR/async-ident.rs:67 :16
9498 |
9599LL | let async: async = async {};
96100 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -99,7 +103,7 @@ LL | let async: async = async {};
99103 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
100104
101105error: `async` is a keyword in the 2018 edition
102- --> $DIR/async-ident.rs:66 :24
106+ --> $DIR/async-ident.rs:67 :24
103107 |
104108LL | let async: async = async {};
105109 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -108,7 +112,7 @@ LL | let async: async = async {};
108112 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
109113
110114error: `async` is a keyword in the 2018 edition
111- --> $DIR/async-ident.rs:77 :19
115+ --> $DIR/async-ident.rs:78 :19
112116 |
113117LL | () => (pub fn async() {})
114118 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -117,7 +121,7 @@ LL | () => (pub fn async() {})
117121 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
118122
119123error: `async` is a keyword in the 2018 edition
120- --> $DIR/async-ident.rs:84 :6
124+ --> $DIR/async-ident.rs:85 :6
121125 |
122126LL | (async) => (1)
123127 | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
0 commit comments