Skip to content

Commit b35c60e

Browse files
Rollup merge of rust-lang#51299 - faern:const-int-ops, r=oli-obk
const fn integer operations A follow up to rust-lang#51171 Fixes rust-lang#51267 Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See rust-lang#51267 for a discussion about why this is wanted and the solution used.
2 parents df13790 + 8b5f962 commit b35c60e

File tree

3 files changed

+313
-14
lines changed

3 files changed

+313
-14
lines changed

Diff for: src/libcore/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
#![feature(cfg_target_has_atomic)]
8282
#![feature(concat_idents)]
8383
#![feature(const_fn)]
84+
#![feature(const_int_ops)]
8485
#![feature(core_float)]
8586
#![feature(custom_attribute)]
8687
#![feature(doc_cfg)]

0 commit comments

Comments
 (0)