rust/clippy_utils/src
bors 6ec735962f Auto merge of #8699 - Jarcho:vec_init_then_push_7071, r=dswij,xFrednet
Don't lint `vec_init_then_push` when further extended

fixes #7071

This will still lint when a larger number of pushes are done (four currently). The exact number could be debated, but this is more readable then a sequence of pushes so it shouldn't be too large.

changelog: Don't lint `vec_init_then_push` when further extended.
changelog: Remove `mut` binding from `vec_init_then_push` when possible.
2022-05-15 21:51:24 +00:00
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ast_utils.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
attrs.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
comparisons.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
diagnostics.rs Add duplicate_mod lint 2022-05-14 22:31:13 +01:00
eager_or_lazy.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
higher.rs Don't lint vec_init_then_push when further extended 2022-04-27 00:38:39 -04:00
hir_utils.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
lib.rs Auto merge of #8797 - xFrednet:0000-expect-a-playground, r=flip1995 2022-05-09 17:14:43 +00:00
macros.rs adding spell checking 2022-04-15 14:18:09 -07:00
msrvs.rs Merge commit '984330a6ee' into clippyup 2022-04-08 10:06:10 +01:00
numeric_literal.rs New lint: [derive_partial_eq_without_eq] 2022-05-09 22:13:39 -07:00
paths.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
ptr.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
qualify_min_const_fn.rs Pass msrvs by copy 2022-05-08 07:13:14 -04:00
source.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
str_utils.rs Merge commit '0eff589afc' into clippyup 2021-12-30 15:10:43 +01:00
sugg.rs Use the traits added to the Rust 2021 Edition prelude 2022-05-12 00:38:11 +09:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
usage.rs Replace #[allow] with #[expect] in Clippy 2022-05-07 17:39:21 +02:00
visitors.rs Don't lint vec_init_then_push when further extended 2022-04-27 00:38:39 -04:00