Skip to content

Commit 3f85f3a

Browse files
committed
---
yaml --- r: 4943 b: refs/heads/master c: 26e1cac h: refs/heads/master i: 4941: e1e3e2d 4939: 15108e1 4935: 8fed9ee 4927: 706fd60 v: v3
1 parent e6f2933 commit 3f85f3a

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
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: b099760269ecf7920eed99919ff6bdbd341ecf95
2+
refs/heads/master: 26e1cacb216fc754650a58b22bbbd91ab945089d

trunk/src/comp/middle/tstate/auxiliary.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,18 @@ fn expr_to_constr_arg(tcx: ty::ctxt, e: &@expr) -> @constr_arg_use {
621621
carg_ident({ident: p.node.idents[0],
622622
node: a_id.node}));
623623
}
624-
_ {
624+
some (def_binding(b_id)) {
625+
ret @respan(p.span,
626+
carg_ident({ident: p.node.idents[0],
627+
node: b_id.node}));
628+
}
629+
some(_) {
625630
tcx.sess.bug("exprs_to_constr_args: non-local variable " +
626631
"as pred arg");
632+
}
633+
none {
634+
tcx.sess.bug("exprs_to_constr_args: NONE " +
635+
"as pred arg");
627636

628637
}
629638
}
@@ -646,10 +655,6 @@ fn exprs_to_constr_args(tcx: ty::ctxt, args: &[@expr]) -> [@constr_arg_use] {
646655

647656
fn expr_to_constr(tcx: ty::ctxt, e: &@expr) -> sp_constr {
648657
alt e.node {
649-
650-
651-
// FIXME change the first pattern to expr_path to test a
652-
// typechecker bug
653658
expr_call(operator, args) {
654659
alt operator.node {
655660
expr_path(p) {

0 commit comments

Comments
 (0)