@@ -19,7 +19,6 @@ use rustc::traits::{
19
19
use rustc:: ty:: { self , Ty , TyCtxt } ;
20
20
use rustc:: ty:: subst:: GenericArg ;
21
21
use rustc:: ty:: relate:: { Relate , RelateResult , TypeRelation } ;
22
- use rustc:: mir:: interpret:: ConstValue ;
23
22
use syntax_pos:: DUMMY_SP ;
24
23
25
24
use super :: { ChalkInferenceContext , ChalkArenas , ChalkExClause , ConstrainedSubst } ;
@@ -287,7 +286,7 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
287
286
a : & ' tcx ty:: Const < ' tcx > ,
288
287
b : & ' tcx ty:: Const < ' tcx > ,
289
288
) -> RelateResult < ' tcx , & ' tcx ty:: Const < ' tcx > > {
290
- if let ty:: Const { val : ConstValue :: Bound ( debruijn, bound_ct) , .. } = a {
289
+ if let ty:: Const { val : ty :: ConstKind :: Bound ( debruijn, bound_ct) , .. } = a {
291
290
if * debruijn == self . binder_index {
292
291
self . unify_free_answer_var ( * bound_ct, b. into ( ) ) ?;
293
292
return Ok ( b) ;
@@ -296,8 +295,8 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
296
295
297
296
match ( a, b) {
298
297
(
299
- ty:: Const { val : ConstValue :: Bound ( a_debruijn, a_bound) , .. } ,
300
- ty:: Const { val : ConstValue :: Bound ( b_debruijn, b_bound) , .. } ,
298
+ ty:: Const { val : ty :: ConstKind :: Bound ( a_debruijn, a_bound) , .. } ,
299
+ ty:: Const { val : ty :: ConstKind :: Bound ( b_debruijn, b_bound) , .. } ,
301
300
) => {
302
301
assert_eq ! ( a_debruijn, b_debruijn) ;
303
302
assert_eq ! ( a_bound, b_bound) ;
0 commit comments