Skip to content

Commit ad54426

Browse files
committed
Stabilize the Saturating type (saturating_int_impl, gh-87920)
Also stabilizes saturating_int_assign_impl, gh-92354. And also make pub fns const where the underlying saturating_* fns became const in the meantime since the Saturating type was created.
1 parent 0eb4133 commit ad54426

File tree

6 files changed

+94
-103
lines changed

6 files changed

+94
-103
lines changed

library/alloc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
#![feature(ptr_metadata)]
145145
#![feature(ptr_sub_ptr)]
146146
#![feature(receiver_trait)]
147-
#![feature(saturating_int_impl)]
148147
#![feature(set_ptr_value)]
149148
#![feature(sized_type_properties)]
150149
#![feature(slice_from_ptr_range)]

library/core/src/num/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ mod uint_macros; // import uint_impl!
4444
mod error;
4545
mod int_log10;
4646
mod nonzero;
47-
#[unstable(feature = "saturating_int_impl", issue = "87920")]
4847
mod saturating;
4948
mod wrapping;
5049

51-
#[unstable(feature = "saturating_int_impl", issue = "87920")]
50+
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
5251
pub use saturating::Saturating;
5352
#[stable(feature = "rust1", since = "1.0.0")]
5453
pub use wrapping::Wrapping;

0 commit comments

Comments
 (0)