We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OnlyBodies
1 parent d724d96 commit 616482eCopy full SHA for 616482e
compiler/rustc_middle/src/hir/nested_filter.rs
@@ -3,6 +3,10 @@ use rustc_hir::intravisit::nested_filter::NestedFilter;
3
/// Do not visit nested item-like things, but visit nested things
4
/// that are inside of an item-like.
5
///
6
+/// Notably, possible occurrences of bodies in non-item-like things
7
+/// include: closures/generators, inline `const {}` blocks, and
8
+/// constant arguments of types, e.g. in `let _: [(); /* HERE */];`.
9
+///
10
/// **This is the most common choice.** A very common pattern is
11
/// to use `visit_all_item_likes()` as an outer loop,
12
/// and to have the visitor that visits the contents of each item
0 commit comments