From ae5cb5f9ebe51999e2c8b8c3c161aac5c84ad014 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 6 Aug 2023 09:02:43 -0700 Subject: [PATCH] Apply suggestions from obi1kenobi Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> --- src/doc/src/reference/semver.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index 17280190727c..7e5fe6c4788d 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -716,7 +716,7 @@ fn main() { #### Major: Removing `repr(align)` from a struct, union, or enum -It is a breaking change to remove `repr(align)` from a struct, union, or enum. +It is a breaking change to remove `repr(align)` from a struct, union, or enum, if their layout was well-defined. This may change the alignment or layout that external crates are relying on. This change should be safe to make if the type is not well-defined as discussed in [type layout](#type-layout) (such as having any private fields and having an undocumented alignment). @@ -966,8 +966,6 @@ extern "C" { fn main() {} ``` - - ### Major: adding a private struct field when all current fields are public {#struct-add-private-field-when-public} When a private field is added to a struct that previously had all public fields,