Files
rust/compiler/rustc_mir_transform/src
Stuart Cook 826c462c32 Rollup merge of #144566 - scottmcm:align-of-slice, r=oli-obk
Simplify `align_of_val::<[T]>(…)` → `align_of::<T>()`

I spotted this while working on the inliner (rust-lang/rust#144561).  In particular, if [`Layout::for_value`](https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.for_value) inlines, then it can be pretty easy to end up with an `align_of_val::<[T]>` today (demo: <https://rust.godbolt.org/z/Tesnscj4a>) where we can save at least a block, if not more, by using the version that's an rvalue and not a call.
2025-07-29 23:50:35 +10:00
..
2025-07-21 08:08:41 +00:00
2025-04-24 11:36:07 +10:00
2025-07-23 23:54:37 +00:00
2025-06-29 20:13:36 +08:00
2025-07-01 19:00:21 +00:00
2025-07-28 09:53:50 -05:00
2025-02-22 00:13:19 +00:00
2025-07-27 13:21:06 -07:00