diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2025-09-28 14:40:39 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-09-28 15:02:14 -0700 |
| commit | 0c9d0dfe046f0674f0507df564504ac3bac862d9 (patch) | |
| tree | 567c070b8c49c1a7cb75fb3770f12ac4d645ff7e /compiler/rustc_transmute/src/layout/tree.rs | |
| parent | c8905eaa66e0c35a33626e974b9ce6955c739b5b (diff) | |
| download | rust-0c9d0dfe046f0674f0507df564504ac3bac862d9.tar.gz rust-0c9d0dfe046f0674f0507df564504ac3bac862d9.zip | |
remove explicit deref of AbiAlign for most methods
Much of the compiler calls functions on Align projected from AbiAlign. AbiAlign impls Deref to its inner Align, so we can simplify these away. Also, it will minimize disruption when AbiAlign is removed. For now, preserve usages that might resolve to PartialOrd or PartialEq, as those have odd inference.
Diffstat (limited to 'compiler/rustc_transmute/src/layout/tree.rs')
| -rw-r--r-- | compiler/rustc_transmute/src/layout/tree.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_transmute/src/layout/tree.rs b/compiler/rustc_transmute/src/layout/tree.rs index a02e8ecf613..7f626e8c4e8 100644 --- a/compiler/rustc_transmute/src/layout/tree.rs +++ b/compiler/rustc_transmute/src/layout/tree.rs @@ -361,7 +361,7 @@ pub(crate) mod rustc { ty::Ref(region, ty, mutability) => { let layout = layout_of(cx, *ty)?; - let referent_align = layout.align.abi.bytes_usize(); + let referent_align = layout.align.bytes_usize(); let referent_size = layout.size.bytes_usize(); Ok(Tree::Ref(Reference { |
