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 89bb69a commit a616034Copy full SHA for a616034
[refs]
@@ -2,5 +2,5 @@
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
-refs/heads/try: 1e6da7b38dfac0ce0c59d966f242ca57a7dc9bf9
+refs/heads/try: 0e43e8ccc8e67dbccbfdbc0c8300a41e43d8b0cf
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
branches/try/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;
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