rust-lang/rust-clippy

`single_range_in_vec_init` should detect all kind of ranges

Geschlossen

#16.508 geöffnet am 04.02.2026

 (13 Kommentare) (6 Reaktionen) (1 zugewiesene Person)Rust (1.391 Forks)batch import
C-enhancementgood first issue

Repository-Metriken

Stars
 (10.406 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 19T 22h) (113 gemergte PRs in 30 T)

Beschreibung

Description

Right now, it looks like only a..b ranges are recognized. ..a, a.., and a..=b won't trigger the lint.

clippy_utils::higher::Range might be useful here.

Version

rustc 1.95.0-nightly (366a1b93e 2026-02-03)
binary: rustc
commit-hash: 366a1b93e7f466ebe559477add05f064873d0c71
commit-date: 2026-02-03
host: x86_64-unknown-linux-gnu
release: 1.95.0-nightly
LLVM version: 22.1.0

Additional Labels

No response

Contributor Guide