Skip to content

allow many_single_char_names is broken #3198

Closed
@gnzlbg

Description

@gnzlbg

Playground:

#[cfg_attr(
    feature = "cargo-clippy",
    allow(clippy::many_single_char_names)
)]
pub fn append_to() {
    let (a, b, c, d, e) = (0, 0, 0, 0, 0);
}

produces

warning: 5th binding whose name is just one char
 --> src/main.rs:7:22
  |
7 |     let (a, b, c, d, e) = (0, 0, 0, 0, 0);
  |                      ^
  |
  = note: #[warn(clippy::many_single_char_names)] on by default
  = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#many_single_char_names

That lint should not trigger, since it is allowed for the function.

Metadata

Metadata

Assignees

Labels

E-needs-testCall for participation: writing testsgood first issueThese issues are a good way to get started with Clippy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions