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 583e475 commit f8afdfeCopy full SHA for f8afdfe
library/core/src/hint.rs
@@ -203,7 +203,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
203
#[doc(alias = "assume")]
204
#[stable(feature = "hint_assert_unchecked", since = "1.81.0")]
205
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "1.81.0")]
206
-#[requires(cond == true)]
+#[requires(cond)]
207
pub const unsafe fn assert_unchecked(cond: bool) {
208
// SAFETY: The caller promised `cond` is true.
209
unsafe {
0 commit comments