From d79e17daf0157d8c39747544e93113db387e6fc5 Mon Sep 17 00:00:00 2001 From: eggyal Date: Wed, 1 Dec 2021 12:48:49 +0000 Subject: [PATCH] Update compiler/rustc_middle/src/ty/fold.rs Co-authored-by: lcnr --- compiler/rustc_middle/src/ty/fold.rs | 2 ++ 1 file changed, 2 insertions(+) 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) }