-
Notifications
You must be signed in to change notification settings - Fork 1.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
Zero single char names #5468
Zero single char names #5468
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! You can just wait for the rustup.
tests/ui/many_single_char_names.rs
Outdated
@@ -1,6 +1,7 @@ | |||
#[warn(clippy::many_single_char_names)] | |||
|
|||
fn bla() { | |||
let x: i32; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather lower the default threshold by one, than modifying the test.
rust-clippy/clippy_lints/src/utils/conf.rs
Lines 137 to 138 in c496f4e
/// Lint: MANY_SINGLE_CHAR_NAMES. The maximum number of single char bindings a scope may have | |
(single_char_binding_names_threshold, "single_char_binding_names_threshold": u64, 5), |
(the documentation of this config param is now more correct than before 😄)
@bors r+ rollup |
📌 Commit ce372c1 has been approved by |
🌲 The tree is currently closed for pull requests below priority 1, this pull request will be tested once the tree is reopened |
Rollup of 5 pull requests Successful merges: - #5226 (Add lint for explicit deref and deref_mut method calls) - #5248 (Add lint on large non scalar const) - #5430 (Disallow bit-shifting in integer_arithmetic) - #5466 (large_enum_variant: Report sizes of variants) - #5468 (Zero single char names) Failed merges: r? @ghost changelog: rollup
Fixes: #4086
changelog: