mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
823d9dd503
new lint [`single_range_in_vec_init`] Lints on `vec![0..200]` (or `[0..200]`), suggesting either `(0..200).collect::<Vec<i32>>()` or `[0; 200]`. Haven't tested it with anything that isn't primitive. Probably should! Closes #10932 changelog: new lint [`single_range_in_vec_init`]