From 418b4c456703501b18f6774e7708186ae9c1e2c2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 21 May 2011 13:02:58 -0400 Subject: [PATCH] rustc: Assign ty_bot to nodes in write::bot_ty. Remove FIXME --- src/comp/middle/typeck.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index cb95a5e6f01c..6a37d1d22eba 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -427,8 +427,7 @@ mod write { // Writes the bottom type into the node type table. fn bot_ty(&ty::ctxt tcx, uint node_id) { - // FIXME: Should be mk_bot(), but this breaks lots of stuff. - be ty(tcx, node_id, tup(none[vec[ty::t]], ty::mk_nil(tcx))); + be ty(tcx, node_id, tup(none[vec[ty::t]], ty::mk_bot(tcx))); } }