diff options
Diffstat (limited to 'src/test/run-pass/packed/packed-struct-optimized-enum.rs')
| -rw-r--r-- | src/test/run-pass/packed/packed-struct-optimized-enum.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/packed/packed-struct-optimized-enum.rs b/src/test/run-pass/packed/packed-struct-optimized-enum.rs index e22e8c26fe5..98772778010 100644 --- a/src/test/run-pass/packed/packed-struct-optimized-enum.rs +++ b/src/test/run-pass/packed/packed-struct-optimized-enum.rs @@ -34,12 +34,12 @@ fn main() { // In #46769, `Option<(Packed<&()>, bool)>` was found to have // pointer alignment, without actually being aligned in size. - // E.g. on 64-bit platforms, it had alignment `8` but size `9`. + // e.g., on 64-bit platforms, it had alignment `8` but size `9`. type PackedRefAndBool<'a> = (Packed<&'a ()>, bool); sanity_check_size::<Option<PackedRefAndBool>>(Some((Packed(&()), true))); // Make sure we don't pay for the enum optimization in size, - // e.g. we shouldn't need extra padding after the packed data. + // e.g., we shouldn't need extra padding after the packed data. assert_eq!(std::mem::align_of::<Option<PackedRefAndBool>>(), 1); assert_eq!(std::mem::size_of::<Option<PackedRefAndBool>>(), std::mem::size_of::<PackedRefAndBool>()); |
