Stabilize num_midpoint_signed feature
This commit is contained in:
parent
f753850659
commit
5914fb779f
2 changed files with 4 additions and 5 deletions
|
|
@ -163,14 +163,14 @@ macro_rules! midpoint_impl {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(num_midpoint_signed)]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(4), 2);")]
|
||||
#[doc = concat!("assert_eq!((-1", stringify!($SelfT), ").midpoint(2), 0);")]
|
||||
#[doc = concat!("assert_eq!((-7", stringify!($SelfT), ").midpoint(0), -3);")]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(-7), -3);")]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(7), 3);")]
|
||||
/// ```
|
||||
#[unstable(feature = "num_midpoint_signed", issue = "110840")]
|
||||
#[stable(feature = "num_midpoint_signed", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "num_midpoint_signed", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
|
@ -215,14 +215,14 @@ macro_rules! midpoint_impl {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(num_midpoint_signed)]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(4), 2);")]
|
||||
#[doc = concat!("assert_eq!((-1", stringify!($SelfT), ").midpoint(2), 0);")]
|
||||
#[doc = concat!("assert_eq!((-7", stringify!($SelfT), ").midpoint(0), -3);")]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(-7), -3);")]
|
||||
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(7), 3);")]
|
||||
/// ```
|
||||
#[unstable(feature = "num_midpoint_signed", issue = "110840")]
|
||||
#[stable(feature = "num_midpoint_signed", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "num_midpoint_signed", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@
|
|||
#![feature(maybe_uninit_write_slice)]
|
||||
#![feature(min_specialization)]
|
||||
#![feature(never_type)]
|
||||
#![feature(num_midpoint_signed)]
|
||||
#![feature(numfmt)]
|
||||
#![feature(pattern)]
|
||||
#![feature(pointer_is_aligned_to)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue