]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68325 - faern:move-numeric-consts-to-associated-consts-step1, r=LukasK...
authorbors <bors@rust-lang.org>
Thu, 30 Jan 2020 08:55:07 +0000 (08:55 +0000)
committerbors <bors@rust-lang.org>
Thu, 30 Jan 2020 08:55:07 +0000 (08:55 +0000)
commitc4071d09197e22d2fab8334aa8d30659961bb977
treeb11aad469f216934a900d150d258a3b40f1e5a41
parent3024c4e7396106eacedd7eb94d7b681b3e82f78a
parent61fecfb82fe088af6d3a7832b72f298064398aff
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.
src/libcore/num/mod.rs