diff options
| author | Urgau <urgau@numericable.fr> | 2024-12-15 16:17:05 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-01-27 18:10:32 +0100 |
| commit | 5914fb779ff22ca2e58f78bace7176c5fccbd788 (patch) | |
| tree | 54627321bcba9050e3b2d1edb974c1610248c6d0 /library/core/src | |
| parent | f753850659bdf5788332525f3fe395685929c682 (diff) | |
| download | rust-5914fb779ff22ca2e58f78bace7176c5fccbd788.tar.gz rust-5914fb779ff22ca2e58f78bace7176c5fccbd788.zip | |
Stabilize `num_midpoint_signed` feature
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/num/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs index 6c1b568e231..b479b8502a8 100644 --- a/library/core/src/num/mod.rs +++ b/library/core/src/num/mod.rs @@ -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] |
