We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e6da7b commit 0e43e8cCopy full SHA for 0e43e8c
src/rustc/middle/kind.rs
@@ -4,6 +4,7 @@ import syntax::codemap::span;
4
import ty::{kind, kind_copyable, kind_sendable, kind_noncopyable};
5
import driver::session::session;
6
import std::map::hashmap;
7
+import util::ppaux::{ty_to_str, tys_to_str};
8
import syntax::print::pprust::expr_to_str;
9
import freevars::freevar_entry;
10
@@ -267,8 +268,8 @@ fn check_expr(e: @expr, cx: ctx, v: visit::vt<ctx>) {
267
268
// Fail earlier to make debugging easier
269
fail #fmt("Internal error: in kind::check_expr, length \
270
mismatch between actual and declared bounds: actual = \
- %s (%u tys), declared = %s (%u tys)", ts, ts.len(),
271
- *bounds, bounds.len());
+ %s (%u tys), declared = %? (%u tys)",
272
+ tys_to_str(cx.tcx, ts), ts.len(), *bounds, (*bounds).len());
273
}
274
vec::iter2(ts, *bounds) {|ty, bound|
275
check_bounds(cx, e.span, ty, bound)
0 commit comments