Skip to content

Commit

Permalink
Auto merge of rust-lang#53697 - Cyres:const-fn-int-ops, r=oli-obk
Browse files Browse the repository at this point in the history
Add more const int ops

r? @oli-obk

Tracking Issue: rust-lang#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`
  • Loading branch information
bors committed Sep 3, 2018
2 parents ee73f80 + 4811e5b commit cd5c26f
Show file tree
Hide file tree
Showing 20 changed files with 1,033 additions and 58 deletions.
7 changes: 7 additions & 0 deletions src/libcore/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
#![feature(const_slice_len)]
#![feature(const_str_as_bytes)]
#![feature(const_str_len)]
#![feature(const_let)]
#![feature(const_int_rotate)]
#![feature(const_int_wrapping)]
#![feature(const_int_sign)]
#![feature(const_int_conversion)]
#![feature(const_transmute)]
#![feature(reverse_bits)]
#![feature(non_exhaustive)]

#[prelude_import]
Expand Down
Loading

0 comments on commit cd5c26f

Please sign in to comment.