about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-01 18:03:34 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-01 18:03:34 +0200
commitb093060c2a122ff1433bbb46aa603b99be5ef8f9 (patch)
tree734792d961612a65d511cff23d136728877b7448 /src/libsyntax/parse/lexer
parent24202c6431a29d18f58c6d7302d6a9095e218395 (diff)
downloadrust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.tar.gz
rust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.zip
Stop re-exporting AttrStyle's variants and rename them.
Diffstat (limited to 'src/libsyntax/parse/lexer')
-rw-r--r--src/libsyntax/parse/lexer/comments.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs
index 9033208fbdb..137996a35ee 100644
--- a/src/libsyntax/parse/lexer/comments.rs
+++ b/src/libsyntax/parse/lexer/comments.rs
@@ -52,9 +52,9 @@ pub fn is_doc_comment(s: &str) -> bool {
 pub fn doc_comment_style(comment: &str) -> ast::AttrStyle {
     assert!(is_doc_comment(comment));
     if comment.starts_with("//!") || comment.starts_with("/*!") {
-        ast::AttrInner
+        ast::AttrStyle::Inner
     } else {
-        ast::AttrOuter
+        ast::AttrStyle::Outer
     }
 }