]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ty_utils/src/instance.rs
Rollup merge of #99222 - atsuzaki:generic_const_err, r=lcnr
[rust.git] / compiler / rustc_ty_utils / src / instance.rs
index d08fe6dada104f4f645a8c8c5b4045d00168d660..5e58f2379827ebded1a3173a75b208ba8fc54615 100644 (file)
@@ -4,7 +4,7 @@
 use rustc_middle::traits::CodegenObligationError;
 use rustc_middle::ty::subst::SubstsRef;
 use rustc_middle::ty::{
-    self, Binder, Instance, Ty, TyCtxt, TypeFoldable, TypeSuperFoldable, TypeVisitor,
+    self, Binder, Instance, Ty, TyCtxt, TypeSuperVisitable, TypeVisitable, TypeVisitor,
 };
 use rustc_span::{sym, DUMMY_SP};
 use rustc_trait_selection::traits;
@@ -56,7 +56,7 @@ fn into_vars(self, tcx: TyCtxt<'tcx>) -> &'tcx ty::List<ty::BoundVariableKind> {
 impl<'tcx> TypeVisitor<'tcx> for BoundVarsCollector<'tcx> {
     type BreakTy = ();
 
-    fn visit_binder<T: TypeFoldable<'tcx>>(
+    fn visit_binder<T: TypeVisitable<'tcx>>(
         &mut self,
         t: &Binder<'tcx, T>,
     ) -> ControlFlow<Self::BreakTy> {