]> git.lizzy.rs Git - rust.git/commitdiff
Remove spurious assertion
authorvarkor <github@varkor.com>
Wed, 17 Apr 2019 21:48:57 +0000 (22:48 +0100)
committervarkor <github@varkor.com>
Wed, 1 May 2019 22:11:19 +0000 (23:11 +0100)
src/librustc/ty/relate.rs

index d9e224b3648009c3ef209e627b8350134dd643fc..d7b19070741955075e205afe50b5f4ae1e47e477 100644 (file)
@@ -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