Don't use compat versions of implied bounds in ImpliedOutlivesBounds query

This commit is contained in:
Jack Huey 2024-01-17 01:10:19 -05:00
parent acab76573f
commit a9e30e6cdf
7 changed files with 28 additions and 18 deletions

View file

@ -48,14 +48,14 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ImpliedOutlivesBounds<'tcx> {
param_env.and(ty)
});
tcx.implied_outlives_bounds_compat(canonicalized)
tcx.implied_outlives_bounds(canonicalized)
}
fn perform_locally_with_next_solver(
ocx: &ObligationCtxt<'_, 'tcx>,
key: ParamEnvAnd<'tcx, Self>,
) -> Result<Self::QueryResponse, NoSolution> {
compute_implied_outlives_bounds_compat_inner(ocx, key.param_env, key.value.ty)
compute_implied_outlives_bounds_inner(ocx, key.param_env, key.value.ty)
}
}