mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
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.
This commit is contained in:
commit
51a9df8c70
@ -152,7 +152,7 @@ pub mod nested_filter {
|
|||||||
/// visit fn bodies for fns that it encounters, and closure bodies, but
|
/// visit fn bodies for fns that it encounters, and closure bodies, but
|
||||||
/// skip over nested item-like things.
|
/// 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.
|
/// visit strategy.
|
||||||
pub trait NestedFilter<'hir> {
|
pub trait NestedFilter<'hir> {
|
||||||
type Map: Map<'hir>;
|
type Map: Map<'hir>;
|
||||||
@ -229,8 +229,8 @@ pub trait Visitor<'v>: Sized {
|
|||||||
/// `Self::NestedFilter` is `nested_filter::None`, this method does
|
/// `Self::NestedFilter` is `nested_filter::None`, this method does
|
||||||
/// nothing. **You probably don't want to override this method** --
|
/// nothing. **You probably don't want to override this method** --
|
||||||
/// instead, override [`Self::NestedFilter`] or use the "shallow" or
|
/// instead, override [`Self::NestedFilter`] or use the "shallow" or
|
||||||
/// "deep" visit patterns described on
|
/// "deep" visit patterns described at
|
||||||
/// `itemlikevisit::ItemLikeVisitor`. The only reason to override
|
/// [`rustc_hir::intravisit`]. The only reason to override
|
||||||
/// this method is if you want a nested pattern but cannot supply a
|
/// this method is if you want a nested pattern but cannot supply a
|
||||||
/// [`Map`]; see `nested_visit_map` for advice.
|
/// [`Map`]; see `nested_visit_map` for advice.
|
||||||
fn visit_nested_item(&mut self, id: ItemId) {
|
fn visit_nested_item(&mut self, id: ItemId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user