diff options
| author | bors <bors@rust-lang.org> | 2019-01-12 02:00:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-12 02:00:18 +0000 |
| commit | 0c91f3d97fe78d31c8cf3abb1858c65d73c6aa17 (patch) | |
| tree | ef5057d474b09cc69205de7056d193c1f861b049 /src/libcore/lib.rs | |
| parent | b43986184b8f4e0d633e8ae1704f0e19aec30cb2 (diff) | |
| parent | 14be8a7f14fdcc4d146efc7501be9933e0a817b0 (diff) | |
| download | rust-0c91f3d97fe78d31c8cf3abb1858c65d73c6aa17.tar.gz rust-0c91f3d97fe78d31c8cf3abb1858c65d73c6aa17.zip | |
Auto merge of #57234 - Centril:const-stabilizations-2, r=oli-obk
Const-stabilize `const_int_ops` + `const_ip`
r? @oli-obk
## Note for relnotes: This PR includes https://github.com/rust-lang/rust/pull/57105.
I've added T-lang since this affects intrinsics and the operational semantics of Rust's `const fn` fragment.
## Stable APIs proposed for constification
+ `const_int_ops`:
+ `count_ones`
+ `count_zeros`
+ `leading_zeros`
+ `trailing_zeros`
+ `swap_bytes`
+ `from_be`
+ `from_le`
+ `to_be`
+ `to_le`
+ `const_ip`
+ `Ipv4Addr::new`
## Unstable APIs constified
+ `const_int_conversion`:
+ `reverse_bits`
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index b2cafc4cede..a5f20d08e47 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -71,7 +71,7 @@ #![feature(cfg_target_has_atomic)] #![feature(concat_idents)] #![feature(const_fn)] -#![feature(const_int_ops)] +#![cfg_attr(stage0, feature(const_int_ops))] #![feature(const_fn_union)] #![feature(custom_attribute)] #![feature(doc_cfg)] @@ -114,9 +114,7 @@ #![feature(const_slice_len)] #![feature(const_str_as_bytes)] #![feature(const_str_len)] -#![feature(const_int_rotate)] -#![feature(const_int_wrapping)] -#![feature(const_int_sign)] +#![cfg_attr(stage0, feature(const_int_rotate))] #![feature(const_int_conversion)] #![feature(const_transmute)] #![feature(reverse_bits)] |
