about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-07-05 12:16:41 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-07-10 07:11:29 -0400
commit0f10d114e447d5cdaf1de499e2d88b815aef7239 (patch)
tree68d627fd9561f33d26129a62f8ad3efd1dd1d21e /src/libsyntax/parse
parent9b0ebfa4e9e4906497eed5c6848bcca3cca23464 (diff)
downloadrust-0f10d114e447d5cdaf1de499e2d88b815aef7239.tar.gz
rust-0f10d114e447d5cdaf1de499e2d88b815aef7239.zip
Remove duplicate attr_to_string
attribute_to_string exists.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index fccb556b95a..472e4b474d6 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -816,7 +816,7 @@ fn prepend_attrs(sess: &ParseSess,
         assert_eq!(attr.style, ast::AttrStyle::Outer,
                    "inner attributes should prevent cached tokens from existing");
 
-        let source = pprust::attr_to_string(attr);
+        let source = pprust::attribute_to_string(attr);
         let macro_filename = FileName::macro_expansion_source_code(&source);
         if attr.is_sugared_doc {
             let stream = parse_stream_from_source_str(macro_filename, source, sess, Some(span));