Skip to content

Commit 381c541

Browse files
committed
Add FIXME
1 parent c9a8687 commit 381c541

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_typeck/check/writeback.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ impl<'cx, 'gcx, 'tcx> WritebackCx<'cx, 'gcx, 'tcx> {
561561
if def_id == defin_ty_def_id {
562562
// Concrete type resolved to the existential type itself
563563
// Force a cycle error
564+
// FIXME(oli-obk): we could just not insert it into `concrete_existential_types`
565+
// which simply would make this use not a defining use.
564566
self.tcx().at(span).type_of(defin_ty_def_id);
565567
}
566568
}

0 commit comments

Comments
 (0)