Centril review.

This commit is contained in:
Camille GILLOT 2019-11-09 11:43:32 +01:00
parent 6b56dced4c
commit 4caa66f25d

View File

@ -605,10 +605,7 @@ pub fn super_relate_consts<R: TypeRelation<'tcx>>(
_ => Err(TypeError::ConstMismatch(expected_found(relation, &a, &b))),
};
match new_val {
Ok(val) => Ok(ty::ConstKind::Value(val)),
Err(err) => Err(err),
}
new_val.map(ty::ConstKind::Value)
},
// FIXME(const_generics): this is wrong, as it is a projection