@@ -168,7 +168,7 @@ mod nightly {
168168
169169 assert_eq ! ( s. t( ) . value, 42 ) ;
170170
171- #[ cfg( not ( feature = "no_std" ) ) ]
171+ #[ cfg( feature = "std" ) ]
172172 {
173173 let debug_str = format ! ( "{:?}" , s. t_ref( ) . as_ref( ) ) ;
174174 assert ! ( debug_str. contains( "42" ) ) ;
@@ -183,7 +183,7 @@ mod nightly {
183183
184184 assert_eq ! ( s. t( ) . value, 42 ) ;
185185
186- #[ cfg( not ( feature = "no_std" ) ) ]
186+ #[ cfg( feature = "std" ) ]
187187 {
188188 let debug_str = format ! ( "{:?}" , s. t_ref( ) . as_ref( ) ) ;
189189 assert ! ( debug_str. contains( "42" ) ) ;
@@ -198,23 +198,23 @@ mod nightly {
198198
199199 assert_eq ! ( s. t( ) . value, 42 ) ;
200200
201- #[ cfg( not ( feature = "no_std" ) ) ]
201+ #[ cfg( feature = "std" ) ]
202202 {
203203 let debug_str = format ! ( "{:?}" , s. t_ref( ) . as_ref( ) ) ;
204204 assert ! ( debug_str. contains( "42" ) ) ;
205205 }
206206 }
207207
208208 #[ test]
209- #[ cfg( not ( feature = "no_std" ) ) ]
209+ #[ cfg( feature = "std" ) ]
210210 fn check_trait_object_after_move_heap ( ) {
211211 let s = SelfRefTest :: new ( TestStruct { value : 42 } , |x| unsafe {
212212 TraitObject :: from_mut ( x as & mut dyn std:: fmt:: Debug )
213213 } ) ;
214214
215215 assert_eq ! ( s. t( ) . value, 42 ) ;
216216
217- #[ cfg( not ( feature = "no_std" ) ) ]
217+ #[ cfg( feature = "std" ) ]
218218 {
219219 let debug_str = format ! ( "{:?}" , s. t_ref( ) . as_ref( ) ) ;
220220 assert ! ( debug_str. contains( "42" ) ) ;
@@ -224,7 +224,7 @@ mod nightly {
224224
225225 assert_eq ! ( s. t( ) . value, 42 ) ;
226226
227- #[ cfg( not ( feature = "no_std" ) ) ]
227+ #[ cfg( feature = "std" ) ]
228228 {
229229 let debug_str = format ! ( "{:?}" , s. t_ref( ) . as_ref( ) ) ;
230230 assert ! ( debug_str. contains( "42" ) ) ;
0 commit comments