Remove some cfg(not(bootstrap))
This commit is contained in:
parent
f8138110bc
commit
371d57084d
@ -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]
|
||||
|
@ -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);
|
||||
|
@ -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]
|
||||
|
@ -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);
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user