File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 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> {
7878 pub fn walk ( self ) -> TypeWalker < ' tcx > {
7979 TypeWalker :: new ( self )
8080 }
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- }
9881}
9982
10083impl < ' tcx > Ty < ' tcx > {
You can’t perform that action at this time.
0 commit comments