1
Fork 0

librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc

This commit is contained in:
Patrick Walton 2013-01-08 19:37:25 -08:00
parent 3a5b641720
commit 2db3abddcd
251 changed files with 1353 additions and 454 deletions

View file

@ -20,6 +20,7 @@ use parse::*;
use util::interner;
use core::dvec::DVec;
use core::prelude::*;
use core::str;
use core::to_str::ToStr;
use core::vec;
@ -385,7 +386,8 @@ impl protocol: gen_init {
}
}
cx.ty_path_ast_builder(path(~[cx.ident_of(~"__Buffer")], self.span)
cx.ty_path_ast_builder(path(~[cx.ident_of(~"super"),
cx.ident_of(~"__Buffer")], self.span)
.add_tys(cx.ty_vars_global(params)))
}