RS.CLIPPY.ALMOST_COMPLETE_RANGE
Almost complete range
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: almost_complete_range. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for ranges which almost include the entire range of letters from 'a' to 'z' or digits from '0' to '9', but don't because they're a half open range.
Why is this bad?
This (\'a\'..\'z\') is almost certainly a typo meant to include all letters.
Example
let _ = \'a\'..\'z\';
Use instead:
let _ = \'a\'..=\'z\';
Past names
- almost_complete_letter_range
Configuration
-
msrv: The minimum rust version that the project supports. Defaults to therust-versionfield inCargo.toml(default:
current version)