Skip to content

Commit 4b08c7e

Browse files
committed
NestedVisitorMap: reduce visibilities
1 parent 3f13ba8 commit 4b08c7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/hir/intravisit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub enum NestedVisitorMap<'this, 'tcx> {
159159
impl<'this, 'tcx> NestedVisitorMap<'this, 'tcx> {
160160
/// Returns the map to use for an "intra item-like" thing (if any).
161161
/// E.g., function body.
162-
pub fn intra(self) -> Option<&'this Map<'tcx>> {
162+
fn intra(self) -> Option<&'this Map<'tcx>> {
163163
match self {
164164
NestedVisitorMap::None => None,
165165
NestedVisitorMap::OnlyBodies(map) => Some(map),
@@ -169,7 +169,7 @@ impl<'this, 'tcx> NestedVisitorMap<'this, 'tcx> {
169169

170170
/// Returns the map to use for an "item-like" thing (if any).
171171
/// E.g., item, impl-item.
172-
pub fn inter(self) -> Option<&'this Map<'tcx>> {
172+
fn inter(self) -> Option<&'this Map<'tcx>> {
173173
match self {
174174
NestedVisitorMap::None => None,
175175
NestedVisitorMap::OnlyBodies(_) => None,
@@ -214,7 +214,7 @@ pub trait Visitor<'v>: Sized {
214214
/// `panic!()`. This way, if a new `visit_nested_XXX` variant is
215215
/// added in the future, we will see the panic in your code and
216216
/// fix it appropriately.
217-
fn nested_visit_map<'this>(&'this mut self) -> NestedVisitorMap<'this, 'v>;
217+
fn nested_visit_map(&mut self) -> NestedVisitorMap<'_, 'v>;
218218

219219
/// Invoked when a nested item is encountered. By default does
220220
/// nothing unless you override `nested_visit_map` to return other than

0 commit comments

Comments
 (0)