Skip to content

Commit 3b792d2

Browse files
committed
---
yaml --- r: 5558 b: refs/heads/master c: 20c2d2a h: refs/heads/master v: v3
1 parent 247ee9d commit 3b792d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4ff46a1502461970e50c17a3da0b8bb76c732766
2+
refs/heads/master: 20c2d2a999c3f6d69cf751c87958b122abb6877c

trunk/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)