You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#128918 - scottmcm:tweak-alignment-mir, r=<try>
Try to shrink `Alignment`-related MIR in `Layout`
Noticed all this in <https://rust.godbolt.org/z/55Tx65v4e>:
```rust
_22 = (_11.0: std::ptr::alignment::AlignmentEnum);
_23 = discriminant(_22);
_24 = Ge(_23, const 1_u64);
_25 = Le(_23, const 9223372036854775808_u64);
_26 = BitAnd(move _24, move _25);
assume(move _26);
_20 = _23 as usize (IntToInt);
```
So let's see if a non-`as` here works better.
0 commit comments