Skip to content

Commit a6c60bb

Browse files
committed
Clarify a statement in UB test
1 parent 48f366f commit a6c60bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/ui/consts/const-eval/double_check2.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// check-pass
22

33
// This test exhibits undefined behavior, but it is impossible to prevent generally during
4-
// const eval, even if possible to prevent in the cases here. The reason it's impossible in general
4+
// const eval, even if it could be prevented in the cases here if we added expensive and
5+
// complex checks in rustc.
6+
// The reason it's impossible in general
57
// is that we run into query cycles even *without* UB, just because we're checking for UB.
68
// We do not detect it if you create references to statics
79
// in ways that are UB.

0 commit comments

Comments
 (0)