diff options
| author | bors <bors@rust-lang.org> | 2023-09-06 04:24:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-06 04:24:36 +0000 |
| commit | 51a9df8c70d69a253f9e563e3e4370297ad1746a (patch) | |
| tree | e35f3ec415b33d00c6f2d1676f703dfae9309e5e | |
| parent | aeddd2ddfd35bb385dd36476fab326f40d57a131 (diff) | |
| parent | 13f17e1a936e781aaa639f33a58fc9c0b2866671 (diff) | |
| download | rust-51a9df8c70d69a253f9e563e3e4370297ad1746a.tar.gz rust-51a9df8c70d69a253f9e563e3e4370297ad1746a.zip | |
Auto merge of #115584 - ezekielathome:docs-pattern-inconsistency, r=compiler-errors
replace doc occurrences of ItemLikeVisitor Solves #114885 ItemLikeVisitor used to have comments describing visit patterns. After it was removed, it was moved to `rustc_hir::intravisit` but references in `intravisit.rs` weren't updated.
| -rw-r--r-- | compiler/rustc_hir/src/intravisit.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_hir/src/intravisit.rs b/compiler/rustc_hir/src/intravisit.rs index 172f557f8e2..d9195a374c2 100644 --- a/compiler/rustc_hir/src/intravisit.rs +++ b/compiler/rustc_hir/src/intravisit.rs @@ -152,7 +152,7 @@ pub mod nested_filter { /// visit fn bodies for fns that it encounters, and closure bodies, but /// skip over nested item-like things. /// - /// See the comments on `ItemLikeVisitor` for more details on the overall + /// See the comments at [`rustc_hir::intravisit`] for more details on the overall /// visit strategy. pub trait NestedFilter<'hir> { type Map: Map<'hir>; @@ -229,8 +229,8 @@ pub trait Visitor<'v>: Sized { /// `Self::NestedFilter` is `nested_filter::None`, this method does /// nothing. **You probably don't want to override this method** -- /// instead, override [`Self::NestedFilter`] or use the "shallow" or - /// "deep" visit patterns described on - /// `itemlikevisit::ItemLikeVisitor`. The only reason to override + /// "deep" visit patterns described at + /// [`rustc_hir::intravisit`]. The only reason to override /// this method is if you want a nested pattern but cannot supply a /// [`Map`]; see `nested_visit_map` for advice. fn visit_nested_item(&mut self, id: ItemId) { |
