@@ -159,7 +159,7 @@ pub enum NestedVisitorMap<'this, 'tcx> {
159
159
impl < ' this , ' tcx > NestedVisitorMap < ' this , ' tcx > {
160
160
/// Returns the map to use for an "intra item-like" thing (if any).
161
161
/// E.g., function body.
162
- pub fn intra ( self ) -> Option < & ' this Map < ' tcx > > {
162
+ fn intra ( self ) -> Option < & ' this Map < ' tcx > > {
163
163
match self {
164
164
NestedVisitorMap :: None => None ,
165
165
NestedVisitorMap :: OnlyBodies ( map) => Some ( map) ,
@@ -169,7 +169,7 @@ impl<'this, 'tcx> NestedVisitorMap<'this, 'tcx> {
169
169
170
170
/// Returns the map to use for an "item-like" thing (if any).
171
171
/// E.g., item, impl-item.
172
- pub fn inter ( self ) -> Option < & ' this Map < ' tcx > > {
172
+ fn inter ( self ) -> Option < & ' this Map < ' tcx > > {
173
173
match self {
174
174
NestedVisitorMap :: None => None ,
175
175
NestedVisitorMap :: OnlyBodies ( _) => None ,
@@ -214,7 +214,7 @@ pub trait Visitor<'v>: Sized {
214
214
/// `panic!()`. This way, if a new `visit_nested_XXX` variant is
215
215
/// added in the future, we will see the panic in your code and
216
216
/// fix it appropriately.
217
- fn nested_visit_map < ' this > ( & ' this mut self ) -> NestedVisitorMap < ' this , ' v > ;
217
+ fn nested_visit_map ( & mut self ) -> NestedVisitorMap < ' _ , ' v > ;
218
218
219
219
/// Invoked when a nested item is encountered. By default does
220
220
/// nothing unless you override `nested_visit_map` to return other than
0 commit comments