rust/library/core
Samuel Tardieu 37aba8388e
Rollup merge of #143355 - hkBst:cleanup-shift-double-bitmask, r=Mark-Simulacrum
wrapping shift: remove first bitmask and table

```rust
        #[inline(always)]
        pub const fn wrapping_shl(self, rhs: u32) -> Self {
            // SAFETY: the masking by the bitsize of the type ensures that we do not shift
            // out of bounds
            unsafe {
                self.unchecked_shl(rhs & (Self::BITS - 1))
            }
        }
```
already does the bitmask, so it seems unnecessary here.

More context: internals.rust-lang.org/t/wrapping-shift-operator-code-doing-bitmasking-twice/23167
2025-07-16 17:06:38 +02:00
..
src Rollup merge of #143355 - hkBst:cleanup-shift-double-bitmask, r=Mark-Simulacrum 2025-07-16 17:06:38 +02:00
Cargo.toml Add opaque TypeId handles for CTFE 2025-07-09 16:37:11 +00:00