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