]> git.lizzy.rs Git - rust.git/commit
Auto merge of #91354 - fee1-dead:const_env, r=spastorino
authorbors <bors@rust-lang.org>
Thu, 2 Dec 2021 11:48:58 +0000 (11:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Dec 2021 11:48:58 +0000 (11:48 +0000)
commitdd03c0ff3e203aad854004b6c47adcf8c001129d
treea626dba458c0d78a7833d38b5c5bb7f15daaea19
parent56533d9e872084454bb5dbfacb49df64f145fa9d
parent99eeb66e0ffa97309c29c3af69614553cbf88ef8
Auto merge of #91354 - fee1-dead:const_env, r=spastorino

Cleanup: Eliminate ConstnessAnd

This is almost a behaviour-free change and purely a refactoring. "almost" because we appear to be using the wrong ParamEnv somewhere already, and this is now exposed by failing a test using the unstable `~const` feature.

We most definitely need to review all `without_const` and at some point should probably get rid of many of them by using `TraitPredicate` instead of `TraitRef`.

This is a continuation of https://github.com/rust-lang/rust/pull/90274.

r? `@oli-obk`

cc `@spastorino` `@ecstatic-morse`