From 97c0c6653bb3ff77e4810311b5011842ade56916 Mon Sep 17 00:00:00 2001 From: varkor Date: Wed, 17 Apr 2019 22:48:57 +0100 Subject: [PATCH] Remove spurious assertion --- src/librustc/ty/relate.rs | 3 --- 1 file changed, 3 deletions(-) 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