introduce enter_forall
This commit is contained in:
parent
af88f7db51
commit
ac559af98f
15 changed files with 524 additions and 446 deletions
|
@ -1052,6 +1052,7 @@ impl<'tcx, T> Binder<'tcx, T> {
|
|||
where
|
||||
T: TypeVisitable<TyCtxt<'tcx>>,
|
||||
{
|
||||
// `self.value` is equivalent to `self.skip_binder()`
|
||||
if self.value.has_escaping_bound_vars() { None } else { Some(self.skip_binder()) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue