about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authoreggyal <eggyal@gmail.com>2021-12-01 12:48:49 +0000
committerAlan Egerton <eggyal@gmail.com>2021-12-02 16:14:16 +0000
commitd79e17daf0157d8c39747544e93113db387e6fc5 (patch)
tree4c2b5d444b64b5d17d30f0da0ffbb5d4800f376c /compiler/rustc_middle/src
parentbfc434b6d0e64dab88def4c5282eeb4a294faf76 (diff)
downloadrust-d79e17daf0157d8c39747544e93113db387e6fc5.tar.gz
rust-d79e17daf0157d8c39747544e93113db387e6fc5.zip
Update compiler/rustc_middle/src/ty/fold.rs
Co-authored-by: lcnr <rust@lcnr.de>
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/fold.rs2
1 files changed, 2 insertions, 0 deletions
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<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)
     }