diff --git a/src/librustc/ty/relate.rs b/src/librustc/ty/relate.rs index d9e224b36480..d7b190707419 100644 --- a/src/librustc/ty/relate.rs +++ b/src/librustc/ty/relate.rs @@ -596,9 +596,6 @@ pub fn super_relate_consts<'a, 'gcx, 'tcx, R>( where R: TypeRelation<'a, 'gcx, 'tcx>, 'gcx: 'a+'tcx, 'tcx: 'a { - // Only consts whose types are equal should be compared. - assert_eq!(a.ty, b.ty); - let tcx = relation.tcx(); // Currently, the values that can be unified are those that