Skip to content

Commit 418b4c4

Browse files
committed
rustc: Assign ty_bot to nodes in write::bot_ty. Remove FIXME
1 parent 779dd80 commit 418b4c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/middle/typeck.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ mod write {
427427

428428
// Writes the bottom type into the node type table.
429429
fn bot_ty(&ty::ctxt tcx, uint node_id) {
430-
// FIXME: Should be mk_bot(), but this breaks lots of stuff.
431-
be ty(tcx, node_id, tup(none[vec[ty::t]], ty::mk_nil(tcx)));
430+
be ty(tcx, node_id, tup(none[vec[ty::t]], ty::mk_bot(tcx)));
432431
}
433432
}
434433

0 commit comments

Comments
 (0)