Skip to content

Commit 5cdb010

Browse files
committed
Remove typechecker work-arounds now that I know how
1 parent 0773254 commit 5cdb010

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/comp/lib/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ fn float_width(TypeRef llt) -> uint {
15491549
2 { 64u }
15501550
3 { 80u }
15511551
4 | 5 { 128u }
1552-
_ { fail "llvm_float_width called on a non-float type"; 0u }
1552+
_ { fail "llvm_float_width called on a non-float type" }
15531553
};
15541554
}
15551555

src/comp/middle/trans.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4465,8 +4465,7 @@ fn trans_cast(&@block_ctxt cx, &@ast::expr e, ast::node_id id) -> result {
44654465
e_res.bcx.build.PointerCast(e_res.val, ll_t_out)
44664466
}
44674467
_ {
4468-
ccx.sess.bug("Translating unsupported cast.");
4469-
C_nil() // FIXME the typechecker doesn't seem to understand _|_ here
4468+
ccx.sess.bug("Translating unsupported cast.")
44704469
}
44714470
};
44724471
ret rslt(e_res.bcx, newval);

0 commit comments

Comments
 (0)