File tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/query
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ rustc_queries! {
143
143
144
144
/// Represents crate as a whole (as distinct from the top-level crate module).
145
145
///
146
- /// If you call `hir_crate` (e.g., indirectly by calling `tcx.hir().krate ()`),
146
+ /// If you call `hir_crate` (e.g., indirectly by calling `tcx.hir_crate ()`),
147
147
/// we will have to assume that any change means that you need to be recompiled.
148
148
/// This is because the `hir_crate` query gives you access to all other items.
149
- /// To avoid this fate, do not call `tcx.hir().krate ()`; instead,
150
- /// prefer wrappers like `tcx.visit_all_items_in_krate()` .
149
+ /// To avoid this fate, do not call `tcx.hir_crate ()`; instead,
150
+ /// prefer wrappers like [`TyCtxt::hir_visit_all_item_likes_in_crate`] .
151
151
query hir_crate( key: ( ) ) -> & ' tcx Crate <' tcx> {
152
152
arena_cache
153
153
eval_always
You can’t perform that action at this time.
0 commit comments