fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.7 KiB61 linesraw
1error: `await` is a keyword in the 2018 edition
2  --> $DIR/2015-edition-warning.rs:7:13
3   |
4LL |     pub mod await {
5   |             ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
6   |
7   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
9note: the lint level is defined here
10  --> $DIR/2015-edition-warning.rs:4:9
11   |
12LL | #![deny(keyword_idents)]
13   |         ^^^^^^^^^^^^^^
14
15error: `await` is a keyword in the 2018 edition
16  --> $DIR/2015-edition-warning.rs:10:20
17   |
18LL |         pub struct await;
19   |                    ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
20   |
21   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
22   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23
24error: `await` is a keyword in the 2018 edition
25  --> $DIR/2015-edition-warning.rs:15:16
26   |
27LL | use outer_mod::await::await;
28   |                ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
29   |
30   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
31   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32
33error: `await` is a keyword in the 2018 edition
34  --> $DIR/2015-edition-warning.rs:15:23
35   |
36LL | use outer_mod::await::await;
37   |                       ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
38   |
39   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
40   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41
42error: `await` is a keyword in the 2018 edition
43  --> $DIR/2015-edition-warning.rs:22:11
44   |
45LL |     match await { await => {} }
46   |           ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
47   |
48   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
49   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50
51error: `await` is a keyword in the 2018 edition
52  --> $DIR/2015-edition-warning.rs:22:19
53   |
54LL |     match await { await => {} }
55   |                   ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
56   |
57   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
58   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59
60error: aborting due to 6 previous errors
61