about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-10-28 11:05:28 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-10-28 15:55:38 +1100
commit665ad9c175f746b78c7eae81432b543d2e16c3c9 (patch)
treeef3ee489fe83735580ee2dcea9f82ad61296a07b /src/libsyntax/parse/parser.rs
parentcd049591a25973cd41ca5b69e7a151ae5fa0b71f (diff)
downloadrust-665ad9c175f746b78c7eae81432b543d2e16c3c9.tar.gz
rust-665ad9c175f746b78c7eae81432b543d2e16c3c9.zip
Move token-to-string functions into print::pprust
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 54b1cc2dbad..654de709566 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -78,6 +78,7 @@ use parse::token::InternedString;
 use parse::token::{keywords, special_idents};
 use parse::token;
 use parse::{new_sub_parser_from_file, ParseSess};
+use print::pprust;
 use ptr::P;
 use owned_slice::OwnedSlice;
 
@@ -394,7 +395,7 @@ impl<'a> Parser<'a> {
 
     /// Convert a token to a string using self's reader
     pub fn token_to_string(token: &token::Token) -> String {
-        token::to_string(token)
+        pprust::token_to_string(token)
     }
 
     /// Convert the current token to a string using self's reader