rustc: Print the type when we die in trans.make_drop_glue_inner

This commit is contained in:
Patrick Walton 2010-12-20 14:44:04 -08:00
parent 9fb2284600
commit 194d7844ea

View File

@ -736,7 +736,8 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @typeck.ty t) -> result {
}
}
}
cx.fcx.ccx.sess.bug("bad type in trans.make_drop_glue_inner");
cx.fcx.ccx.sess.bug("bad type in trans.make_drop_glue_inner: " +
typeck.ty_to_str(t));
fail;
}