Skip to content

Commit 4caa66f

Browse files
committed
Centril review.
1 parent 6b56dce commit 4caa66f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc/ty/relate.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,7 @@ pub fn super_relate_consts<R: TypeRelation<'tcx>>(
605605
_ => Err(TypeError::ConstMismatch(expected_found(relation, &a, &b))),
606606
};
607607

608-
match new_val {
609-
Ok(val) => Ok(ty::ConstKind::Value(val)),
610-
Err(err) => Err(err),
611-
}
608+
new_val.map(ty::ConstKind::Value)
612609
},
613610

614611
// FIXME(const_generics): this is wrong, as it is a projection

0 commit comments

Comments
 (0)