From 194d7844ea653442a1e713ad9ff79c3ce43209ab Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 20 Dec 2010 14:44:04 -0800 Subject: [PATCH] rustc: Print the type when we die in trans.make_drop_glue_inner --- src/comp/middle/trans.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index ac8d96aef71..6353ca8a936 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -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; }