]> git.lizzy.rs Git - rust.git/commitdiff
Move a FIXME around
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 13 Jul 2017 00:25:43 +0000 (02:25 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:46:24 +0000 (15:46 +0200)
src/librustc/ty/flags.rs
src/librustc/ty/mod.rs

index 72e4e20d70b4c4fe8970e0c2191eb3041ce6b6a2..02d50ce29e4f1dc67842806ee142f0c7a2c01731 100644 (file)
@@ -86,8 +86,6 @@ fn add_sty(&mut self, st: &ty::TypeVariants) {
             }
 
             &ty::TyGenerator(_, ref substs, ref interior) => {
-                // FIXME: Find out why TyClosure has HAS_TY_CLOSURE
-                // and see if the same reason applies here
                 self.add_flags(TypeFlags::HAS_TY_CLOSURE);
                 self.add_flags(TypeFlags::HAS_LOCAL_NAMES);
                 self.add_substs(&substs.substs);
index 21a98bceedff3bea6589098c88e2b60897324581..648300f9cf42974a29ccb1c1c940f2c497b99d0f 100644 (file)
@@ -406,6 +406,8 @@ pub struct CReaderCacheKey {
         const HAS_FREE_REGIONS   = 1 << 6,
         const HAS_TY_ERR         = 1 << 7,
         const HAS_PROJECTION     = 1 << 8,
+
+        // FIXME: Rename this to the actual property since it's used for generators too
         const HAS_TY_CLOSURE     = 1 << 9,
 
         // true if there are "names" of types and regions and so forth