@@ -69,7 +69,10 @@ fn test_meta() {
6969 assert ! ( & STRING as * const _ != & copy_of_string as * const _) ;
7070
7171 // this would not compile if STRING were not marked #[derive(Debug)]
72- assert_eq ! ( format!( "{:?}" , STRING ) , "STRING { __private_field: () }" . to_string( ) ) ;
72+ assert_eq ! (
73+ format!( "{:?}" , STRING ) ,
74+ "STRING { __private_field: () }" . to_string( )
75+ ) ;
7376}
7477
7578mod visibility {
@@ -111,10 +114,18 @@ struct Once(X);
111114const ONCE_INIT : Once = Once ( X ) ;
112115static DATA : X = X ;
113116static ONCE : X = X ;
114- fn require_sync ( ) -> X { X }
115- fn transmute ( ) -> X { X }
116- fn __static_ref_initialize ( ) -> X { X }
117- fn test ( _: Vec < X > ) -> X { X }
117+ fn require_sync ( ) -> X {
118+ X
119+ }
120+ fn transmute ( ) -> X {
121+ X
122+ }
123+ fn __static_ref_initialize ( ) -> X {
124+ X
125+ }
126+ fn test ( _: Vec < X > ) -> X {
127+ X
128+ }
118129
119130// All these names should not be shadowed
120131lazy_static ! {
@@ -133,9 +144,9 @@ fn item_name_shadowing() {
133144}
134145
135146use std:: sync:: atomic:: AtomicBool ;
147+ use std:: sync:: atomic:: Ordering :: SeqCst ;
136148#[ allow( deprecated) ]
137149use std:: sync:: atomic:: ATOMIC_BOOL_INIT ;
138- use std:: sync:: atomic:: Ordering :: SeqCst ;
139150
140151#[ allow( deprecated) ]
141152static PRE_INIT_FLAG : AtomicBool = ATOMIC_BOOL_INIT ;
@@ -155,7 +166,10 @@ fn pre_init() {
155166}
156167
157168lazy_static ! {
158- static ref LIFETIME_NAME : for <' a> fn ( & ' a u8 ) = { fn f( _: & u8 ) { } f } ;
169+ static ref LIFETIME_NAME : for <' a> fn ( & ' a u8 ) = {
170+ fn f( _: & u8 ) { }
171+ f
172+ } ;
159173}
160174
161175#[ test]
0 commit comments