]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/constrained_generic_params.rs
Rollup merge of #101966 - crlf0710:emoji_unittest, r=Mark-Simulacrum
[rust.git] / compiler / rustc_typeck / src / constrained_generic_params.rs
index 858cf63390a34f1cf8dad568dcf20233727f64cc..8428e46640671e2dcca2082db884d6fc41b2c714 100644 (file)
@@ -1,5 +1,5 @@
 use rustc_data_structures::fx::FxHashSet;
-use rustc_middle::ty::fold::{TypeFoldable, TypeSuperFoldable, TypeVisitor};
+use rustc_middle::ty::visit::{TypeSuperVisitable, TypeVisitable, TypeVisitor};
 use rustc_middle::ty::{self, Ty, TyCtxt};
 use rustc_span::source_map::Span;
 use std::ops::ControlFlow;
@@ -43,7 +43,7 @@ pub fn parameters_for_impl<'tcx>(
 /// of parameters whose values are needed in order to constrain `ty` - these
 /// differ, with the latter being a superset, in the presence of projections.
 pub fn parameters_for<'tcx>(
-    t: &impl TypeFoldable<'tcx>,
+    t: &impl TypeVisitable<'tcx>,
     include_nonconstraining: bool,
 ) -> Vec<Parameter> {
     let mut collector = ParameterCollector { parameters: vec![], include_nonconstraining };