]> git.lizzy.rs Git - rust.git/commitdiff
resolve todo
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Wed, 5 Aug 2015 22:32:04 +0000 (01:32 +0300)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Thu, 6 Aug 2015 13:54:44 +0000 (16:54 +0300)
src/librustc/middle/ty.rs

index b817dca1212e6e7c35f1031c1b354a0465a386be..9d339aef250e1bd739cd56adde2bb7124d4ff99c 100644 (file)
@@ -3413,7 +3413,6 @@ pub fn all_fields(&self) ->
 
     #[inline]
     pub fn is_empty(&self) -> bool {
-        // FIXME(#TODO(wxyz)): be smarter here
         self.variants.is_empty()
     }
 
@@ -4249,6 +4248,7 @@ pub fn is_nil(&self) -> bool {
     }
 
     pub fn is_empty(&self, _cx: &ctxt) -> bool {
+        // FIXME(#24885): be smarter here
         match self.sty {
             TyEnum(def, _) | TyStruct(def, _) => def.is_empty(),
             _ => false