diff options
| author | Patrick Walton <[email protected]> | 2010-12-20 14:44:04 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-20 14:44:04 -0800 |
| commit | 194d7844ea653442a1e713ad9ff79c3ce43209ab (patch) | |
| tree | 69cd48fa60b091d8219ef3041f5bcfc612fedab3 /src | |
| parent | rustc: Add a type param ID -> type descriptor mapping to function contexts (diff) | |
| download | rust-194d7844ea653442a1e713ad9ff79c3ce43209ab.tar.xz rust-194d7844ea653442a1e713ad9ff79c3ce43209ab.zip | |
rustc: Print the type when we die in trans.make_drop_glue_inner
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/trans.rs | 3 |
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; } |