rust/clippy_utils/src
bors ef95be517c Auto merge of #11609 - y21:get_first_non_primitives, r=giraffate
[`get_first`]: lint on non-primitive slices

Fixes #11594

I left the issue open for a couple days before making the PR to see if anyone has something to say, but it looks like there aren't any objections to removing this check that prevented linting on non-primitive slices, so here's the PR now.
There's a couple of instances in clippy itself where we now emit the lint. The actual relevant change is in the first commit and fixing the `.get(0)` instances in clippy itself is in the 2nd commit.

changelog: [`get_first`]: lint on non-primitive slices
2023-10-15 23:53:22 +00:00
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
mir Reverse postorder instead of using reversed postorder 2023-09-28 23:50:56 +00:00
ty/type_certainty Auto merge of #116163 - compiler-errors:lazyness, r=oli-obk 2023-09-27 01:48:53 +00:00
ast_utils.rs Update tools and fulldeps tests 2023-09-11 15:51:19 +00:00
attrs.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
check_proc_macro.rs Move scrutinee HirId into MatchSource::TryDesugar 2023-08-14 21:43:56 +00:00
comparisons.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
consts.rs dogfood 2023-10-04 18:08:30 +02:00
diagnostics.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-06-02 10:17:55 +02:00
eager_or_lazy.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
higher.rs dogfood 2023-10-04 18:08:30 +02:00
hir_utils.rs Merge commit '080b587854' into clippyup 2023-08-24 21:32:12 +02:00
lib.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-10-06 17:31:44 +02:00
macros.rs Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
msrvs.rs Add manual_hash_one lint 2023-09-26 13:49:15 +00:00
numeric_literal.rs Merge commit '37f4c1725d' into clippyup 2023-07-02 14:59:02 +02:00
paths.rs Merge commit '98363cbf6a' into clippyup 2023-09-12 18:44:06 +02:00
ptr.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
qualify_min_const_fn.rs subtyping_projections 2023-10-02 23:37:49 +03:00
source.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-09-25 10:26:11 +02:00
str_utils.rs Merge commit '0eff589afc' into clippyup 2021-12-30 15:10:43 +01:00
sugg.rs Merge commit '98363cbf6a' into clippyup 2023-09-12 18:44:06 +02:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Merge commit '7671c283a5' into clippyup 2023-09-25 11:28:58 +02:00
usage.rs Merge commit '98363cbf6a' into clippyup 2023-09-12 18:44:06 +02:00
visitors.rs Add manual_hash_one lint 2023-09-26 13:49:15 +00:00