1
1
error: `async` is a keyword in the 2018 edition
2
- --> $DIR/async-ident.rs:17 :4
2
+ --> $DIR/async-ident.rs:18 :4
3
3
|
4
4
LL | fn async() {} //~ ERROR async
5
5
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
6
6
|
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
+ | ^^^^^^^^^^^^
8
12
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
9
13
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
10
14
11
15
error: `async` is a keyword in the 2018 edition
12
- --> $DIR/async-ident.rs:22 :7
16
+ --> $DIR/async-ident.rs:23 :7
13
17
|
14
18
LL | ($async:expr, async) => {};
15
19
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -18,7 +22,7 @@ LL | ($async:expr, async) => {};
18
22
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
19
23
20
24
error: `async` is a keyword in the 2018 edition
21
- --> $DIR/async-ident.rs:22 :19
25
+ --> $DIR/async-ident.rs:23 :19
22
26
|
23
27
LL | ($async:expr, async) => {};
24
28
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -27,7 +31,7 @@ LL | ($async:expr, async) => {};
27
31
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
28
32
29
33
error: `async` is a keyword in the 2018 edition
30
- --> $DIR/async-ident.rs:36 :11
34
+ --> $DIR/async-ident.rs:37 :11
31
35
|
32
36
LL | trait async {}
33
37
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -36,7 +40,7 @@ LL | trait async {}
36
40
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
37
41
38
42
error: `async` is a keyword in the 2018 edition
39
- --> $DIR/async-ident.rs:40 :10
43
+ --> $DIR/async-ident.rs:41 :10
40
44
|
41
45
LL | impl async for MyStruct {}
42
46
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -45,7 +49,7 @@ LL | impl async for MyStruct {}
45
49
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
46
50
47
51
error: `async` is a keyword in the 2018 edition
48
- --> $DIR/async-ident.rs:46 :12
52
+ --> $DIR/async-ident.rs:47 :12
49
53
|
50
54
LL | static async: u32 = 0;
51
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -54,7 +58,7 @@ LL | static async: u32 = 0;
54
58
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
55
59
56
60
error: `async` is a keyword in the 2018 edition
57
- --> $DIR/async-ident.rs:52 :11
61
+ --> $DIR/async-ident.rs:53 :11
58
62
|
59
63
LL | const async: u32 = 0;
60
64
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -63,7 +67,7 @@ LL | const async: u32 = 0;
63
67
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
64
68
65
69
error: `async` is a keyword in the 2018 edition
66
- --> $DIR/async-ident.rs:58 :15
70
+ --> $DIR/async-ident.rs:59 :15
67
71
|
68
72
LL | impl Foo { fn async() {} }
69
73
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -72,7 +76,7 @@ LL | impl Foo { fn async() {} }
72
76
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
73
77
74
78
error: `async` is a keyword in the 2018 edition
75
- --> $DIR/async-ident.rs:63 :12
79
+ --> $DIR/async-ident.rs:64 :12
76
80
|
77
81
LL | struct async {}
78
82
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -81,7 +85,7 @@ LL | struct async {}
81
85
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
82
86
83
87
error: `async` is a keyword in the 2018 edition
84
- --> $DIR/async-ident.rs:66 :9
88
+ --> $DIR/async-ident.rs:67 :9
85
89
|
86
90
LL | let async: async = async {};
87
91
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -90,7 +94,7 @@ LL | let async: async = async {};
90
94
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
91
95
92
96
error: `async` is a keyword in the 2018 edition
93
- --> $DIR/async-ident.rs:66 :16
97
+ --> $DIR/async-ident.rs:67 :16
94
98
|
95
99
LL | let async: async = async {};
96
100
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -99,7 +103,7 @@ LL | let async: async = async {};
99
103
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
100
104
101
105
error: `async` is a keyword in the 2018 edition
102
- --> $DIR/async-ident.rs:66 :24
106
+ --> $DIR/async-ident.rs:67 :24
103
107
|
104
108
LL | let async: async = async {};
105
109
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -108,7 +112,7 @@ LL | let async: async = async {};
108
112
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
109
113
110
114
error: `async` is a keyword in the 2018 edition
111
- --> $DIR/async-ident.rs:77 :19
115
+ --> $DIR/async-ident.rs:78 :19
112
116
|
113
117
LL | () => (pub fn async() {})
114
118
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -117,7 +121,7 @@ LL | () => (pub fn async() {})
117
121
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
118
122
119
123
error: `async` is a keyword in the 2018 edition
120
- --> $DIR/async-ident.rs:84 :6
124
+ --> $DIR/async-ident.rs:85 :6
121
125
|
122
126
LL | (async) => (1)
123
127
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
0 commit comments