diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-02-07 14:08:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-07 14:08:32 +0000 |
| commit | e3c972e2524319a1eec1bf905bf8aafa5cda7218 (patch) | |
| tree | 23cdcfef415cbec0444e6d85ec8b387ab1d56315 /library/std/src/sys/windows/stack_overflow_uwp.rs | |
| parent | 8219ad4fac6728a87a8fdbf4eb6e4f696e60c230 (diff) | |
| parent | 14ff58cd862e3dff8d87e445932d37116924aeb2 (diff) | |
| download | rust-e3c972e2524319a1eec1bf905bf8aafa5cda7218.tar.gz rust-e3c972e2524319a1eec1bf905bf8aafa5cda7218.zip | |
Rollup merge of #93208 - kellerkindt:wrapping_int_assign_impl, r=m-ou-se
Impl {Add,Sub,Mul,Div,Rem,BitXor,BitOr,BitAnd}Assign<$t> for Wrapping<$t> for rust 1.60.0
Tracking issue #93204
This is about adding basic integer operations to the `Wrapping` type:
```rust
let mut value = Wrapping(2u8);
value += 3u8;
value -= 1u8;
value *= 2u8;
value /= 2u8;
value %= 2u8;
value ^= 255u8;
value |= 123u8;
value &= 2u8;
```
Because this adds stable impls on a stable type, it runs into the following issue if an `#[unstable(...)]` attribute is used:
```
an `#[unstable]` annotation here has no effect
note: see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information
```
This means - if I understood this correctly - the new impls have to be stabilized instantly.
Which in turn means, this PR has to kick of an FCP on the tracking issue as well?
This impl is analog to 1c0dc1810d778bb6fea16aac02cafc5aa2e84b11 #92356 for the `Saturating` type ``@dtolnay`` ``@Mark-Simulacrum``
Diffstat (limited to 'library/std/src/sys/windows/stack_overflow_uwp.rs')
0 files changed, 0 insertions, 0 deletions
