Skip to content

Commit 65fb598

Browse files
author
Lukas Markeffsky
committed
constify exact_div intrinsic
1 parent de073b2 commit 65fb598

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/intrinsics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ extern "rust-intrinsic" {
18511851
/// `x % y != 0` or `y == 0` or `x == T::MIN && y == -1`
18521852
///
18531853
/// This intrinsic does not have a stable counterpart.
1854+
#[rustc_const_unstable(feature = "const_exact_div", issue = "none")]
18541855
pub fn exact_div<T: Copy>(x: T, y: T) -> T;
18551856

18561857
/// Performs an unchecked division, resulting in undefined behavior

core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
#![feature(const_cmp)]
110110
#![feature(const_discriminant)]
111111
#![feature(const_eval_select)]
112+
#![feature(const_exact_div)]
112113
#![feature(const_float_bits_conv)]
113114
#![feature(const_float_classify)]
114115
#![feature(const_fmt_arguments_new)]

0 commit comments

Comments
 (0)