Skip to content

Commit 0e43e8c

Browse files
committed
That awkward moment when you forget to add your final changes
Fixes build breakage.
1 parent 1e6da7b commit 0e43e8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rustc/middle/kind.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import syntax::codemap::span;
44
import ty::{kind, kind_copyable, kind_sendable, kind_noncopyable};
55
import driver::session::session;
66
import std::map::hashmap;
7+
import util::ppaux::{ty_to_str, tys_to_str};
78
import syntax::print::pprust::expr_to_str;
89
import freevars::freevar_entry;
910

@@ -267,8 +268,8 @@ fn check_expr(e: @expr, cx: ctx, v: visit::vt<ctx>) {
267268
// Fail earlier to make debugging easier
268269
fail #fmt("Internal error: in kind::check_expr, length \
269270
mismatch between actual and declared bounds: actual = \
270-
%s (%u tys), declared = %s (%u tys)", ts, ts.len(),
271-
*bounds, bounds.len());
271+
%s (%u tys), declared = %? (%u tys)",
272+
tys_to_str(cx.tcx, ts), ts.len(), *bounds, (*bounds).len());
272273
}
273274
vec::iter2(ts, *bounds) {|ty, bound|
274275
check_bounds(cx, e.span, ty, bound)

0 commit comments

Comments
 (0)