Prefer TraitPredicate over ConstnessAnd<TraitRef>

This commit is contained in:
Oli Scherer
2021-10-21 18:12:19 +00:00
committed by Deadbeef
parent 40f39e6c6a
commit b16c811f1c
2 changed files with 10 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ use rustc_hir::def_id::DefId;
use rustc_query_system::cache::Cache;
pub type SelectionCache<'tcx> = Cache<
(ty::ConstnessAnd<ty::ParamEnvAnd<'tcx, ty::TraitRef<'tcx>>>, ty::ImplPolarity),
ty::ParamEnvAnd<'tcx, ty::TraitPredicate<'tcx>>,
SelectionResult<'tcx, SelectionCandidate<'tcx>>,
>;