Rollup merge of #126496 - compiler-errors:more-generics, r=lcnr

Make proof tree probing and `Candidate`/`CandidateSource` generic over interner

`<TyCtxt<'tcx>>` is ugly, but will become `<I>` when things actually become generic.

r? lcnr
This commit is contained in:
Guillaume Gomez 2024-06-15 19:51:36 +02:00 committed by GitHub
commit aa6fb1cfcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 157 additions and 143 deletions

View file

@ -471,6 +471,10 @@ impl<'tcx> ty::InferCtxtLike for InferCtxt<'tcx> {
{
self.resolve_vars_if_possible(value)
}
fn probe<T>(&self, probe: impl FnOnce() -> T) -> T {
self.probe(|_| probe())
}
}
/// See the `error_reporting` module for more details.