about summary refs log tree commit diff
path: root/clippy_lints/src/needless_maybe_sized.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2024-11-28 18:03:28 +0000
committerGitHub <noreply@github.com>2024-11-28 18:03:28 +0000
commitff4a26d442bead94a4c96fb1de967374bc4fbd8e (patch)
treed641150be8ba7ab22496dfaad89b82c24e61cfba /clippy_lints/src/needless_maybe_sized.rs
parent5dc584257371330cce048fcf4160c6ad85fe8d6c (diff)
parent5fb924f3340cdacb4e67ff3e6e0ab42857c0ab5f (diff)
Rustup (#13746)
r? @ghost

changelog: none
Diffstat (limited to 'clippy_lints/src/needless_maybe_sized.rs')
-rw-r--r--clippy_lints/src/needless_maybe_sized.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/needless_maybe_sized.rs b/clippy_lints/src/needless_maybe_sized.rs
index 852a0ce8c6d..ad6313e391b 100644
--- a/clippy_lints/src/needless_maybe_sized.rs
+++ b/clippy_lints/src/needless_maybe_sized.rs
@@ -1,7 +1,7 @@
 use clippy_utils::diagnostics::span_lint_and_then;
 use rustc_errors::Applicability;
 use rustc_hir::def_id::{DefId, DefIdMap};
-use rustc_hir::{BoundPolarity, GenericBound, Generics, PolyTraitRef, TraitBoundModifiers, WherePredicate};
+use rustc_hir::{BoundPolarity, GenericBound, Generics, PolyTraitRef, TraitBoundModifiers, WherePredicateKind};
 use rustc_lint::{LateContext, LateLintPass};
 use rustc_middle::ty::{ClauseKind, PredicatePolarity};
 use rustc_session::declare_lint_pass;
@@ -52,7 +52,7 @@ fn type_param_bounds<'tcx>(generics: &'tcx Generics<'tcx>) -> impl Iterator<Item
         .iter()
         .enumerate()
         .filter_map(|(predicate_pos, predicate)| {
-            let WherePredicate::BoundPredicate(bound_predicate) = predicate else {
+            let WherePredicateKind::BoundPredicate(bound_predicate) = &predicate.kind else {
                 return None;
             };