Skip to content

Commit

Permalink
Update compiler/rustc_middle/src/ty/fold.rs
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <rust@lcnr.de>
  • Loading branch information
eggyal and lcnr committed Dec 2, 2021
1 parent bfc434b commit d79e17d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_middle/src/ty/fold.rs
Expand Up @@ -62,10 +62,12 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
fn fold_with<F: TypeFolder<'tcx, Error = !>>(self, folder: &mut F) -> Self {
self.try_fold_with(folder).into_ok()
}

fn try_super_fold_with<F: TypeFolderFallible<'tcx>>(
self,
folder: &mut F,
) -> Result<Self, F::Error>;

fn try_fold_with<F: TypeFolderFallible<'tcx>>(self, folder: &mut F) -> Result<Self, F::Error> {
self.try_super_fold_with(folder)
}
Expand Down

0 comments on commit d79e17d

Please sign in to comment.