Remove extern mod foo (name="bar") syntax, closes #9543
This commit is contained in:
@@ -1952,7 +1952,7 @@ pub fn print_view_item(s: @ps, item: &ast::view_item) {
|
||||
print_outer_attributes(s, item.attrs);
|
||||
print_visibility(s, item.vis);
|
||||
match item.node {
|
||||
ast::view_item_extern_mod(id, ref optional_path, ref mta, _) => {
|
||||
ast::view_item_extern_mod(id, ref optional_path, _) => {
|
||||
head(s, "extern mod");
|
||||
print_ident(s, id);
|
||||
for &(ref p, style) in optional_path.iter() {
|
||||
@@ -1961,11 +1961,6 @@ pub fn print_view_item(s: @ps, item: &ast::view_item) {
|
||||
space(s.s);
|
||||
print_string(s, *p, style);
|
||||
}
|
||||
if !mta.is_empty() {
|
||||
popen(s);
|
||||
commasep(s, consistent, *mta, |p, &i| print_meta_item(p, i));
|
||||
pclose(s);
|
||||
}
|
||||
}
|
||||
|
||||
ast::view_item_use(ref vps) => {
|
||||
|
||||
Reference in New Issue
Block a user