aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-12-20 14:44:04 -0800
committerPatrick Walton <[email protected]>2010-12-20 14:44:04 -0800
commit194d7844ea653442a1e713ad9ff79c3ce43209ab (patch)
tree69cd48fa60b091d8219ef3041f5bcfc612fedab3 /src/comp
parentrustc: Add a type param ID -> type descriptor mapping to function contexts (diff)
downloadrust-194d7844ea653442a1e713ad9ff79c3ce43209ab.tar.xz
rust-194d7844ea653442a1e713ad9ff79c3ce43209ab.zip
rustc: Print the type when we die in trans.make_drop_glue_inner
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index ac8d96ae..6353ca8a 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;
}