1
Fork 0

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
No known key found for this signature in database
GPG key ID: 6D017A96D8E6C2F9
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>>,
>;