1
Fork 0

Make proof tree probing generic

This commit is contained in:
Michael Goulet 2024-06-14 16:04:45 -04:00
parent 8a8bbc0c17
commit c2e416c471
3 changed files with 51 additions and 38 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.