diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-10-22 19:42:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-22 19:42:42 +0900 |
| commit | 918f9cc88bf71db79067af325ca00d8cba7309b6 (patch) | |
| tree | 8b065561ea4673426143986f678523de9a3ce274 /library/std/src/lib.rs | |
| parent | d91e9b7d772c6b9d2df9556983b28707e30f7b00 (diff) | |
| parent | 0dba9d0e424eeded14f891eb3e01575fcb9e580a (diff) | |
| download | rust-918f9cc88bf71db79067af325ca00d8cba7309b6.tar.gz rust-918f9cc88bf71db79067af325ca00d8cba7309b6.zip | |
Rollup merge of #88624 - kellerkindt:master, r=JohnTitor
Stabilize feature `saturating_div` for rust 1.58.0 The tracking issue is #89381 This seems like a reasonable simple change(?). The feature `saturating_div` was added as part of the ongoing effort to implement a `Saturating` integer type (see #87921). The implementation has been discussed [here](https://github.com/rust-lang/rust/pull/87921#issuecomment-899357720) and [here](https://github.com/rust-lang/rust/pull/87921#discussion_r691888556). It extends the list of saturating operations on integer types (like `saturating_add`, `saturating_sub`, `saturating_mul`, ...) by the function `fn saturating_div(self, rhs: Self) -> Self`. The stabilization of the feature `saturating_int_impl` (for the `Saturating` type) needs to have this stabilized first. Closes #89381
Diffstat (limited to 'library/std/src/lib.rs')
| -rw-r--r-- | library/std/src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 1d2d26b8f00..e22748a4c8d 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -324,7 +324,6 @@ #![feature(ptr_internals)] #![feature(rustc_attrs)] #![feature(rustc_private)] -#![feature(saturating_div)] #![feature(saturating_int_impl)] #![feature(slice_concat_ext)] #![feature(slice_internals)] |
