-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Unable to Refer to Clippy Lints on Beta #54406
Comments
The offending lint is here in beta: rust/src/librustc/lint/levels.rs Lines 278 to 308 in b7e4402
It appears to be different (and not "may not", but rather "will not") in nightly. |
cc #44690 |
This should be fixed by #54870 |
@etaoins This is still not optimal: it's not possible to silence the warning, and doing what the warning suggests makes compilation fail with current stable and older releases. As such, running nightly clippy (and soon stable clippy) will always produce warnings unless the codebase drops support for an older toolchain version. |
I'm going to reopen this so that we can look and see if there's some warning-free way of doing this. |
…ng/rust#54406 This reverts commit 427eaa7.
…ng/rust#54406 This reverts commit 427eaa7.
…ng/rust#54406 This reverts commit 0ade19b.
My existing code has:
#[allow(unreadable_literal)]
Which produces this warning on the beta channel:
However, changing it to
clippy::unreadable_literal
causes the following:On nightly
#![feature(tool_lints)]
can be used as an escape hatch but that's not an option on beta.IMO neither Nightly nor Beta should generate warnings to change code to something that requires a feature flag. The existing code was valid for the stable features of the language.
The text was updated successfully, but these errors were encountered: