Skip to content

Commit 0f6da42

Browse files
committed
Fix method name in TyCtxt::hir_crate() documentation
1 parent 96cfc75 commit 0f6da42

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ rustc_queries! {
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.
149149
/// To avoid this fate, do not call `tcx.hir().krate()`; instead,
150-
/// prefer wrappers like `tcx.visit_all_items_in_krate()`.
150+
/// prefer wrappers like `tcx.hir_visit_all_item_likes_in_crate()`.
151151
query hir_crate(key: ()) -> &'tcx Crate<'tcx> {
152152
arena_cache
153153
eval_always

0 commit comments

Comments
 (0)