]> git.lizzy.rs Git - rust.git/commitdiff
Add FIXME
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 25 Jan 2019 14:04:15 +0000 (15:04 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 1 Feb 2019 15:38:46 +0000 (16:38 +0100)
src/librustc_typeck/check/writeback.rs

index 238b087fe32f86b3dc431672d4396aeaba2775cb..00917be538fb3305a6aea4df5ac5b848e99f6acf 100644 (file)
@@ -561,6 +561,8 @@ fn visit_opaque_types(&mut self, span: Span) {
                 if def_id == defin_ty_def_id {
                     // Concrete type resolved to the existential type itself
                     // Force a cycle error
+                    // FIXME(oli-obk): we could just not insert it into `concrete_existential_types`
+                    // which simply would make this use not a defining use.
                     self.tcx().at(span).type_of(defin_ty_def_id);
                 }
             }