Skip to content

Commit 20c2d2a

Browse files
committed
Distinguish #924
1 parent 4ff46a1 commit 20c2d2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4036,7 +4036,12 @@ fn trans_rec(bcx: @block_ctxt, fields: [ast::field],
40364036
none. { C_nil() }
40374037
};
40384038

4039-
let ty_fields = alt ty::struct(bcx_tcx(bcx), t) { ty::ty_rec(f) { f } };
4039+
let ty_fields = alt ty::struct(bcx_tcx(bcx), t) {
4040+
ty::ty_rec(f) { f }
4041+
ty::ty_bot. {
4042+
bcx_ccx(bcx).sess.bug("https://github.com/graydon/rust/issues/924")
4043+
}
4044+
};
40404045
let temp_cleanups = [], i = 0;
40414046
for tf in ty_fields {
40424047
let fdest = alt dest {

0 commit comments

Comments
 (0)