Rollup merge of #131825 - lcnr:probe-no-more-leak-2, r=compiler-errors

SolverDelegate add assoc type for Infcx

makes writing trait bounds on it a lot nicer going forward.

r? `@compiler-errors`
This commit is contained in:
Matthias Krüger
2024-10-17 20:47:31 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ impl<'tcx> Deref for SolverDelegate<'tcx> {
}
impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate<'tcx> {
type Infcx = InferCtxt<'tcx>;
type Interner = TyCtxt<'tcx>;
fn cx(&self) -> TyCtxt<'tcx> {