Skip to content

Commit f90a8f7

Browse files
committed
---
yaml --- r: 14693 b: refs/heads/try c: 90ac699 h: refs/heads/master i: 14691: 3628a37 v: v3
1 parent 6636a63 commit f90a8f7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 5c4ffd0dd7fb717cdc6f015c0d76043a0d8d4c83
5+
refs/heads/try: 90ac69904f758cc4ae3d86d4b6bf4a1602606b3f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/typeck.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,10 +2163,9 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
21632163
require_unsafe(tcx.sess, fcx.purity, expr.span);
21642164
}
21652165
_ {
2166-
tcx.sess.span_err(expr.span,
2167-
"dereferencing non-" +
2168-
"dereferenceable type: " +
2169-
ty_to_str(tcx, oper_t));
2166+
tcx.sess.span_err(expr.span,
2167+
#fmt("Type %s cannot be dereferenced",
2168+
ty_to_str(tcx, oper_t)));
21702169
}
21712170
}
21722171
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// error-pattern:cannot be dereferenced
2+
fn main() {
3+
alt *1 {
4+
_ { fail; }
5+
}
6+
}

0 commit comments

Comments
 (0)