Stab-in-the-dark error fix for the crashing windows tinderboxes. Helps win2 anyways.
This commit is contained in:
parent
f1ed03dfa5
commit
41fb042def
1 changed files with 4 additions and 2 deletions
|
|
@ -689,8 +689,10 @@ fn lookup_in_scope(e: &env, sc: scopes, sp: &span, name: &ident,
|
|||
}
|
||||
scope_arm(a) {
|
||||
if ns == ns_value {
|
||||
ret option::map(ast::def_binding,
|
||||
lookup_in_pat(name, a.pats[0]));
|
||||
alt lookup_in_pat(name, a.pats[0]) {
|
||||
some(did) { ret some(ast::def_binding(did)); }
|
||||
_ { ret none }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue