diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-12 23:41:29 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-13 17:54:45 +0000 |
| commit | 81f9f0861edc894cefc665f38439e4dc03de3133 (patch) | |
| tree | 2385148b2b642ce66d6878165aa615d6c598f71f | |
| parent | 3dbb49729b9b64667f483a72c8f3ca5a50d6c298 (diff) | |
| download | rust-81f9f0861edc894cefc665f38439e4dc03de3133.tar.gz rust-81f9f0861edc894cefc665f38439e4dc03de3133.zip | |
TypeVisiting binders no longer requires TypeFolding its interior
| -rw-r--r-- | clippy_utils/src/ty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/ty/mod.rs b/clippy_utils/src/ty/mod.rs index 1f0a0f2b02a..32a992ccc2d 100644 --- a/clippy_utils/src/ty/mod.rs +++ b/clippy_utils/src/ty/mod.rs @@ -20,7 +20,7 @@ use rustc_middle::traits::EvaluationResult; use rustc_middle::ty::layout::ValidityRequirement; use rustc_middle::ty::{ self, AdtDef, AliasTy, AssocItem, AssocTag, Binder, BoundRegion, FnSig, GenericArg, GenericArgKind, GenericArgsRef, - GenericParamDefKind, IntTy, Region, RegionKind, TraitRef, Ty, TyCtxt, TypeFoldable, TypeSuperVisitable, + GenericParamDefKind, IntTy, Region, RegionKind, TraitRef, Ty, TyCtxt, TypeSuperVisitable, TypeVisitable, TypeVisitableExt, TypeVisitor, UintTy, Upcast, VariantDef, VariantDiscr, }; use rustc_span::symbol::Ident; @@ -853,7 +853,7 @@ pub fn for_each_top_level_late_bound_region<B>( ControlFlow::Continue(()) } } - fn visit_binder<T: TypeFoldable<TyCtxt<'tcx>>>(&mut self, t: &Binder<'tcx, T>) -> Self::Result { + fn visit_binder<T: TypeVisitable<TyCtxt<'tcx>>>(&mut self, t: &Binder<'tcx, T>) -> Self::Result { self.index += 1; let res = t.super_visit_with(self); self.index -= 1; |
