Distinguish #924
This commit is contained in:
parent
4ff46a1502
commit
20c2d2a999
1 changed files with 6 additions and 1 deletions
|
@ -4036,7 +4036,12 @@ fn trans_rec(bcx: @block_ctxt, fields: [ast::field],
|
|||
none. { C_nil() }
|
||||
};
|
||||
|
||||
let ty_fields = alt ty::struct(bcx_tcx(bcx), t) { ty::ty_rec(f) { f } };
|
||||
let ty_fields = alt ty::struct(bcx_tcx(bcx), t) {
|
||||
ty::ty_rec(f) { f }
|
||||
ty::ty_bot. {
|
||||
bcx_ccx(bcx).sess.bug("https://github.com/graydon/rust/issues/924")
|
||||
}
|
||||
};
|
||||
let temp_cleanups = [], i = 0;
|
||||
for tf in ty_fields {
|
||||
let fdest = alt dest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue