1
Fork 0

Replace ConstnessAnd<TraitRef> with TraitPredicate which conveys the same information

This commit is contained in:
Oli Scherer 2021-10-25 14:04:15 +00:00 committed by Deadbeef
parent b16c811f1c
commit d161cc2071
No known key found for this signature in database
GPG key ID: 6D017A96D8E6C2F9
2 changed files with 46 additions and 69 deletions

View file

@ -16,10 +16,8 @@ pub type SelectionCache<'tcx> = Cache<
SelectionResult<'tcx, SelectionCandidate<'tcx>>,
>;
pub type EvaluationCache<'tcx> = Cache<
(ty::ParamEnvAnd<'tcx, ty::ConstnessAnd<ty::PolyTraitRef<'tcx>>>, ty::ImplPolarity),
EvaluationResult,
>;
pub type EvaluationCache<'tcx> =
Cache<ty::ParamEnvAnd<'tcx, ty::PolyTraitPredicate<'tcx>>, EvaluationResult>;
/// The selection process begins by considering all impls, where
/// clauses, and so forth that might resolve an obligation. Sometimes