about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/definitions.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-03-30 14:47:07 +0000
committerbors <bors@rust-lang.org>2025-03-30 14:47:07 +0000
commit46424fb5054f211ec836c5c03159f92e46bb35ac (patch)
tree8aef46b01dc3ec2e349b98bf4739b1236cc5ec06 /compiler/rustc_hir/src/definitions.rs
parent45b40a75966b36d3588f173441896fddad01cd80 (diff)
parentf86a71dfbf35b36b1ce439f65dfe51f591688393 (diff)
downloadrust-46424fb5054f211ec836c5c03159f92e46bb35ac.tar.gz
rust-46424fb5054f211ec836c5c03159f92e46bb35ac.zip
Auto merge of #138206 - amy-kwan:amy-kwan/reprc-struct-power-align-ignore-packed-align, r=workingjubilee
[AIX] Ignore linting on repr(C) structs with repr(packed) or repr(align(n))

This PR updates the lint added in 9b40bd7 to ignore repr(C) structs that also have repr(packed) or repr(align(n)).

As these representations can be modifiers on repr(C), it is assumed that users that add these should know what they are doing, and thus the the lint should not warn on the respective structs. For example, for the time being, using repr(packed) and manually padding a repr(C) struct can be done to correctly align struct members on AIX.
Diffstat (limited to 'compiler/rustc_hir/src/definitions.rs')
0 files changed, 0 insertions, 0 deletions