We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9942dd7 commit 1867394Copy full SHA for 1867394
library/core/src/intrinsics.rs
@@ -2573,7 +2573,10 @@ extern "rust-intrinsic" {
2573
/// macro expansion.
2574
///
2575
/// This always returns `false` in const eval and Miri. The interpreter provides better
2576
- /// diagnostics than the checks that this is used to implement.
+ /// diagnostics than the checks that this is used to implement. However, this means
2577
+ /// you should only be using this intrinsic to guard requirements that, if violated,
2578
+ /// immediately lead to UB. Otherwise, const-eval and Miri will miss out on those
2579
+ /// checks entirely.
2580
2581
/// Since this is evaluated after monomorphization, branching on this value can be used to
2582
/// implement debug assertions that are included in the precompiled standard library, but can
0 commit comments