File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ pub trait LayoutCalculator {
251
251
// If all the non-ZST fields have the same ABI and union ABI optimizations aren't
252
252
// disabled, we can use that common ABI for the union as a whole.
253
253
struct AbiMismatch ;
254
- let mut common_non_zst_abi_and_align = if repr. inhibit_union_abi_opt ( ) {
254
+ let mut common_non_zst_abi_and_align = if repr. inhibits_union_abi_opt ( ) {
255
255
// Can't optimize
256
256
Err ( AbiMismatch )
257
257
} else {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ impl ReprOptions {
155
155
}
156
156
157
157
/// Returns `true` if this `#[repr()]` should inhibit union ABI optimisations.
158
- pub fn inhibit_union_abi_opt ( & self ) -> bool {
158
+ pub fn inhibits_union_abi_opt ( & self ) -> bool {
159
159
self . c ( )
160
160
}
161
161
}
You can’t perform that action at this time.
0 commit comments