-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
allow unused_mut ignored #40491
Comments
Note that increasing the scope of the
Unclear whether applying the |
I'm guessing that the lint passes were just not updated when attributes were allowed to be attached to statements. |
The lint pass runs on functions, not on single statements, since you can't decide whether the |
It would be nice if it did work for single statements inside of a macro. Main channels are still affected: |
…=eddyb Get `allow(unused_mut)` to work on `let` bindings fixes rust-lang#40491
…=eddyb Get `allow(unused_mut)` to work on `let` bindings fixes rust-lang#40491
…=eddyb Get `allow(unused_mut)` to work on `let` bindings fixes rust-lang#40491
#[allow(unused_mut)]
seems to be ignoredFor example:
I expected to see no warning about the mut flag of a
Instead, this happened:
Meta
This currently happens on all 3 major branches: stable, beta, nightly:
Backtrace:
RUST_BACKTRACE=full
does not give more information.The text was updated successfully, but these errors were encountered: