about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorKang Seonghoon <public+git@mearie.org>2014-04-26 22:33:45 +0900
committerKang Seonghoon <public+git@mearie.org>2014-04-26 22:33:45 +0900
commitb03547bac1301da0a053e1e73a591ebdb0ccd1ca (patch)
tree4548245ecf0084513ef81ac742441400cb363878 /src/libsyntax/print
parenteea4909a8713a54b3c47e871a70baf6c722999a3 (diff)
downloadrust-b03547bac1301da0a053e1e73a591ebdb0ccd1ca.tar.gz
rust-b03547bac1301da0a053e1e73a591ebdb0ccd1ca.zip
syntax: ViewItemUse no longer contains multiple view paths.
it reflected the obsolete syntax `use a, b, c;` and did not make
past the parser (though it was a non-fatal error so we can continue).
this legacy affected many portions of rustc and rustdoc as well,
so this commit cleans them up altogether.
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 9d3f7cbc69a..7ea4dcbf28a 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1995,11 +1995,6 @@ impl<'a> State<'a> {
         }
     }
 
-    pub fn print_view_paths(&mut self,
-                            vps: &[@ast::ViewPath]) -> IoResult<()> {
-        self.commasep(Inconsistent, vps, |s, &vp| s.print_view_path(vp))
-    }
-
     pub fn print_view_item(&mut self, item: &ast::ViewItem) -> IoResult<()> {
         try!(self.hardbreak_if_not_bol());
         try!(self.maybe_print_comment(item.span.lo));
@@ -2017,9 +2012,9 @@ impl<'a> State<'a> {
                 }
             }
 
-            ast::ViewItemUse(ref vps) => {
+            ast::ViewItemUse(ref vp) => {
                 try!(self.head("use"));
-                try!(self.print_view_paths(vps.as_slice()));
+                try!(self.print_view_path(*vp));
             }
         }
         try!(word(&mut self.s, ";"));