Remove some cfg(not(bootstrap))

This commit is contained in:
Jules Bertholet 2022-11-08 20:11:13 -05:00
parent f8138110bc
commit 371d57084d
No known key found for this signature in database
GPG Key ID: 32034DAFC38C1BFC
5 changed files with 3 additions and 7 deletions

View File

@ -113,8 +113,7 @@ impl f32 {
/// assert_eq!(h.round_ties_even(), 4.0);
/// assert_eq!(i.round_ties_even(), 4.0);
/// ```
#[cfg(not(bootstrap))]
#[cfg_attr(not(bootstrap), rustc_allow_incoherent_impl)]
#[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "round_ties_even", issue = "96710")]
#[inline]

View File

@ -222,7 +222,6 @@ fn test_round() {
assert_approx_eq!((-1.7f32).round(), -2.0f32);
}
#[cfg(not(bootstrap))]
#[test]
fn test_round_ties_even() {
assert_approx_eq!(2.5f32.round_ties_even(), 2.0f32);

View File

@ -113,8 +113,7 @@ impl f64 {
/// assert_eq!(h.round_ties_even(), 4.0);
/// assert_eq!(i.round_ties_even(), 4.0);
/// ```
#[cfg(not(bootstrap))]
#[cfg_attr(not(bootstrap), rustc_allow_incoherent_impl)]
#[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "round_ties_even", issue = "96710")]
#[inline]

View File

@ -212,7 +212,6 @@ fn test_round() {
assert_approx_eq!((-1.7f64).round(), -2.0f64);
}
#[cfg(not(bootstrap))]
#[test]
fn test_round_ties_even() {
assert_approx_eq!(2.5f64.round_ties_even(), 2.0f64);

View File

@ -307,7 +307,7 @@
#![feature(provide_any)]
#![feature(ptr_as_uninit)]
#![feature(raw_os_nonzero)]
#![cfg_attr(not(bootstrap), feature(round_ties_even))]
#![feature(round_ties_even)]
#![feature(slice_internals)]
#![feature(slice_ptr_get)]
#![feature(std_internals)]