File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: bf1ffaf5f48f925bfb62f9dca3bc73cfcc246148
8
+ refs/heads/try2: 6d43138b75f009bfa6f0774953ef55fd91e9760a
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -915,9 +915,6 @@ impl<'a> State<'a> {
915
915
match attr. node . style {
916
916
ast:: AttrInner => {
917
917
try!( self . print_attribute ( attr) ) ;
918
- if !attr. node . is_sugared_doc {
919
- try!( word ( & mut self . s , ";" ) ) ;
920
- }
921
918
count += 1 ;
922
919
}
923
920
_ => { /* fallthrough */ }
@@ -935,7 +932,10 @@ impl<'a> State<'a> {
935
932
if attr. node . is_sugared_doc {
936
933
word ( & mut self . s , attr. value_str ( ) . unwrap ( ) . get ( ) )
937
934
} 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
+ }
939
939
try!( self . print_meta_item ( attr. meta ( ) ) ) ;
940
940
word ( & mut self . s , "]" )
941
941
}
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #[ crate_type = "lib" ] ;
11
+ #! [ crate_type = "lib" ]
12
12
13
13
pub struct Fish {
14
14
pub x : int
Original file line number Diff line number Diff line change 14
14
// accidentally carried over to each inner function
15
15
16
16
fn main ( ) {
17
- #[ inner_attr] ;
17
+ #! [ inner_attr]
18
18
#[ outer_attr]
19
19
fn f ( ) { }
20
20
Original file line number Diff line number Diff line change @@ -57,5 +57,5 @@ fn f() { }
57
57
fn g ( ) { }
58
58
59
59
fn h ( ) {
60
- #[ doc = "as do inner ones" ] ;
60
+ #! [ doc = "as do inner ones" ]
61
61
}
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ trait frobable {
22
22
impl frobable for int {
23
23
#[ frob_attr1]
24
24
fn frob ( & self ) {
25
- #[ frob_attr2] ;
25
+ #! [ frob_attr2]
26
26
}
27
27
28
28
#[ defrob_attr1]
29
29
fn defrob ( & self ) {
30
- #[ defrob_attr2] ;
30
+ #! [ defrob_attr2]
31
31
}
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments