File tree Expand file tree Collapse file tree 5 files changed +3
-7
lines changed Expand file tree Collapse file tree 5 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ impl f32 {
113113 /// assert_eq!(h.round_ties_even(), 4.0);
114114 /// assert_eq!(i.round_ties_even(), 4.0);
115115 /// ```
116- #[ cfg( not( bootstrap) ) ]
117- #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
116+ #[ rustc_allow_incoherent_impl]
118117 #[ must_use = "method returns a new number and does not mutate the original value" ]
119118 #[ unstable( feature = "round_ties_even" , issue = "96710" ) ]
120119 #[ inline]
Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ fn test_round() {
222222 assert_approx_eq ! ( ( -1.7f32 ) . round( ) , -2.0f32 ) ;
223223}
224224
225- #[ cfg( not( bootstrap) ) ]
226225#[ test]
227226fn test_round_ties_even ( ) {
228227 assert_approx_eq ! ( 2.5f32 . round_ties_even( ) , 2.0f32 ) ;
Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ impl f64 {
113113 /// assert_eq!(h.round_ties_even(), 4.0);
114114 /// assert_eq!(i.round_ties_even(), 4.0);
115115 /// ```
116- #[ cfg( not( bootstrap) ) ]
117- #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
116+ #[ rustc_allow_incoherent_impl]
118117 #[ must_use = "method returns a new number and does not mutate the original value" ]
119118 #[ unstable( feature = "round_ties_even" , issue = "96710" ) ]
120119 #[ inline]
Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ fn test_round() {
212212 assert_approx_eq ! ( ( -1.7f64 ) . round( ) , -2.0f64 ) ;
213213}
214214
215- #[ cfg( not( bootstrap) ) ]
216215#[ test]
217216fn test_round_ties_even ( ) {
218217 assert_approx_eq ! ( 2.5f64 . round_ties_even( ) , 2.0f64 ) ;
Original file line number Diff line number Diff line change 307307#![ feature( provide_any) ]
308308#![ feature( ptr_as_uninit) ]
309309#![ feature( raw_os_nonzero) ]
310- #![ cfg_attr ( not ( bootstrap ) , feature( round_ties_even) ) ]
310+ #![ feature( round_ties_even) ]
311311#![ feature( slice_internals) ]
312312#![ feature( slice_ptr_get) ]
313313#![ feature( std_internals) ]
You can’t perform that action at this time.
0 commit comments