about summary refs log tree commit diff
path: root/src/libcore/lib.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-06-03 18:18:03 -0600
committerGitHub <noreply@github.com>2018-06-03 18:18:03 -0600
commitb35c60e95e99a02fdc3ce57121aad558164b0f76 (patch)
tree1b0849d28039a5fb9b2a62c50261030c9a8a6253 /src/libcore/lib.rs
parentdf137907560e43b21bb598116ccd1adb073b2b4c (diff)
parent8b5f962762b500a1428e9d6937d964922a233fa1 (diff)
downloadrust-b35c60e95e99a02fdc3ce57121aad558164b0f76.tar.gz
rust-b35c60e95e99a02fdc3ce57121aad558164b0f76.zip
Rollup merge of #51299 - faern:const-int-ops, r=oli-obk
const fn integer operations

A follow up to #51171
Fixes #51267

Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See #51267 for a discussion about why this is wanted and the solution used.
Diffstat (limited to 'src/libcore/lib.rs')
-rw-r--r--src/libcore/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index e6ab64a3312..b27552651a0 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -81,6 +81,7 @@
 #![feature(cfg_target_has_atomic)]
 #![feature(concat_idents)]
 #![feature(const_fn)]
+#![feature(const_int_ops)]
 #![feature(core_float)]
 #![feature(custom_attribute)]
 #![feature(doc_cfg)]