Skip to content

Commit 9e274d0

Browse files
committed
Apply changes from review from obi1kenobi.
1 parent 99d2aa9 commit 9e274d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/src/reference/semver.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ fn main() {
716716
<a id="repr-align-remove"></a>
717717
#### Major: Removing `repr(align)` from a struct, union, or enum
718718

719-
It is a breaking change to remove `repr(align)` from a struct, union, or enum.
719+
It is a breaking change to remove `repr(align)` from a struct, union, or enum, if their layout was well-defined.
720720
This may change the alignment or layout that external crates are relying on.
721721

722722
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).
@@ -967,7 +967,6 @@ extern "C" {
967967
fn main() {}
968968
```
969969

970-
971970
### Major: adding a private struct field when all current fields are public {#struct-add-private-field-when-public}
972971

973972
When a private field is added to a struct that previously had all public fields,

0 commit comments

Comments
 (0)