Skip to content

Commit c592d49

Browse files
committed
---
yaml --- r: 150591 b: refs/heads/try2 c: 6d43138 h: refs/heads/master i: 150589: 325d3a5 150587: 373963e 150583: 79014ea 150575: 96f8a3d 150559: cfcacd0 150527: 8531317 v: v3
1 parent 4420617 commit c592d49

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: bf1ffaf5f48f925bfb62f9dca3bc73cfcc246148
8+
refs/heads/try2: 6d43138b75f009bfa6f0774953ef55fd91e9760a
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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/try2/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/try2/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)