Skip to content

Commit a90a538

Browse files
committed
clarify
1 parent e1a29a7 commit a90a538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-const-ub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ This RFC provides an easy way forward for "unconst" operations, i.e., operations
129129
Primary examples of such operations are anything involving the integer representation of pointers, which cannot be known at compile-time.
130130
If this RFC were accepted, we could declare such operations "definitely detected UB" during CTFE (and thus naturally they would only be permitted in an `unsafe` block).
131131

132-
If UB checks turn out to be expensive, we could consider adding a flag to let users opt-out of UB checking.
132+
If UB checks turn out to be expensive, the RFC leaves the option of adding a flag to let users opt-out of UB checking.
133133
This will speed up compilation, and not change behavior of correct code.
134134

135135
The RFC clarifies that there is no *guarantee* that code with UB is evaluated in any particular way, so if we want to detect more UB during CTFE in the future, we are free to do so from a stability perspective.

0 commit comments

Comments
 (0)