11error: `dyn` is a keyword in the 2018 edition
2- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:13 :13
2+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:14 :13
33 |
44LL | pub mod dyn {
55 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
66 |
77note: the lint level is defined here
8- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:10 :9
8+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:11 :9
99 |
1010LL | #![deny(keyword_idents)]
1111 | ^^^^^^^^^^^^^^
1212 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
1313 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1414
1515error: `dyn` is a keyword in the 2018 edition
16- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:16 :20
16+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:17 :20
1717 |
1818LL | pub struct dyn;
1919 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -22,7 +22,7 @@ LL | pub struct dyn;
2222 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
2323
2424error: `dyn` is a keyword in the 2018 edition
25- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:21 :16
25+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22 :16
2626 |
2727LL | use outer_mod::dyn::dyn;
2828 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -31,7 +31,7 @@ LL | use outer_mod::dyn::dyn;
3131 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
3232
3333error: `dyn` is a keyword in the 2018 edition
34- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:21 :21
34+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22 :21
3535 |
3636LL | use outer_mod::dyn::dyn;
3737 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -40,7 +40,7 @@ LL | use outer_mod::dyn::dyn;
4040 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
4141
4242error: `dyn` is a keyword in the 2018 edition
43- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:28 :11
43+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29 :11
4444 |
4545LL | match dyn { dyn => {} }
4646 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -49,7 +49,7 @@ LL | match dyn { dyn => {} }
4949 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5050
5151error: `dyn` is a keyword in the 2018 edition
52- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:28 :17
52+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29 :17
5353 |
5454LL | match dyn { dyn => {} }
5555 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -58,7 +58,7 @@ LL | match dyn { dyn => {} }
5858 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
5959
6060error: `dyn` is a keyword in the 2018 edition
61- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:33 :17
61+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:34 :17
6262 |
6363LL | macro_defn::dyn();
6464 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -67,7 +67,7 @@ LL | macro_defn::dyn();
6767 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
6868
6969error: `dyn` is a keyword in the 2018 edition
70- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:43 :18
70+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:44 :18
7171 |
7272LL | macro_rules! dyn {
7373 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -76,7 +76,7 @@ LL | macro_rules! dyn {
7676 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
7777
7878error: `dyn` is a keyword in the 2018 edition
79- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:51 :12
79+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52 :12
8080 |
8181LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
8282 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -85,7 +85,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
8585 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8686
8787error: `dyn` is a keyword in the 2018 edition
88- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:51 :34
88+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52 :34
8989 |
9090LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
9191 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -94,7 +94,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
9494 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
9595
9696error: `dyn` is a keyword in the 2018 edition
97- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:51 :39
97+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52 :39
9898 |
9999LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
100100 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -103,7 +103,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
103103 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104104
105105error: `dyn` is a keyword in the 2018 edition
106- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:58 :22
106+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59 :22
107107 |
108108LL | ::outer_mod::dyn::dyn
109109 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -112,7 +112,7 @@ LL | ::outer_mod::dyn::dyn
112112 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113113
114114error: `dyn` is a keyword in the 2018 edition
115- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:58 :27
115+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59 :27
116116 |
117117LL | ::outer_mod::dyn::dyn
118118 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
@@ -121,7 +121,7 @@ LL | ::outer_mod::dyn::dyn
121121 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122122
123123error: `dyn` is a keyword in the 2018 edition
124- --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:67 :23
124+ --> $DIR/dyn-2015-edition-keyword-ident-lint.rs:68 :23
125125 |
126126LL | pub fn boxed() -> dyn!(
127127 | ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
0 commit comments