We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e875391 commit ea7545bCopy full SHA for ea7545b
compiler/rustc_abi/src/lib.rs
@@ -138,14 +138,8 @@ impl ReprOptions {
138
}
139
140
/// Returns `true` if this `#[repr()]` should inhibit struct field reordering
141
- /// optimizations, such as with `repr(C)`, `repr(packed(1))`, or `repr(<int>)`.
+ /// optimizations, such as with `repr(C)` or `repr(<int>)`.
142
pub fn inhibit_struct_field_reordering_opt(&self) -> bool {
143
- if let Some(pack) = self.pack {
144
- if pack.bytes() == 1 {
145
- return true;
146
- }
147
148
-
149
self.flags.intersects(ReprFlags::IS_UNOPTIMISABLE) || self.int.is_some()
150
151
0 commit comments