We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f366f commit a6c60bbCopy full SHA for a6c60bb
src/test/ui/consts/const-eval/double_check2.rs
@@ -1,7 +1,9 @@
1
// check-pass
2
3
// 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
+// 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
7
// is that we run into query cycles even *without* UB, just because we're checking for UB.
8
// We do not detect it if you create references to statics
9
// in ways that are UB.
0 commit comments