You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
edition compatibility lints: Warning about dyn in a macro incorrectly #56327
A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
warning: `dyn` is a keyword in the 2018 edition
--> src/lib.rs:6:25
|
6 | let _x: Box<dyn Drop>;
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
note: lint level defined here
--> src/lib.rs:1:9
|
1 | #![warn(rust_2018_compatibility)]
| ^^^^^^^^^^^^^^^^^^^^^^^
= note: #[warn(keyword_idents)] implied by #[warn(rust_2018_compatibility)]
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
(I nominated this for discussion at a future T-compiler meeting because I want us to figure out what our intent was for this bug, and I also want to try to develop a firmer policy for how such cases should be addressed going forward.)
A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Activity
workaround for compatibility lint issue. see:
pnkfelix commentedon Mar 18, 2019
(I nominated this for discussion at a future T-compiler meeting because I want us to figure out what our intent was for this bug, and I also want to try to develop a firmer policy for how such cases should be addressed going forward.)
pnkfelix commentedon Mar 21, 2019
discussed at T-compiler meeting. calling this P-medium. ( @nikomatsakis and I are not currently sure what our intentions are for
dynhere.)@pnkfelix is going to assign this to themself to see if there's any simple resolution focused on special casing behavior for
dynin macro bodies.Regression test for rust-lang#56327.
Rollup merge of rust-lang#59463 - pnkfelix:issue-56327-skip-dyn-keywo…