extern crate foobar as foo;
Implements remaining part of RFC #47. Addresses issue #16461. Removed link_attrs from rust.md, they don't appear to be supported by the parser. Changed all the tests to use the new extern crate syntax Change pretty printer to use 'as' syntax
This commit is contained in:
@@ -2375,13 +2375,13 @@ impl<'a> State<'a> {
|
||||
match item.node {
|
||||
ast::ViewItemExternCrate(id, ref optional_path, _) => {
|
||||
try!(self.head("extern crate"));
|
||||
try!(self.print_ident(id));
|
||||
for &(ref p, style) in optional_path.iter() {
|
||||
try!(space(&mut self.s));
|
||||
try!(word(&mut self.s, "="));
|
||||
try!(space(&mut self.s));
|
||||
try!(self.print_string(p.get(), style));
|
||||
try!(space(&mut self.s));
|
||||
try!(word(&mut self.s, "as"));
|
||||
try!(space(&mut self.s));
|
||||
}
|
||||
try!(self.print_ident(id));
|
||||
}
|
||||
|
||||
ast::ViewItemUse(ref vp) => {
|
||||
|
||||
Reference in New Issue
Block a user