File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9cb20153a8e8cdcbf0e88f5575c9b1f7b37175da
2
+ refs/heads/master: 7d086df0954263c2667fb4af65ab82b7e39d51ca
Original file line number Diff line number Diff line change @@ -79,11 +79,15 @@ fn walk_expr(@env e, &@ast.expr x) {
79
79
}
80
80
81
81
fn walk_block ( @env e , & ast . block b) {
82
- for each ( @tup( ast. ident, ast. block_index_entry) it in
83
- b. node . index . items ( ) ) {
84
- alt ( it. _1 ) {
85
- case ( ast. bie_local ( ?local) ) {
86
- e. idmap . insert ( local. id , current_context ( * e) ) ;
82
+ for ( @ast. stmt st in b. node . stmts ) {
83
+ alt ( st. node ) {
84
+ case ( ast. stmt_decl ( ?d, _) ) {
85
+ alt ( d. node ) {
86
+ case ( ast. decl_local ( ?loc) ) {
87
+ e. idmap . insert ( loc. id , current_context ( * e) ) ;
88
+ }
89
+ case ( _) { }
90
+ }
87
91
}
88
92
case ( _) { }
89
93
}
You can’t perform that action at this time.
0 commit comments