Skip to content

Commit ccdd411

Browse files
committed
---
yaml --- r: 2899 b: refs/heads/master c: 24c9d7e h: refs/heads/master i: 2897: 5dd1594 2895: ef2adb1 v: v3
1 parent 33b3c42 commit ccdd411

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1402cd101bfd2b0235900dfd07593572f34f4844
2+
refs/heads/master: 24c9d7e5f85aa9324dbb2313101cf4c0d9826dc3

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,8 +1128,8 @@ mod pushdown {
11281128
alt (struct(scx.fcx.ccx.tcx, expected)) {
11291129
case (ty::ty_tag(_, ?tps)) { tag_tps = tps; }
11301130
case (_) {
1131-
log_err "tag pattern type not actually a tag?!";
1132-
fail;
1131+
scx.fcx.ccx.tcx.sess.span_err(pat.span,
1132+
"Non-constructor used in a pattern");
11331133
}
11341134
}
11351135

0 commit comments

Comments
 (0)