Make EvaluationCache consider polarity as cache's key
This commit is contained in:
parent
da8873e343
commit
85c8fd9c94
2 changed files with 28 additions and 8 deletions
|
@ -16,8 +16,10 @@ pub type SelectionCache<'tcx> = Cache<
|
|||
SelectionResult<'tcx, SelectionCandidate<'tcx>>,
|
||||
>;
|
||||
|
||||
pub type EvaluationCache<'tcx> =
|
||||
Cache<ty::ParamEnvAnd<'tcx, ty::ConstnessAnd<ty::PolyTraitRef<'tcx>>>, EvaluationResult>;
|
||||
pub type EvaluationCache<'tcx> = Cache<
|
||||
(ty::ParamEnvAnd<'tcx, ty::ConstnessAnd<ty::PolyTraitRef<'tcx>>>, ty::ImplPolarity),
|
||||
EvaluationResult,
|
||||
>;
|
||||
|
||||
/// The selection process begins by considering all impls, where
|
||||
/// clauses, and so forth that might resolve an obligation. Sometimes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue