Add some changes that *should* have been in e98286b594
Forgot to amend the commit after fixing the failure.
This commit is contained in:
parent
2ac63801d2
commit
8746ebe2e6
@ -217,17 +217,17 @@ fn map_crate(e: @env, c: @ast::crate) {
|
||||
let imp = follow_import(*e, sc, path, vi.span);
|
||||
if option::is_some(imp) {
|
||||
let glob = {def: option::get(imp), item: vi};;
|
||||
alt sc {
|
||||
cons(scope_item(i), _) {
|
||||
alt list::head(sc) {
|
||||
scope_item(i) {
|
||||
e.mod_map.get(i.id).glob_imports += [glob];
|
||||
}
|
||||
cons(scope_block(b, _, _), _) {
|
||||
scope_block(b, _, _) {
|
||||
let globs = alt e.block_map.find(b.node.id) {
|
||||
some(globs) { globs + [glob] } none. { [glob] }
|
||||
};
|
||||
e.block_map.insert(b.node.id, globs);
|
||||
}
|
||||
nil. {
|
||||
scope_crate. {
|
||||
e.mod_map.get(-1).glob_imports += [glob];
|
||||
}
|
||||
}
|
||||
|
@ -562,6 +562,7 @@ fn print_possibly_embedded_block(s: ps, blk: ast::blk, embedded: embed_type,
|
||||
block_normal. { bopen(s); }
|
||||
}
|
||||
|
||||
for vi in blk.node.view_items { print_view_item(s, vi); }
|
||||
for st: @ast::stmt in blk.node.stmts {
|
||||
print_stmt(s, *st);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user