Skip to content

Commit 194d784

Browse files
committed
rustc: Print the type when we die in trans.make_drop_glue_inner
1 parent 9fb2284 commit 194d784

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ fn make_drop_glue(@block_ctxt cx, ValueRef v, @typeck.ty t) -> result {
736736
}
737737
}
738738
}
739-
cx.fcx.ccx.sess.bug("bad type in trans.make_drop_glue_inner");
739+
cx.fcx.ccx.sess.bug("bad type in trans.make_drop_glue_inner: " +
740+
typeck.ty_to_str(t));
740741
fail;
741742
}
742743

0 commit comments

Comments
 (0)