Skip to content

Commit 58aef64

Browse files
ehussthe8472
andcommitted
Add "reordering" to list of changes.
Co-authored-by: the8472 <[email protected]>
1 parent 9e274d0 commit 58aef64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/reference/semver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ The compiler is free to alter the alignment, layout or size, so code should not
218218
219219
Some examples of changes that are not a breaking change are (assuming no other rules in this guide are violated):
220220

221-
* Adding, removing, or changing fields of a default representation struct, union, or enum in such a way that the change follows the other rules in this guide (for example, using `non_exhaustive` to allow those changes, or changes to private fields that are already private).
221+
* Adding, removing, reordering, or changing fields of a default representation struct, union, or enum in such a way that the change follows the other rules in this guide (for example, using `non_exhaustive` to allow those changes, or changes to private fields that are already private).
222222
See [struct-add-private-field-when-public](#struct-add-private-field-when-public), [struct-add-public-field-when-no-private](#struct-add-public-field-when-no-private), [struct-private-fields-with-private](#struct-private-fields-with-private), [enum-fields-new](#enum-fields-new).
223223
* Adding variants to a default representation enum, if the enum uses `non_exhaustive`.
224224
This may change the alignment or size of the enumeration, but those are not well-defined.
225225
See [enum-variant-new](#enum-variant-new).
226-
* Adding, removing, or changing private fields of a `repr(C)` struct, union, or enum, following the other rules in this guide (for example, using `non_exhaustive`, or adding private fields when other private fields already exist).
226+
* Adding, removing, reordering, or changing private fields of a `repr(C)` struct, union, or enum, following the other rules in this guide (for example, using `non_exhaustive`, or adding private fields when other private fields already exist).
227227
See [repr-c-private-change](#repr-c-private-change).
228228
* Adding variants to a `repr(C)` enum, if the enum uses `non_exhastive`.
229229
See [repr-c-enum-variant-new](#repr-c-enum-variant-new).

0 commit comments

Comments
 (0)