@@ -140,7 +140,7 @@ impl ReachableContext {
140140 }
141141 item_enum( ref enum_def, _) => {
142142 if privacy_context == PublicContext {
143- for enum_def. variants. each |variant| {
143+ for enum_def. variants. iter ( ) . advance |variant| {
144144 reachable_symbols. insert( variant. node. id) ;
145145 }
146146 }
@@ -159,7 +159,7 @@ impl ReachableContext {
159159 } ;
160160
161161 // Mark all public methods as reachable.
162- for methods. each |& method| {
162+ for methods. iter ( ) . advance |& method| {
163163 if should_be_considered_public( method) {
164164 reachable_symbols. insert ( method. id ) ;
165165 }
@@ -168,15 +168,15 @@ impl ReachableContext {
168168 if generics_require_inlining ( generics) {
169169 // If the impl itself has generics, add all public
170170 // symbols to the worklist.
171- for methods. each |& method| {
171+ for methods. iter ( ) . advance |& method| {
172172 if should_be_considered_public( method) {
173173 worklist. push ( method. id )
174174 }
175175 }
176176 } else {
177177 // Otherwise, add only public methods that have
178178 // generics to the worklist.
179- for methods. each |method| {
179+ for methods. iter ( ) . advance |method| {
180180 let generics = & method. generics ;
181181 let attrs = & method. attrs ;
182182 if generics_require_inlining ( generics) ||
@@ -190,7 +190,7 @@ impl ReachableContext {
190190 item_trait( _, _, ref trait_methods) => {
191191 // Mark all provided methods as reachable.
192192 if privacy_context == PublicContext {
193- for trait_methods. each |trait_method| {
193+ for trait_methods. iter ( ) . advance |trait_method| {
194194 match * trait_method {
195195 provided( method) => {
196196 reachable_symbols. insert ( method. id ) ;
0 commit comments