mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Distinguish #924
This commit is contained in:
parent
4ff46a1502
commit
20c2d2a999
@ -4036,7 +4036,12 @@ fn trans_rec(bcx: @block_ctxt, fields: [ast::field],
|
|||||||
none. { C_nil() }
|
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;
|
let temp_cleanups = [], i = 0;
|
||||||
for tf in ty_fields {
|
for tf in ty_fields {
|
||||||
let fdest = alt dest {
|
let fdest = alt dest {
|
||||||
|
Loading…
Reference in New Issue
Block a user