@@ -3,7 +3,7 @@ use rustc_index::bit_set::HybridBitSet;
33use rustc_index:: interval:: IntervalSet ;
44use rustc_infer:: infer:: canonical:: QueryRegionConstraints ;
55use rustc_middle:: mir:: { BasicBlock , Body , ConstraintCategory , Local , Location } ;
6- use rustc_middle:: ty:: { Ty , TypeFoldable } ;
6+ use rustc_middle:: ty:: { Ty , TypeVisitable } ;
77use rustc_trait_selection:: traits:: query:: dropck_outlives:: DropckOutlivesResult ;
88use rustc_trait_selection:: traits:: query:: type_op:: outlives:: DropckOutlives ;
99use rustc_trait_selection:: traits:: query:: type_op:: { TypeOp , TypeOpOutput } ;
@@ -477,7 +477,7 @@ impl<'tcx> LivenessContext<'_, '_, '_, 'tcx> {
477477 /// points `live_at`.
478478 fn add_use_live_facts_for (
479479 & mut self ,
480- value : impl TypeFoldable < ' tcx > ,
480+ value : impl TypeVisitable < ' tcx > ,
481481 live_at : & IntervalSet < PointIndex > ,
482482 ) {
483483 debug ! ( "add_use_live_facts_for(value={:?})" , value) ;
@@ -542,7 +542,7 @@ impl<'tcx> LivenessContext<'_, '_, '_, 'tcx> {
542542 fn make_all_regions_live (
543543 elements : & RegionValueElements ,
544544 typeck : & mut TypeChecker < ' _ , ' tcx > ,
545- value : impl TypeFoldable < ' tcx > ,
545+ value : impl TypeVisitable < ' tcx > ,
546546 live_at : & IntervalSet < PointIndex > ,
547547 ) {
548548 debug ! ( "make_all_regions_live(value={:?})" , value) ;
0 commit comments