diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-14 12:00:25 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-20 11:46:00 +0000 |
| commit | 3ea2bc4e935e273268f3f6d8de45a27042dc5e48 (patch) | |
| tree | 4def39226f97e50bebf099a93857735bc3c77bb1 /src/libsyntax/print | |
| parent | bfa709a38a8c607e1c13ee5635fbfd1940eb18b1 (diff) | |
| download | rust-3ea2bc4e935e273268f3f6d8de45a27042dc5e48.tar.gz rust-3ea2bc4e935e273268f3f6d8de45a27042dc5e48.zip | |
Refactor away `ast::Attribute_`.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 203c19285ac..ea4a9177d42 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -727,7 +727,7 @@ pub trait PrintState<'a> { trailing_hardbreak: bool) -> io::Result<()> { let mut count = 0; for attr in attrs { - if attr.node.style == kind { + if attr.style == kind { try!(self.print_attribute_inline(attr, is_inline)); if is_inline { try!(self.nbsp()); @@ -751,11 +751,11 @@ pub trait PrintState<'a> { try!(self.hardbreak_if_not_bol()); } try!(self.maybe_print_comment(attr.span.lo)); - if attr.node.is_sugared_doc { + if attr.is_sugared_doc { try!(word(self.writer(), &attr.value_str().unwrap())); hardbreak(self.writer()) } else { - match attr.node.style { + match attr.style { ast::AttrStyle::Inner => try!(word(self.writer(), "#