]> git.lizzy.rs Git - rust.git/commitdiff
remove hack in region inference
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Sun, 27 Dec 2015 23:20:35 +0000 (01:20 +0200)
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Sun, 27 Dec 2015 23:21:25 +0000 (01:21 +0200)
I forgot about it in the previous commit

src/librustc/middle/infer/region_inference/mod.rs

index a63c662de6165212a945793ea579bbe384759b57..2c2b69ff85b4ebda02f76a8a492bb52c06e2e0c5 100644 (file)
@@ -489,13 +489,6 @@ pub fn make_subregion(&self, origin: SubregionOrigin<'tcx>, sub: Region, sup: Re
                origin);
 
         match (sub, sup) {
-            (ReEarlyBound(..), ReEarlyBound(..)) => {
-                // This case is used only to make sure that explicitly-specified
-                // `Self` types match the real self type in implementations.
-                //
-                // FIXME(NDM) -- we really shouldn't be comparing bound things
-                self.add_verify(VerifyRegSubReg(origin, sub, sup));
-            }
             (ReEarlyBound(..), _) |
             (ReLateBound(..), _) |
             (_, ReEarlyBound(..)) |