File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 5151// Region folder
5252
5353impl < ' tcx > TyCtxt < ' tcx > {
54- /// Folds the escaping and free regions in `value` using `f`, and
55- /// sets `skipped_regions` to true if any late-bound region was found
56- /// and skipped.
54+ /// Folds the escaping and free regions in `value` using `f`.
5755 pub fn fold_regions < T > (
5856 self ,
5957 value : T ,
@@ -64,17 +62,6 @@ impl<'tcx> TyCtxt<'tcx> {
6462 {
6563 value. fold_with ( & mut RegionFolder :: new ( self , & mut f) )
6664 }
67-
68- pub fn super_fold_regions < T > (
69- self ,
70- value : T ,
71- mut f : impl FnMut ( ty:: Region < ' tcx > , ty:: DebruijnIndex ) -> ty:: Region < ' tcx > ,
72- ) -> T
73- where
74- T : TypeSuperFoldable < TyCtxt < ' tcx > > ,
75- {
76- value. super_fold_with ( & mut RegionFolder :: new ( self , & mut f) )
77- }
7865}
7966
8067/// Folds over the substructure of a type, visiting its component
You can’t perform that action at this time.
0 commit comments