rename RegionVariableOrigin::MiscVariable to RegionVariableOrigin::Misc
This commit is contained in:
@@ -312,7 +312,7 @@ fn check_opaque_meets_bounds<'tcx>(
|
||||
// here rather than using ReErased.
|
||||
let hidden_ty = tcx.type_of(def_id.to_def_id()).instantiate(tcx, args);
|
||||
let hidden_ty = fold_regions(tcx, hidden_ty, |re, _dbi| match re.kind() {
|
||||
ty::ReErased => infcx.next_region_var(RegionVariableOrigin::MiscVariable(span)),
|
||||
ty::ReErased => infcx.next_region_var(RegionVariableOrigin::Misc(span)),
|
||||
_ => re,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user