fork/rust

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

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

master
6.2 KiB133 linesraw
1error: `dyn` is a keyword in the 2018 edition
2  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:14:13
3   |
4LL |     pub mod dyn {
5   |             ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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/dyn-2015-edition-keyword-ident-lint.rs:11:9
11   |
12LL | #![deny(keyword_idents)]
13   |         ^^^^^^^^^^^^^^
14
15error: `dyn` is a keyword in the 2018 edition
16  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:17:20
17   |
18LL |         pub struct dyn;
19   |                    ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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: `dyn` is a keyword in the 2018 edition
25  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:16
26   |
27LL | use outer_mod::dyn::dyn;
28   |                ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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: `dyn` is a keyword in the 2018 edition
34  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:21
35   |
36LL | use outer_mod::dyn::dyn;
37   |                     ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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: `dyn` is a keyword in the 2018 edition
43  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:11
44   |
45LL |     match dyn { dyn => {} }
46   |           ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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: `dyn` is a keyword in the 2018 edition
52  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:17
53   |
54LL |     match dyn { dyn => {} }
55   |                 ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
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: `dyn` is a keyword in the 2018 edition
61  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:34:17
62   |
63LL |     macro_defn::dyn();
64   |                 ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
65   |
66   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
67   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68
69error: `dyn` is a keyword in the 2018 edition
70  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:44:18
71   |
72LL |     macro_rules! dyn {
73   |                  ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
74   |
75   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
76   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77
78error: `dyn` is a keyword in the 2018 edition
79  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:12
80   |
81LL |     pub fn dyn() -> ::outer_mod::dyn::dyn {
82   |            ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
83   |
84   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
85   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86
87error: `dyn` is a keyword in the 2018 edition
88  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:34
89   |
90LL |     pub fn dyn() -> ::outer_mod::dyn::dyn {
91   |                                  ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
92   |
93   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
94   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95
96error: `dyn` is a keyword in the 2018 edition
97  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:39
98   |
99LL |     pub fn dyn() -> ::outer_mod::dyn::dyn {
100   |                                       ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
101   |
102   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
103   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104
105error: `dyn` is a keyword in the 2018 edition
106  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:22
107   |
108LL |         ::outer_mod::dyn::dyn
109   |                      ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
110   |
111   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
112   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113
114error: `dyn` is a keyword in the 2018 edition
115  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:27
116   |
117LL |         ::outer_mod::dyn::dyn
118   |                           ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
119   |
120   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
121   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122
123error: `dyn` is a keyword in the 2018 edition
124  --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:68:23
125   |
126LL |     pub fn boxed() -> dyn!(
127   |                       ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
128   |
129   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
130   = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
131
132error: aborting due to 14 previous errors
133