about summary refs log tree commit diff
path: root/compiler/rustc_transmute
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2025-08-22 12:31:34 +0100
committerlcnr <rust@lcnr.de>2025-09-09 14:49:16 +0200
commit332d8d62356a1be77bfe6412ab5ed3fa33ae9af6 (patch)
tree2126c8116ca7e3c3ae2eb529e045e76c16aaa736 /compiler/rustc_transmute
parente379c7758667f900aaf5551c4553c7d4c121e3e1 (diff)
downloadrust-332d8d62356a1be77bfe6412ab5ed3fa33ae9af6.tar.gz
rust-332d8d62356a1be77bfe6412ab5ed3fa33ae9af6.zip
Driveby fixes
Diffstat (limited to 'compiler/rustc_transmute')
-rw-r--r--compiler/rustc_transmute/src/layout/tree.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_transmute/src/layout/tree.rs b/compiler/rustc_transmute/src/layout/tree.rs
index 406a1b5746f..d7ea26a2ab1 100644
--- a/compiler/rustc_transmute/src/layout/tree.rs
+++ b/compiler/rustc_transmute/src/layout/tree.rs
@@ -426,9 +426,7 @@ pub(crate) mod rustc {
             assert!(def.is_enum());
 
             // Computes the layout of a variant.
-            let layout_of_variant = |index,
-                                     encoding: Option<TagEncoding<VariantIdx>>|
-             -> Result<Self, Err> {
+            let layout_of_variant = |index, encoding: Option<_>| -> Result<Self, Err> {
                 let variant_layout = ty_variant(cx, (ty, layout), index);
                 if variant_layout.is_uninhabited() {
                     return Ok(Self::uninhabited());