Make proof tree probing generic
This commit is contained in:
parent
8a8bbc0c17
commit
c2e416c471
3 changed files with 51 additions and 38 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue