]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 1 Jul 2020 14:42:52 +0000 (07:42 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2020 14:42:52 +0000 (07:42 -0700)
commitec41d01d4f7c668a75eff1ba724b8a67c7ec90b4
tree8418d77e0d1dcb6cf2dfba9c1a951f7a3b7e0a60
parentd6bee55855093d86c7e110116beebb369cd89654
parent8b43012453de32d4e429c923171131f938d3ead8
Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk

Make `likely` and `unlikely` const, gated by feature `const_unlikely`

This PR also contains a fix to allow `#[allow_internal_unstable]` to work properly with `#[rustc_const_unstable]`.

cc @RalfJung @nagisa

r? @oli-obk
src/libcore/intrinsics.rs
src/libcore/lib.rs
src/librustc_mir/interpret/intrinsics.rs
src/librustc_mir/transform/check_consts/validation.rs
src/librustc_mir/transform/qualify_min_const_fn.rs
src/librustc_span/symbol.rs