diff options
| author | Philipp Krones <hello@philkrones.com> | 2024-11-28 18:03:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-28 18:03:28 +0000 |
| commit | ff4a26d442bead94a4c96fb1de967374bc4fbd8e (patch) | |
| tree | d641150be8ba7ab22496dfaad89b82c24e61cfba /clippy_lints/src/needless_maybe_sized.rs | |
| parent | 5dc584257371330cce048fcf4160c6ad85fe8d6c (diff) | |
| parent | 5fb924f3340cdacb4e67ff3e6e0ab42857c0ab5f (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.rs | 4 |
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; }; |
