@@ -19,7 +19,6 @@ use rustc::traits::{
1919use rustc:: ty:: { self , Ty , TyCtxt } ;
2020use rustc:: ty:: subst:: GenericArg ;
2121use rustc:: ty:: relate:: { Relate , RelateResult , TypeRelation } ;
22- use rustc:: mir:: interpret:: ConstValue ;
2322use syntax_pos:: DUMMY_SP ;
2423
2524use super :: { ChalkInferenceContext , ChalkArenas , ChalkExClause , ConstrainedSubst } ;
@@ -287,7 +286,7 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
287286 a : & ' tcx ty:: Const < ' tcx > ,
288287 b : & ' tcx ty:: Const < ' tcx > ,
289288 ) -> 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 {
291290 if * debruijn == self . binder_index {
292291 self . unify_free_answer_var ( * bound_ct, b. into ( ) ) ?;
293292 return Ok ( b) ;
@@ -296,8 +295,8 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
296295
297296 match ( a, b) {
298297 (
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) , .. } ,
301300 ) => {
302301 assert_eq ! ( a_debruijn, b_debruijn) ;
303302 assert_eq ! ( a_bound, b_bound) ;
0 commit comments