Remove some cfg(not(bootstrap))
This commit is contained in:
parent
f8138110bc
commit
371d57084d
5 changed files with 3 additions and 7 deletions
|
@ -113,8 +113,7 @@ impl f32 {
|
||||||
/// assert_eq!(h.round_ties_even(), 4.0);
|
/// assert_eq!(h.round_ties_even(), 4.0);
|
||||||
/// assert_eq!(i.round_ties_even(), 4.0);
|
/// assert_eq!(i.round_ties_even(), 4.0);
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(not(bootstrap))]
|
#[rustc_allow_incoherent_impl]
|
||||||
#[cfg_attr(not(bootstrap), rustc_allow_incoherent_impl)]
|
|
||||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||||
#[unstable(feature = "round_ties_even", issue = "96710")]
|
#[unstable(feature = "round_ties_even", issue = "96710")]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -222,7 +222,6 @@ fn test_round() {
|
||||||
assert_approx_eq!((-1.7f32).round(), -2.0f32);
|
assert_approx_eq!((-1.7f32).round(), -2.0f32);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(bootstrap))]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_round_ties_even() {
|
fn test_round_ties_even() {
|
||||||
assert_approx_eq!(2.5f32.round_ties_even(), 2.0f32);
|
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!(h.round_ties_even(), 4.0);
|
||||||
/// assert_eq!(i.round_ties_even(), 4.0);
|
/// assert_eq!(i.round_ties_even(), 4.0);
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(not(bootstrap))]
|
#[rustc_allow_incoherent_impl]
|
||||||
#[cfg_attr(not(bootstrap), rustc_allow_incoherent_impl)]
|
|
||||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||||
#[unstable(feature = "round_ties_even", issue = "96710")]
|
#[unstable(feature = "round_ties_even", issue = "96710")]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -212,7 +212,6 @@ fn test_round() {
|
||||||
assert_approx_eq!((-1.7f64).round(), -2.0f64);
|
assert_approx_eq!((-1.7f64).round(), -2.0f64);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(bootstrap))]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_round_ties_even() {
|
fn test_round_ties_even() {
|
||||||
assert_approx_eq!(2.5f64.round_ties_even(), 2.0f64);
|
assert_approx_eq!(2.5f64.round_ties_even(), 2.0f64);
|
||||||
|
|
|
@ -307,7 +307,7 @@
|
||||||
#![feature(provide_any)]
|
#![feature(provide_any)]
|
||||||
#![feature(ptr_as_uninit)]
|
#![feature(ptr_as_uninit)]
|
||||||
#![feature(raw_os_nonzero)]
|
#![feature(raw_os_nonzero)]
|
||||||
#![cfg_attr(not(bootstrap), feature(round_ties_even))]
|
#![feature(round_ties_even)]
|
||||||
#![feature(slice_internals)]
|
#![feature(slice_internals)]
|
||||||
#![feature(slice_ptr_get)]
|
#![feature(slice_ptr_get)]
|
||||||
#![feature(std_internals)]
|
#![feature(std_internals)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue