-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
edition compatibility lints: Warning about dyn
in a macro incorrectly
#56327
Comments
(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.) |
discussed at T-compiler meeting. calling this P-medium. ( @nikomatsakis and I are not currently sure what our intentions are for @pnkfelix is going to assign this to themself to see if there's any simple resolution focused on special casing behavior for |
…rd-lint-under-macros, r=matthewjasper skip dyn keyword lint under macros This PR is following my own intuition that `rustfix` should never inject bugs into working code (even if that comes at the expense of it failing to fix things that will become bugs). Fix rust-lang#56327
This code:
when compiled under 2015 edition yields:
but the warning and suggestion are incorrect!
First reported at rust-lang/cargo#6359
This also applies to macro invocations
The text was updated successfully, but these errors were encountered: