Skip to content

Commit 41fb042

Browse files
committed
Stab-in-the-dark error fix for the crashing windows tinderboxes. Helps win2 anyways.
1 parent f1ed03d commit 41fb042

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/comp/middle/resolve.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,10 @@ fn lookup_in_scope(e: &env, sc: scopes, sp: &span, name: &ident,
689689
}
690690
scope_arm(a) {
691691
if ns == ns_value {
692-
ret option::map(ast::def_binding,
693-
lookup_in_pat(name, a.pats[0]));
692+
alt lookup_in_pat(name, a.pats[0]) {
693+
some(did) { ret some(ast::def_binding(did)); }
694+
_ { ret none }
695+
}
694696
}
695697
}
696698
}

0 commit comments

Comments
 (0)