@@ -3,7 +3,7 @@ use rustc_index::bit_set::HybridBitSet;
3
3
use rustc_index:: interval:: IntervalSet ;
4
4
use rustc_infer:: infer:: canonical:: QueryRegionConstraints ;
5
5
use rustc_middle:: mir:: { BasicBlock , Body , ConstraintCategory , Local , Location } ;
6
- use rustc_middle:: ty:: { Ty , TypeFoldable } ;
6
+ use rustc_middle:: ty:: { Ty , TypeVisitable } ;
7
7
use rustc_trait_selection:: traits:: query:: dropck_outlives:: DropckOutlivesResult ;
8
8
use rustc_trait_selection:: traits:: query:: type_op:: outlives:: DropckOutlives ;
9
9
use rustc_trait_selection:: traits:: query:: type_op:: { TypeOp , TypeOpOutput } ;
@@ -477,7 +477,7 @@ impl<'tcx> LivenessContext<'_, '_, '_, 'tcx> {
477
477
/// points `live_at`.
478
478
fn add_use_live_facts_for (
479
479
& mut self ,
480
- value : impl TypeFoldable < ' tcx > ,
480
+ value : impl TypeVisitable < ' tcx > ,
481
481
live_at : & IntervalSet < PointIndex > ,
482
482
) {
483
483
debug ! ( "add_use_live_facts_for(value={:?})" , value) ;
@@ -542,7 +542,7 @@ impl<'tcx> LivenessContext<'_, '_, '_, 'tcx> {
542
542
fn make_all_regions_live (
543
543
elements : & RegionValueElements ,
544
544
typeck : & mut TypeChecker < ' _ , ' tcx > ,
545
- value : impl TypeFoldable < ' tcx > ,
545
+ value : impl TypeVisitable < ' tcx > ,
546
546
live_at : & IntervalSet < PointIndex > ,
547
547
) {
548
548
debug ! ( "make_all_regions_live(value={:?})" , value) ;
0 commit comments