@@ -478,8 +478,8 @@ pub fn super_relate_tys<'a, 'gcx, 'tcx, R>(relation: &mut R,
478478 return Ok ( s) ;
479479 }
480480 match x. val {
481+ // TODO(const_generics): make sure this works.
481482 ConstValue :: Unevaluated ( def_id, substs) => {
482- // TODO(const_generics)
483483 // FIXME(eddyb) get the right param_env.
484484 let param_env = ty:: ParamEnv :: empty ( ) ;
485485 match tcx. lift_to_global ( & substs) {
@@ -493,7 +493,7 @@ pub fn super_relate_tys<'a, 'gcx, 'tcx, R>(relation: &mut R,
493493 if let Some ( instance) = instance {
494494 let cid = GlobalId {
495495 instance,
496- promoted : None
496+ promoted : None ,
497497 } ;
498498 if let Some ( s) = tcx. const_eval ( param_env. and ( cid) )
499499 . ok ( )
@@ -598,7 +598,6 @@ pub fn super_relate_consts<'a, 'gcx, 'tcx, R>(relation: &mut R,
598598 // implement both `PartialEq` and `Eq`, corresponding to
599599 // `structural_match` types.
600600 // FIXME(const_generics): check for `structural_match` synthetic attribute.
601- // TODO(const_generics): possibly need indirection for ByRef?
602601 match ( a. val , b. val ) {
603602 ( ConstValue :: Infer ( _) , _) | ( _, ConstValue :: Infer ( _) ) => {
604603 // The caller should handle these cases!
@@ -609,6 +608,7 @@ pub fn super_relate_consts<'a, 'gcx, 'tcx, R>(relation: &mut R,
609608 }
610609 ( ConstValue :: Scalar ( _) , _) |
611610 ( ConstValue :: ScalarPair ( ..) , _) |
611+ // TODO(const_generics): possibly need indirection for ByRef?
612612 ( ConstValue :: ByRef ( ..) , _)
613613 if a == b =>
614614 {
0 commit comments