Readd track_caller to Result::from_residual

This commit is contained in:
Jane Lusby 2021-12-10 09:17:55 -08:00
parent e6b883c74f
commit 44756d8d96

View file

@ -1953,6 +1953,7 @@ impl<T, E> ops::Try for Result<T, E> {
#[unstable(feature = "try_trait_v2", issue = "84277")]
impl<T, E, F: From<E>> ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
#[inline]
#[track_caller]
fn from_residual(residual: Result<convert::Infallible, E>) -> Self {
match residual {
Err(e) => Err(From::from(e)),