Skip to content

Commit 371d570

Browse files
Remove some cfg(not(bootstrap))
1 parent f813811 commit 371d570

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

library/std/src/f32.rs

+1-2
Original file line numberDiff line numberDiff 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]

library/std/src/f32/tests.rs

-1
Original file line numberDiff line numberDiff 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]
227226
fn test_round_ties_even() {
228227
assert_approx_eq!(2.5f32.round_ties_even(), 2.0f32);

library/std/src/f64.rs

+1-2
Original file line numberDiff line numberDiff 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]

library/std/src/f64/tests.rs

-1
Original file line numberDiff line numberDiff 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]
217216
fn test_round_ties_even() {
218217
assert_approx_eq!(2.5f64.round_ties_even(), 2.0f64);

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
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)]

0 commit comments

Comments
 (0)