diff options
| author | bors <bors@rust-lang.org> | 2020-01-30 08:55:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-30 08:55:07 +0000 |
| commit | c4071d09197e22d2fab8334aa8d30659961bb977 (patch) | |
| tree | b11aad469f216934a900d150d258a3b40f1e5a41 /src/libstd | |
| parent | 3024c4e7396106eacedd7eb94d7b681b3e82f78a (diff) | |
| parent | 61fecfb82fe088af6d3a7832b72f298064398aff (diff) | |
| download | rust-c4071d09197e22d2fab8334aa8d30659961bb977.tar.gz rust-c4071d09197e22d2fab8334aa8d30659961bb977.zip | |
Auto merge of #68325 - faern:move-numeric-consts-to-associated-consts-step1, r=LukasKalbertodt
Move numeric consts to associated consts step1 A subset of #67913. Implements the first step of RFC https://github.com/rust-lang/rfcs/pull/2700 This PR adds the new constants as unstable constants and defines the old ones in terms of the new ones. Then fix a tiny bit of code that started having naming collisions because of the new assoc consts. Removed a test that did not seem relevant any longer. Since doing just `u8::MIN` should now indeed be valid.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index dc93ac90482..bc07c6b487b 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -237,6 +237,7 @@ #![feature(arbitrary_self_types)] #![feature(array_error_internals)] #![feature(asm)] +#![feature(assoc_int_consts)] #![feature(associated_type_bounds)] #![feature(box_syntax)] #![feature(c_variadic)] |
