diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-04 13:45:24 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-04 15:57:45 -0700 |
| commit | 6d43138b75f009bfa6f0774953ef55fd91e9760a (patch) | |
| tree | 61f1237167d3663ba874e2b802cd9f5dd3c57041 /src/libsyntax | |
| parent | bf1ffaf5f48f925bfb62f9dca3bc73cfcc246148 (diff) | |
| download | rust-6d43138b75f009bfa6f0774953ef55fd91e9760a.tar.gz rust-6d43138b75f009bfa6f0774953ef55fd91e9760a.zip | |
Test fixes from rollup
Diffstat (limited to 'src/libsyntax')
| -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 7972852a3f4..fe969c6fd51 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -915,9 +915,6 @@ impl<'a> State<'a> { match attr.node.style { ast::AttrInner => { try!(self.print_attribute(attr)); - if !attr.node.is_sugared_doc { - try!(word(&mut self.s, ";")); - } count += 1; } _ => {/* fallthrough */ } @@ -935,7 +932,10 @@ impl<'a> State<'a> { if attr.node.is_sugared_doc { word(&mut self.s, attr.value_str().unwrap().get()) } else { - try!(word(&mut self.s, "#[")); + match attr.node.style { + ast::AttrInner => try!(word(&mut self.s, "#![")), + ast::AttrOuter => try!(word(&mut self.s, "#[")), + } try!(self.print_meta_item(attr.meta())); word(&mut self.s, "]") } |
