mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Remove typechecker work-arounds now that I know how
This commit is contained in:
@@ -1549,7 +1549,7 @@ fn float_width(TypeRef llt) -> uint {
|
||||
2 { 64u }
|
||||
3 { 80u }
|
||||
4 | 5 { 128u }
|
||||
_ { fail "llvm_float_width called on a non-float type"; 0u }
|
||||
_ { fail "llvm_float_width called on a non-float type" }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -4465,8 +4465,7 @@ fn t_kind(&ty::ctxt tcx, ty::t t) -> kind {
|
||||
e_res.bcx.build.PointerCast(e_res.val, ll_t_out)
|
||||
}
|
||||
_ {
|
||||
ccx.sess.bug("Translating unsupported cast.");
|
||||
C_nil() // FIXME the typechecker doesn't seem to understand _|_ here
|
||||
ccx.sess.bug("Translating unsupported cast.")
|
||||
}
|
||||
};
|
||||
ret rslt(e_res.bcx, newval);
|
||||
|
||||
Reference in New Issue
Block a user