diff options
| author | Ms2ger <Ms2ger@gmail.com> | 2015-10-01 18:03:34 +0200 |
|---|---|---|
| committer | Ms2ger <Ms2ger@gmail.com> | 2015-10-01 18:03:34 +0200 |
| commit | b093060c2a122ff1433bbb46aa603b99be5ef8f9 (patch) | |
| tree | 734792d961612a65d511cff23d136728877b7448 /src/libsyntax/print/pprust.rs | |
| parent | 24202c6431a29d18f58c6d7302d6a9095e218395 (diff) | |
| download | rust-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.rs | 8 |
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(), "]") |
