Skip to content

Commit

Permalink
Rollup merge of rust-lang#51299 - faern:const-int-ops, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mark-Simulacrum authored Jun 4, 2018
2 parents df13790 + 8b5f962 commit b35c60e
Show file tree
Hide file tree
Showing 3 changed files with 313 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/libcore/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
Loading

0 comments on commit b35c60e

Please sign in to comment.