Rename both of the Match relations
This commit is contained in:
parent
8e47113d71
commit
2ffaeb5110
3 changed files with 24 additions and 15 deletions
|
@ -39,6 +39,7 @@ use rustc_middle::dep_graph::dep_kinds;
|
|||
use rustc_middle::dep_graph::DepNodeIndex;
|
||||
use rustc_middle::mir::interpret::ErrorHandled;
|
||||
use rustc_middle::traits::DefiningAnchor;
|
||||
use rustc_middle::ty::_match::MatchAgainstFreshVars;
|
||||
use rustc_middle::ty::abstract_const::NotConstEvaluatable;
|
||||
use rustc_middle::ty::fold::BottomUpFolder;
|
||||
use rustc_middle::ty::relate::TypeRelation;
|
||||
|
@ -2642,7 +2643,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
current: ty::PolyTraitPredicate<'tcx>,
|
||||
param_env: ty::ParamEnv<'tcx>,
|
||||
) -> bool {
|
||||
let mut matcher = ty::_match::Match::new(self.tcx(), param_env);
|
||||
let mut matcher = MatchAgainstFreshVars::new(self.tcx(), param_env);
|
||||
matcher.relate(previous, current).is_ok()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue