Skip to content

Commit f8afdfe

Browse files
authored
Update library/core/src/hint.rs
1 parent 583e475 commit f8afdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
203203
#[doc(alias = "assume")]
204204
#[stable(feature = "hint_assert_unchecked", since = "1.81.0")]
205205
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "1.81.0")]
206-
#[requires(cond == true)]
206+
#[requires(cond)]
207207
pub const unsafe fn assert_unchecked(cond: bool) {
208208
// SAFETY: The caller promised `cond` is true.
209209
unsafe {

0 commit comments

Comments
 (0)