Skip to content

Commit ae5cb5f

Browse files
ehussobi1kenobi
andauthored
Apply suggestions from obi1kenobi
Co-authored-by: Predrag Gruevski <[email protected]>
1 parent e347888 commit ae5cb5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/doc/src/reference/semver.md

Lines changed: 1 addition & 3 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).
@@ -966,8 +966,6 @@ extern "C" {
966966
967967
fn main() {}
968968
```
969-
970-
971969
### Major: adding a private struct field when all current fields are public {#struct-add-private-field-when-public}
972970

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

0 commit comments

Comments
 (0)