We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc434b commit d79e17dCopy full SHA for d79e17d
compiler/rustc_middle/src/ty/fold.rs
@@ -62,10 +62,12 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
62
fn fold_with<F: TypeFolder<'tcx, Error = !>>(self, folder: &mut F) -> Self {
63
self.try_fold_with(folder).into_ok()
64
}
65
+
66
fn try_super_fold_with<F: TypeFolderFallible<'tcx>>(
67
self,
68
folder: &mut F,
69
) -> Result<Self, F::Error>;
70
71
fn try_fold_with<F: TypeFolderFallible<'tcx>>(self, folder: &mut F) -> Result<Self, F::Error> {
72
self.try_super_fold_with(folder)
73
0 commit comments