Skip to content

Commit e1a29a7

Browse files
committed
more precise wording
1 parent 5045d5f commit e1a29a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/0000-const-ub.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ The following kinds of UB are detected by CTFE, and will cause compilation to st
4545

4646
These kinds of UB have in common that there is nothing sensible evaluation can do besides stopping with an error.
4747

48-
Other kinds of UB might or might not be detected:
48+
Other kinds of UB might or might not be detected depending on the implementation:
4949
* Dereferencing unaligned pointers.
5050
* Violating Rust's aliasing rules.
5151
* Producing an invalid value (but not using it in one of the ways defined above).
5252
* Any [other UB][UB] not listed here.
5353

54+
Implementations should document which of these kinds of UB they detect.
5455
In rustc, none of this UB will be detected for now.
5556
However, code causing any kind of UB is still considered buggy and not subject to stability guarantees.
5657
Hence, rustc may start detecting more UB in the future.

0 commit comments

Comments
 (0)