Skip to content

Commit 560d999

Browse files
committed
auto merge of #10107 : thestinger/rust/immediate, r=huonw
2 parents bee40a9 + 1e4986c commit 560d999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/middle/trans/common.rs

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub fn type_is_immediate(ccx: &mut CrateContext, ty: ty::t) -> bool {
7070
return true;
7171
}
7272
match ty::get(ty).sty {
73+
ty::ty_bot => true,
7374
ty::ty_struct(*) | ty::ty_enum(*) | ty::ty_tup(*) => {
7475
let llty = sizing_type_of(ccx, ty);
7576
llsize_of_alloc(ccx, llty) <= llsize_of_alloc(ccx, ccx.int_type)

0 commit comments

Comments
 (0)