We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3637b9a commit fe5c0f2Copy full SHA for fe5c0f2
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 1e6da7b38dfac0ce0c59d966f242ca57a7dc9bf9
+refs/heads/master: 0e43e8ccc8e67dbccbfdbc0c8300a41e43d8b0cf
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/rustc/middle/kind.rs
@@ -4,6 +4,7 @@ import syntax::codemap::span;
import ty::{kind, kind_copyable, kind_sendable, kind_noncopyable};
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