Move EarlyBinder calls in rustc_typeck::outlives a bit further up

This commit is contained in:
Jack Huey
2022-07-02 18:27:49 -04:00
parent 1517f5de01
commit f16584357d
5 changed files with 35 additions and 27 deletions

View File

@@ -932,6 +932,10 @@ impl<T> EarlyBinder<T> {
let value = f(self.0)?;
Ok(EarlyBinder(value))
}
pub fn rebind<U>(&self, value: U) -> EarlyBinder<U> {
EarlyBinder(value)
}
}
impl<T> EarlyBinder<Option<T>> {