@@ -47,9 +47,9 @@ pub type CanonicalVarInfos<'tcx> = &'tcx List<CanonicalVarInfo<'tcx>>;
47
47
impl < ' tcx > ty:: TypeFoldable < ' tcx > for CanonicalVarInfos < ' tcx > {
48
48
fn try_fold_with < F : ty:: FallibleTypeFolder < ' tcx > > (
49
49
self ,
50
- folder : & mut F ,
50
+ _folder : & mut F ,
51
51
) -> Result < Self , F :: Error > {
52
- ty :: util :: fold_list ( self , folder , |tcx , v| tcx . intern_canonical_var_infos ( v ) )
52
+ Ok ( self )
53
53
}
54
54
}
55
55
@@ -99,7 +99,6 @@ impl<'tcx> Default for OriginalQueryValues<'tcx> {
99
99
/// a copy of the canonical value in some other inference context,
100
100
/// with fresh inference variables replacing the canonical values.
101
101
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , TyDecodable , TyEncodable , HashStable ) ]
102
- #[ derive( TypeFoldable , TypeVisitable ) ]
103
102
pub struct CanonicalVarInfo < ' tcx > {
104
103
pub kind : CanonicalVarKind < ' tcx > ,
105
104
}
@@ -125,7 +124,6 @@ impl<'tcx> CanonicalVarInfo<'tcx> {
125
124
/// in the type-theory sense of the term -- i.e., a "meta" type system
126
125
/// that analyzes type-like values.
127
126
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , TyDecodable , TyEncodable , HashStable ) ]
128
- #[ derive( TypeFoldable , TypeVisitable ) ]
129
127
pub enum CanonicalVarKind < ' tcx > {
130
128
/// Some kind of type inference variable.
131
129
Ty ( CanonicalTyVarKind ) ,
@@ -310,7 +308,8 @@ pub type QueryOutlivesConstraint<'tcx> = (
310
308
TrivialTypeTraversalAndLiftImpls ! {
311
309
for <' tcx> {
312
310
crate :: infer:: canonical:: Certainty ,
313
- crate :: infer:: canonical:: CanonicalTyVarKind ,
311
+ crate :: infer:: canonical:: CanonicalVarInfo <' tcx>,
312
+ crate :: infer:: canonical:: CanonicalVarKind <' tcx>,
314
313
}
315
314
}
316
315
0 commit comments