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: rfcs/0000-const-ub.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Other kinds of UB might or might not be detected:
45
45
* Dereferencing unaligned pointers.
46
46
* Violating Rust's aliasing rules.
47
47
* Producing an invalid value (but not using it in one of the ways defined above).
48
-
*Anything[other UB][UB] not listed here.
48
+
*Any[other UB][UB] not listed here.
49
49
50
50
All of this UB has in common that there is an "obvious" way to continue evaluation even though the program has caused UB:
51
51
we can just access the underlying memory despite alignment and/or aliasing rules being violated, and we can just ignore the existence of an invalid value as long as it is not used in some arithmetic, logical or control-flow operation.
0 commit comments