You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/reference/semver.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -218,12 +218,12 @@ The compiler is free to alter the alignment, layout or size, so code should not
218
218
219
219
Some examples of changes that are not a breaking change are (assuming no other rules in this guide are violated):
220
220
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).
222
222
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).
223
223
* Adding variants to a default representation enum, if the enum uses `non_exhaustive`.
224
224
This may change the alignment or size of the enumeration, but those are not well-defined.
225
225
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).
227
227
See [repr-c-private-change](#repr-c-private-change).
228
228
* Adding variants to a `repr(C)` enum, if the enum uses `non_exhastive`.
229
229
See [repr-c-enum-variant-new](#repr-c-enum-variant-new).
0 commit comments