summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.rs
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/print/pprust.rs
parent24202c6431a29d18f58c6d7302d6a9095e218395 (diff)
downloadrust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.tar.gz
rust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.zip
Stop re-exporting AttrStyle's variants and rename them.
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
-rw-r--r--src/libsyntax/print/pprust.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 49b6dbed27e..405fd9b8cc7 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -709,7 +709,7 @@ pub trait PrintState<'a> {
         let mut count = 0;
         for attr in attrs {
             match attr.node.style {
-                ast::AttrInner => {
+                ast::AttrStyle::Inner => {
                     try!(self.print_attribute(attr));
                     count += 1;
                 }
@@ -727,7 +727,7 @@ pub trait PrintState<'a> {
         let mut count = 0;
         for attr in attrs {
             match attr.node.style {
-                ast::AttrOuter => {
+                ast::AttrStyle::Outer => {
                     try!(self.print_attribute(attr));
                     count += 1;
                 }
@@ -747,8 +747,8 @@ pub trait PrintState<'a> {
             word(self.writer(), &attr.value_str().unwrap())
         } else {
             match attr.node.style {
-                ast::AttrInner => try!(word(self.writer(), "#![")),
-                ast::AttrOuter => try!(word(self.writer(), "#[")),
+                ast::AttrStyle::Inner => try!(word(self.writer(), "#![")),
+                ast::AttrStyle::Outer => try!(word(self.writer(), "#[")),
             }
             try!(self.print_meta_item(&*attr.meta()));
             word(self.writer(), "]")