1
Fork 0

Uplift OutlivesPredicate, remove a bunch of unnecessary associated types from Interner

This commit is contained in:
Michael Goulet 2024-05-21 11:07:54 -04:00
parent 28ce588321
commit 1c8230ea3c
15 changed files with 79 additions and 75 deletions

View file

@ -162,8 +162,7 @@ pub fn compute_implied_outlives_bounds_compat_inner<'tcx>(
let mut checked_wf_args = rustc_data_structures::fx::FxHashSet::default();
let mut wf_args = vec![ty.into()];
let mut outlives_bounds: Vec<ty::OutlivesPredicate<ty::GenericArg<'tcx>, ty::Region<'tcx>>> =
vec![];
let mut outlives_bounds: Vec<ty::OutlivesPredicate<'tcx, ty::GenericArg<'tcx>>> = vec![];
while let Some(arg) = wf_args.pop() {
if !checked_wf_args.insert(arg) {