diff options
| author | wickerwaka <martin.donlon@gmail.com> | 2014-08-22 21:02:00 -0700 |
|---|---|---|
| committer | wickerwaka <martin.donlon@gmail.com> | 2014-08-23 12:16:04 -0700 |
| commit | c0e003d5ade810f36b8f4a1bb641b6bb2476b298 (patch) | |
| tree | 1c9b034207960f9d1b08f57cc451308ff322c869 /src/libsyntax/print | |
| parent | 6843d8ccd562c5c5d45c0bba570908d5aa765610 (diff) | |
| download | rust-c0e003d5ade810f36b8f4a1bb641b6bb2476b298.tar.gz rust-c0e003d5ade810f36b8f4a1bb641b6bb2476b298.zip | |
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
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 6fe44078447..f3f40befb19 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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!(self.print_string(p.get(), style)); try!(space(&mut self.s)); - try!(word(&mut self.s, "=")); + try!(word(&mut self.s, "as")); try!(space(&mut self.s)); - try!(self.print_string(p.get(), style)); } + try!(self.print_ident(id)); } ast::ViewItemUse(ref vp) => { |
