]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
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)
commit18bb8c61a975fff6424cda831ace5b0404277145
tree9c2d6ff1632a54ac914170d2c4ecf949a416d89e
parentd9baa361902b172be716f96619b909f340802dea
parent5ebc99e5b29a36150dfe090b4ac17d241debfb36
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`
compiler/rustc_hir/src/hir.rs
compiler/rustc_middle/src/hir/map/mod.rs
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
compiler/rustc_ty_utils/src/ty.rs
compiler/rustc_typeck/src/check/compare_method.rs
compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs
compiler/rustc_typeck/src/check/wfcheck.rs
compiler/rustc_typeck/src/collect.rs