Skip to content

Commit dc4fd3d

Browse files
committed
Comment tweaks
1 parent 623dcb0 commit dc4fd3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/librustc/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rustc_queries! {
4343
}
4444

4545
Other {
46-
// Represents crate as a whole (as distinct from the to-level crate module).
46+
// Represents crate as a whole (as distinct from the top-level crate module).
4747
// If you call `hir_crate` (e.g., indirectly by calling `tcx.hir().krate()`),
4848
// we will have to assume that any change means that you need to be recompiled.
4949
// This is because the `hir_crate` query gives you access to all other items.

src/librustc/ty/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ pub struct GlobalCtxt<'tcx> {
966966
/// Export map produced by name resolution.
967967
export_map: FxHashMap<DefId, Vec<Export<hir::HirId>>>,
968968

969+
/// This should usually be accessed with the `tcx.hir()` method.
969970
pub(crate) hir_map: hir_map::Map<'tcx>,
970971

971972
/// A map from `DefPathHash` -> `DefId`. Includes `DefId`s from the local crate

0 commit comments

Comments
 (0)