Stop re-exporting AttrStyle's variants and rename them.

This commit is contained in:
Ms2ger
2015-10-01 18:03:34 +02:00
parent 24202c6431
commit b093060c2a
12 changed files with 31 additions and 32 deletions

View File

@@ -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(), "]")