You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Boddlnagg opened this issue
Jul 20, 2016
· 0 comments
· Fixed by #6177
Labels
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
I don't know if an issue already exists for something like this, but at least I couldn't find one:
I suggest to add a lint that checks for conditions such as
i > A || i < B where A and B are integer literals (or constants?) with A ≤ B (always true)
i < A && i > B where A and B are integer literals (or constants?) with A ≤ B (always false)
After rust-lang/rust#32311 is stabilized, clippy could also suggest to use Range::contains.
The text was updated successfully, but these errors were encountered:
mcarton
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-middle
Type: Probably requires verifiying types
A-lint
Area: New lints
L-style
Lint: Belongs in the style lint group
and removed
L-style
Lint: Belongs in the style lint group
labels
Jul 21, 2016
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
I don't know if an issue already exists for something like this, but at least I couldn't find one:
I suggest to add a lint that checks for conditions such as
i > A || i < B
whereA
andB
are integer literals (or constants?) withA
≤B
(always true)i < A && i > B
whereA
andB
are integer literals (or constants?) withA
≤B
(always false)After rust-lang/rust#32311 is stabilized, clippy could also suggest to use
Range::contains
.The text was updated successfully, but these errors were encountered: