File tree 1 file changed +0
-17
lines changed
compiler/rustc_middle/src/ty
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -78,23 +78,6 @@ impl<'tcx> GenericArg<'tcx> {
78
78
pub fn walk ( self ) -> TypeWalker < ' tcx > {
79
79
TypeWalker :: new ( self )
80
80
}
81
-
82
- /// Iterator that walks the immediate children of `self`. Hence
83
- /// `Foo<Bar<i32>, u32>` yields the sequence `[Bar<i32>, u32]`
84
- /// (but not `i32`, like `walk`).
85
- ///
86
- /// Iterator only walks items once.
87
- /// It accepts visited set, updates it with all visited types
88
- /// and skips any types that are already there.
89
- pub fn walk_shallow (
90
- self ,
91
- visited : & mut SsoHashSet < GenericArg < ' tcx > > ,
92
- ) -> impl Iterator < Item = GenericArg < ' tcx > > {
93
- let mut stack = SmallVec :: new ( ) ;
94
- push_inner ( & mut stack, self ) ;
95
- stack. retain ( |a| visited. insert ( * a) ) ;
96
- stack. into_iter ( )
97
- }
98
81
}
99
82
100
83
impl < ' tcx > Ty < ' tcx > {
You can’t perform that action at this time.
0 commit comments