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 33b3c42 commit ccdd411Copy full SHA for ccdd411
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 1402cd101bfd2b0235900dfd07593572f34f4844
+refs/heads/master: 24c9d7e5f85aa9324dbb2313101cf4c0d9826dc3
trunk/src/comp/middle/typeck.rs
@@ -1128,8 +1128,8 @@ mod pushdown {
1128
alt (struct(scx.fcx.ccx.tcx, expected)) {
1129
case (ty::ty_tag(_, ?tps)) { tag_tps = tps; }
1130
case (_) {
1131
- log_err "tag pattern type not actually a tag?!";
1132
- fail;
+ scx.fcx.ccx.tcx.sess.span_err(pat.span,
+ "Non-constructor used in a pattern");
1133
}
1134
1135
0 commit comments