Skip to content

Commit

Permalink
Apply suggestions from obi1kenobi
Browse files Browse the repository at this point in the history
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
  • Loading branch information
ehuss and obi1kenobi committed Aug 6, 2023
1 parent e347888 commit ae5cb5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/doc/src/reference/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ fn main() {
<a id="repr-align-remove"></a>
#### 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).
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ae5cb5f

Please sign in to comment.