Skip to content

Commit d79e17d

Browse files
eggyallcnr
andcommitted
Update compiler/rustc_middle/src/ty/fold.rs
Co-authored-by: lcnr <[email protected]>
1 parent bfc434b commit d79e17d

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/fold.rs

+2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
6262
fn fold_with<F: TypeFolder<'tcx, Error = !>>(self, folder: &mut F) -> Self {
6363
self.try_fold_with(folder).into_ok()
6464
}
65+
6566
fn try_super_fold_with<F: TypeFolderFallible<'tcx>>(
6667
self,
6768
folder: &mut F,
6869
) -> Result<Self, F::Error>;
70+
6971
fn try_fold_with<F: TypeFolderFallible<'tcx>>(self, folder: &mut F) -> Result<Self, F::Error> {
7072
self.try_super_fold_with(folder)
7173
}

0 commit comments

Comments
 (0)