1
Fork 0

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.
This commit is contained in:
Michael Watzko 2023-07-26 22:30:29 +02:00
parent 0eb41335e2
commit ad54426945
6 changed files with 94 additions and 103 deletions

View file

@ -12,7 +12,7 @@ mod tests;
#[cfg(test)]
mod benches;
#[unstable(feature = "saturating_int_impl", issue = "87920")]
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
pub use core::num::Saturating;
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::num::Wrapping;