diff --git a/compiler/rustc_middle/src/ty/fold.rs b/compiler/rustc_middle/src/ty/fold.rs index 4039577df88..929474e865c 100644 --- a/compiler/rustc_middle/src/ty/fold.rs +++ b/compiler/rustc_middle/src/ty/fold.rs @@ -62,10 +62,12 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone { fn fold_with>(self, folder: &mut F) -> Self { self.try_fold_with(folder).into_ok() } + fn try_super_fold_with>( self, folder: &mut F, ) -> Result; + fn try_fold_with>(self, folder: &mut F) -> Result { self.try_super_fold_with(folder) }