File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -64,24 +64,25 @@ rustc_queries! {
64
64
}
65
65
66
66
// The items in a module.
67
+ //
67
68
// This can be conveniently accessed by `tcx.hir().visit_item_likes_in_module`.
68
69
// Avoid calling this query directly.
69
70
query hir_module_items( key: LocalDefId ) -> & ' tcx hir:: ModuleItems {
70
71
eval_always
71
72
desc { |tcx| "HIR module items in `{}`" , tcx. def_path_str( key. to_def_id( ) ) }
72
73
}
73
74
74
- // An HIR node with a `LocalDefId` that can own other HIR nodes which do
75
- // not themselves have a `LocalDefId`.
75
+ // Gives access to the HIR node for the HIR owner `key`.
76
+ //
76
77
// This can be conveniently accessed by methods on `tcx.hir()`.
77
78
// Avoid calling this query directly.
78
79
query hir_owner( key: LocalDefId ) -> & ' tcx crate :: hir:: Owner <' tcx> {
79
80
eval_always
80
81
desc { |tcx| "HIR owner of `{}`" , tcx. def_path_str( key. to_def_id( ) ) }
81
82
}
82
83
83
- // The HIR nodes which do not themselves have a `LocalDefId` and are
84
- // owned by another HIR node with a `LocalDefId`.
84
+ // Gives access to the HIR nodes and bodies inside the HIR owner `key`.
85
+ //
85
86
// This can be conveniently accessed by methods on `tcx.hir()`.
86
87
// Avoid calling this query directly.
87
88
query hir_owner_nodes( key: LocalDefId ) -> & ' tcx crate :: hir:: OwnerNodes <' tcx> {
You can’t perform that action at this time.
0 commit comments