File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/query Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ rustc_queries! {
143143
144144 /// Represents crate as a whole (as distinct from the top-level crate module).
145145 ///
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 ()`),
147147 /// we will have to assume that any change means that you need to be recompiled.
148148 /// 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`] .
151151 query hir_crate( key: ( ) ) -> & ' tcx Crate <' tcx> {
152152 arena_cache
153153 eval_always
You can’t perform that action at this time.
0 commit comments