Skip to content

Commit 25124fe

Browse files
committed
Add unstably const support for assume intrinsic
1 parent 7878351 commit 25124fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/intrinsics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ extern "rust-intrinsic" {
733733
/// own, or if it does not enable any significant optimizations.
734734
///
735735
/// This intrinsic does not have a stable counterpart.
736+
#[rustc_const_unstable(feature = "const_assume", issue = "76972")]
736737
pub fn assume(b: bool);
737738

738739
/// Hints to the compiler that branch condition is likely to be true.

0 commit comments

Comments
 (0)