rename RegionVariableOrigin::MiscVariable to RegionVariableOrigin::Misc

This commit is contained in:
Michael Goulet
2025-06-18 18:00:30 +00:00
parent 44254c8cd7
commit c995070b6a
13 changed files with 20 additions and 27 deletions

View File

@@ -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,
});