]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #76807 - ecstatic-morse:const-checking-staged-api, r=oli-obk
authorecstatic-morse <ecstaticmorse@gmail.com>
Tue, 22 Sep 2020 03:40:53 +0000 (20:40 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 03:40:53 +0000 (20:40 -0700)
commit60b99015e95e5840a8f409d1042f1e3458d2c7dd
tree10f057001298389a6f56fba2b8e0d4e014004756
parentb3433c7cc9811639ca2cb137da146222cc8bde55
parentabc71677da866fd36c70790e768f36d2f809c493
Rollup merge of #76807 - ecstatic-morse:const-checking-staged-api, r=oli-obk

Use const-checking to forbid use of unstable features in const-stable functions

First step towards #76618.

Currently this code isn't ever hit because `qualify_min_const_fn` runs first and catches pretty much everything. One exception is `const_precise_live_drops`, which does not use the newly added code since it runs as part of a separate pass.

Also contains some unrelated refactoring, which is split into separate commits.

r? @oli-obk