File tree 5 files changed +3
-7
lines changed
5 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ impl f32 {
113
113
/// assert_eq!(h.round_ties_even(), 4.0);
114
114
/// assert_eq!(i.round_ties_even(), 4.0);
115
115
/// ```
116
- #[ cfg( not( bootstrap) ) ]
117
- #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
116
+ #[ rustc_allow_incoherent_impl]
118
117
#[ must_use = "method returns a new number and does not mutate the original value" ]
119
118
#[ unstable( feature = "round_ties_even" , issue = "96710" ) ]
120
119
#[ inline]
Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ fn test_round() {
222
222
assert_approx_eq ! ( ( -1.7f32 ) . round( ) , -2.0f32 ) ;
223
223
}
224
224
225
- #[ cfg( not( bootstrap) ) ]
226
225
#[ test]
227
226
fn test_round_ties_even ( ) {
228
227
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 {
113
113
/// assert_eq!(h.round_ties_even(), 4.0);
114
114
/// assert_eq!(i.round_ties_even(), 4.0);
115
115
/// ```
116
- #[ cfg( not( bootstrap) ) ]
117
- #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
116
+ #[ rustc_allow_incoherent_impl]
118
117
#[ must_use = "method returns a new number and does not mutate the original value" ]
119
118
#[ unstable( feature = "round_ties_even" , issue = "96710" ) ]
120
119
#[ inline]
Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ fn test_round() {
212
212
assert_approx_eq ! ( ( -1.7f64 ) . round( ) , -2.0f64 ) ;
213
213
}
214
214
215
- #[ cfg( not( bootstrap) ) ]
216
215
#[ test]
217
216
fn test_round_ties_even ( ) {
218
217
assert_approx_eq ! ( 2.5f64 . round_ties_even( ) , 2.0f64 ) ;
Original file line number Diff line number Diff line change 307
307
#![ feature( provide_any) ]
308
308
#![ feature( ptr_as_uninit) ]
309
309
#![ feature( raw_os_nonzero) ]
310
- #![ cfg_attr ( not ( bootstrap ) , feature( round_ties_even) ) ]
310
+ #![ feature( round_ties_even) ]
311
311
#![ feature( slice_internals) ]
312
312
#![ feature( slice_ptr_get) ]
313
313
#![ feature( std_internals) ]
You can’t perform that action at this time.
0 commit comments