Skip to content

Commit cd5c26f

Browse files
committed
Auto merge of #53697 - Cyres:const-fn-int-ops, r=oli-obk
Add more const int ops r? @oli-obk Tracking Issue: #53718 list of `const fn`s in this PR: - `feature = const_int_rotate` - `rotate_left` - `rotate_right` - `feature = const_int_wrapping` - `wrapping_add` - `wrapping_sub` - `wrapping_mul` - `wrapping_shl` - `wrapping_shr` - `feature = const_int_overflowing` - `overflowing_add` - `overflowing_sub` - `overflowing_mul` - `overflowing_shl` - `overflowing_shr` - `feature = const_int_sign` - `is_positive` - `is_negative` - `feature = const_int_conversion` - `reverse_bits` - `to_le_bytes` - `to_ne_bytes` - `from_be_bytes` - `from_le_bytes` - `from_ne_bytes` - `reverse_bits`
2 parents ee73f80 + 4811e5b commit cd5c26f

20 files changed

+1033
-58
lines changed

src/libcore/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@
120120
#![feature(const_slice_len)]
121121
#![feature(const_str_as_bytes)]
122122
#![feature(const_str_len)]
123+
#![feature(const_let)]
124+
#![feature(const_int_rotate)]
125+
#![feature(const_int_wrapping)]
126+
#![feature(const_int_sign)]
127+
#![feature(const_int_conversion)]
128+
#![feature(const_transmute)]
129+
#![feature(reverse_bits)]
123130
#![feature(non_exhaustive)]
124131

125132
#[prelude_import]

0 commit comments

Comments
 (0)