File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,33 @@ rustc_queries! {
55
55
desc { "get the crate HIR" }
56
56
}
57
57
58
+ // The indexed HIR. This can be conveniently accessed by `tcx.hir()`.
59
+ // Avoid calling this query directly.
58
60
query index_hir( _: CrateNum ) -> & ' tcx map:: IndexedHir <' tcx> {
59
61
eval_always
60
62
no_hash
61
63
desc { "index HIR" }
62
64
}
63
65
66
+ // The items in a module.
67
+ // This can be conveniently accessed by `tcx.hir().visit_item_likes_in_module`.
68
+ // Avoid calling this query directly.
64
69
query hir_module_items( key: DefId ) -> & ' tcx hir:: ModuleItems {
65
70
eval_always
66
71
}
67
72
73
+ // An HIR item with a `DefId` that can own other HIR items which do not themselves have
74
+ // a `DefId`.
75
+ // This can be conveniently accessed by methods on `tcx.hir()`.
76
+ // Avoid calling this query directly.
68
77
query hir_owner( key: DefId ) -> & ' tcx HirOwner <' tcx> {
69
78
eval_always
70
79
}
71
80
81
+ // The HIR items which do not themselves have a `DefId` and are owned by another HIR item
82
+ // with a `DefId`.
83
+ // This can be conveniently accessed by methods on `tcx.hir()`.
84
+ // Avoid calling this query directly.
72
85
query hir_owner_items( key: DefId ) -> & ' tcx HirOwnerItems <' tcx> {
73
86
eval_always
74
87
}
You can’t perform that action at this time.
0 commit comments