]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53604 - oli-obk:min_const_fn, r=Centril,varkor
authorbors <bors@rust-lang.org>
Sat, 1 Sep 2018 11:26:24 +0000 (11:26 +0000)
committerbors <bors@rust-lang.org>
Sat, 1 Sep 2018 11:26:24 +0000 (11:26 +0000)
commitfea32f1b775b3f37fc4abfa6391c1bebe48af9d1
treeab51afef12f740e9b7e2ffd7595ce0869c7e45a1
parente6381a7f37402dd5f346256b3773ae2e72853fc3
parent2839f4f0e8d58c295e146999961b78e2cc47354f
Auto merge of #53604 - oli-obk:min_const_fn, r=Centril,varkor

Implement the `min_const_fn` feature gate

cc @RalfJung @eddyb

r? @Centril

implements the feature gate for #53555

I added a hack so the `const_fn` feature gate also enables the `min_const_fn` feature gate. This ensures that nightly users of `const_fn` don't have to touch their code at all.

The `min_const_fn` checks are run first, and if they succeeded, the `const_fn` checks are run additionally to ensure we didn't miss anything.
src/librustc/mir/mod.rs
src/librustc_mir/transform/qualify_consts.rs
src/librustc_passes/rvalue_promotion.rs