Skip to content

Commit eeef9a3

Browse files
committed
---
yaml --- r: 109747 b: refs/heads/snap-stage3 c: 6d43138 h: refs/heads/master i: 109745: 4bb638c 109743: 401b1c7 v: v3
1 parent e97da5a commit eeef9a3

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: bf1ffaf5f48f925bfb62f9dca3bc73cfcc246148
4+
refs/heads/snap-stage3: 6d43138b75f009bfa6f0774953ef55fd91e9760a
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/print/pprust.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,6 @@ impl<'a> State<'a> {
915915
match attr.node.style {
916916
ast::AttrInner => {
917917
try!(self.print_attribute(attr));
918-
if !attr.node.is_sugared_doc {
919-
try!(word(&mut self.s, ";"));
920-
}
921918
count += 1;
922919
}
923920
_ => {/* fallthrough */ }
@@ -935,7 +932,10 @@ impl<'a> State<'a> {
935932
if attr.node.is_sugared_doc {
936933
word(&mut self.s, attr.value_str().unwrap().get())
937934
} else {
938-
try!(word(&mut self.s, "#["));
935+
match attr.node.style {
936+
ast::AttrInner => try!(word(&mut self.s, "#![")),
937+
ast::AttrOuter => try!(word(&mut self.s, "#[")),
938+
}
939939
try!(self.print_meta_item(attr.meta()));
940940
word(&mut self.s, "]")
941941
}

branches/snap-stage3/src/test/auxiliary/impl_privacy_xc_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[crate_type = "lib"];
11+
#![crate_type = "lib"]
1212

1313
pub struct Fish {
1414
pub x: int

branches/snap-stage3/src/test/pretty/attr-fn-inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// accidentally carried over to each inner function
1515

1616
fn main() {
17-
#[inner_attr];
17+
#![inner_attr]
1818
#[outer_attr]
1919
fn f() { }
2020

branches/snap-stage3/src/test/pretty/doc-comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ fn f() { }
5757
fn g() { }
5858

5959
fn h() {
60-
#[doc = "as do inner ones"];
60+
#![doc = "as do inner ones"]
6161
}

branches/snap-stage3/src/test/run-pass/method-attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ trait frobable {
2222
impl frobable for int {
2323
#[frob_attr1]
2424
fn frob(&self) {
25-
#[frob_attr2];
25+
#![frob_attr2]
2626
}
2727

2828
#[defrob_attr1]
2929
fn defrob(&self) {
30-
#[defrob_attr2];
30+
#![defrob_attr2]
3131
}
3232
}
3333

0 commit comments

Comments
 (0)