Skip to content

similar_names not triggered by example #16110

@ASBalon

Description

@ASBalon

Summary

https://rust-lang.github.io/rust-clippy/master/index.html?groups=pedantic&search=Similar_names

The example listed on the clippy index no longer triggers similar_name lint.

The example listed on the index should be included it the unit testing for this lint.

Lint Name

similar_names

Reproducer

I tried this code:

let checked_exp = something;
let checked_expr = something_else;

I expected to see this happen:
Lint warning

Instead, this happened:
Nothing

Version


Metadata

Metadata

Assignees

Labels

C-bugCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn't

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions