about summary refs log tree commit diff
path: root/clippy_lints/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-05-21 14:07:02 +0200
committerRalf Jung <post@ralfj.de>2024-05-21 19:22:04 +0200
commita14ca6005c991596a8a0ec2bd9b3ccebdf05942e (patch)
treeed881234687af2d42c3d2d99223a0939a58b5708 /clippy_lints/src
parentacf38f84661d78bae3cf9d3ed03ef1dfab503ad7 (diff)
downloadrust-a14ca6005c991596a8a0ec2bd9b3ccebdf05942e.tar.gz
rust-a14ca6005c991596a8a0ec2bd9b3ccebdf05942e.zip
don't inhibit random field reordering on repr(packed(1))
Diffstat (limited to 'clippy_lints/src')
-rw-r--r--clippy_lints/src/transmute/transmute_undefined_repr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/transmute/transmute_undefined_repr.rs b/clippy_lints/src/transmute/transmute_undefined_repr.rs
index 9c8dd37d53d..3b32e4396b9 100644
--- a/clippy_lints/src/transmute/transmute_undefined_repr.rs
+++ b/clippy_lints/src/transmute/transmute_undefined_repr.rs
@@ -278,7 +278,7 @@ fn reduce_ty<'tcx>(cx: &LateContext<'tcx>, mut ty: Ty<'tcx>) -> ReducedTy<'tcx>
                     ty = sized_ty;
                     continue;
                 }
-                if def.repr().inhibit_struct_field_reordering_opt() {
+                if def.repr().inhibit_struct_field_reordering() {
                     ReducedTy::OrderedFields(Some(sized_ty))
                 } else {
                     ReducedTy::UnorderedFields(ty)