Consistify ast::local.
This commit is contained in:
parent
d47101703e
commit
391348ec86
12 changed files with 75 additions and 70 deletions
|
|
@ -164,8 +164,8 @@ fn has_nonlocal_exits(&ast::block b) -> bool {
|
|||
ret *has_exits;
|
||||
}
|
||||
|
||||
fn local_rhs_span(&@ast::local_ l, &span def) -> span {
|
||||
alt (l.init) {
|
||||
fn local_rhs_span(&@ast::local l, &span def) -> span {
|
||||
alt (l.node.init) {
|
||||
case (some(?i)) { ret i.expr.span; }
|
||||
case (_) { ret def; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue