2021-06-14 12:57:26 +00:00
|
|
|
warning: prefix `z` is unknown
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:16:9
|
|
|
|
|
|
|
|
|
LL | m2!(z"hey");
|
|
|
|
| ^ unknown prefix
|
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
|
2021-06-14 12:57:26 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:5:9
|
|
|
|
|
|
2021-07-06 14:33:11 +00:00
|
|
|
LL | #![warn(rust_2021_prefixes_incompatible_syntax)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-14 12:57:26 +00:00
|
|
|
help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | m2!(z "hey");
|
2022-09-11 20:02:33 +00:00
|
|
|
| +
|
2021-06-14 12:57:26 +00:00
|
|
|
|
|
|
|
warning: prefix `prefix` is unknown
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:19:9
|
|
|
|
|
|
|
|
|
LL | m2!(prefix"hey");
|
|
|
|
| ^^^^^^ unknown prefix
|
|
|
|
|
|
2021-06-26 20:49:29 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
2021-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
|
2021-06-14 12:57:26 +00:00
|
|
|
help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | m2!(prefix "hey");
|
2022-09-11 20:02:33 +00:00
|
|
|
| +
|
2021-06-14 12:57:26 +00:00
|
|
|
|
|
|
|
warning: prefix `hey` is unknown
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:22:9
|
|
|
|
|
|
|
|
|
LL | m3!(hey#123);
|
|
|
|
| ^^^ unknown prefix
|
|
|
|
|
|
2021-06-26 20:49:29 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
2021-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
|
2021-06-14 12:57:26 +00:00
|
|
|
help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | m3!(hey #123);
|
2022-09-11 20:02:33 +00:00
|
|
|
| +
|
2021-06-14 12:57:26 +00:00
|
|
|
|
|
|
|
warning: prefix `hey` is unknown
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:25:9
|
|
|
|
|
|
|
|
|
LL | m3!(hey#hey);
|
|
|
|
| ^^^ unknown prefix
|
|
|
|
|
|
2021-06-26 20:49:29 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
2021-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
|
2021-06-14 12:57:26 +00:00
|
|
|
help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | m3!(hey #hey);
|
2022-09-11 20:02:33 +00:00
|
|
|
| +
|
2021-06-14 12:57:26 +00:00
|
|
|
|
2021-06-14 17:07:40 +00:00
|
|
|
warning: prefix `kind` is unknown
|
|
|
|
--> $DIR/reserved-prefixes-migration.rs:35:14
|
|
|
|
|
|
|
|
|
LL | #name = #kind#value
|
|
|
|
| ^^^^ unknown prefix
|
|
|
|
|
|
2021-06-26 20:49:29 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
2021-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
|
2021-06-14 17:07:40 +00:00
|
|
|
help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | #name = #kind #value
|
2022-09-11 20:02:33 +00:00
|
|
|
| +
|
2021-06-14 17:07:40 +00:00
|
|
|
|
|
|
|
warning: 5 warnings emitted
|
2021-06-14 12:57:26 +00:00
|
|
|
|