diff options
| author | Lindsey Kuper <[email protected]> | 2011-05-10 19:52:22 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-13 17:35:13 -0700 |
| commit | 6c1c5b39482158f078b5b10164c024edf345e386 (patch) | |
| tree | 7c179784c98b97df43ff2329c96940452934f7b4 /src/comp/middle/trans.rs | |
| parent | Correct capitalization of "Option". (diff) | |
| download | rust-6c1c5b39482158f078b5b10164c024edf345e386.tar.xz rust-6c1c5b39482158f078b5b10164c024edf345e386.zip | |
More progress on anonymous objects.
Still segfaulting on the method-overriding.rs test, though.
Diffstat (limited to 'src/comp/middle/trans.rs')
| -rw-r--r-- | src/comp/middle/trans.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 4f1636d4..fa50d857 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -2885,10 +2885,14 @@ fn iter_sequence(@block_ctxt cx, auto et = ty::mk_mach(cx.fcx.lcx.ccx.tcx, common::ty_u8); ret iter_sequence_body(cx, v, et, f, true); } - case (_) { fail; } + case (_) { + + cx.fcx.lcx.ccx.sess.bug("unexpected type in " + + "trans::iter_sequence: " + + ty.ty_to_str(cx.fcx.lcx.ccx.tcx, t)); + fail; + } } - cx.fcx.lcx.ccx.sess.bug("bad type in trans::iter_sequence"); - fail; } fn lazily_emit_all_tydesc_glue(&@block_ctxt cx, |