Skip to content

Commit 51a9df8

Browse files
committed
Auto merge of rust-lang#115584 - ezekielathome:docs-pattern-inconsistency, r=compiler-errors
replace doc occurrences of ItemLikeVisitor Solves rust-lang#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.
2 parents aeddd2d + 13f17e1 commit 51a9df8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_hir/src/intravisit.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub mod nested_filter {
152152
/// visit fn bodies for fns that it encounters, and closure bodies, but
153153
/// skip over nested item-like things.
154154
///
155-
/// See the comments on `ItemLikeVisitor` for more details on the overall
155+
/// See the comments at [`rustc_hir::intravisit`] for more details on the overall
156156
/// visit strategy.
157157
pub trait NestedFilter<'hir> {
158158
type Map: Map<'hir>;
@@ -229,8 +229,8 @@ pub trait Visitor<'v>: Sized {
229229
/// `Self::NestedFilter` is `nested_filter::None`, this method does
230230
/// nothing. **You probably don't want to override this method** --
231231
/// instead, override [`Self::NestedFilter`] or use the "shallow" or
232-
/// "deep" visit patterns described on
233-
/// `itemlikevisit::ItemLikeVisitor`. The only reason to override
232+
/// "deep" visit patterns described at
233+
/// [`rustc_hir::intravisit`]. The only reason to override
234234
/// this method is if you want a nested pattern but cannot supply a
235235
/// [`Map`]; see `nested_visit_map` for advice.
236236
fn visit_nested_item(&mut self, id: ItemId) {

0 commit comments

Comments
 (0)