diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-02-06 14:11:57 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-02-06 14:14:50 +0100 |
| commit | dc4fd3d7240e50e6c4c42952c51db021c88a3575 (patch) | |
| tree | bae45b88b6cfca96948ff3975b327d159dcc966e | |
| parent | 623dcb02db0f23270ef4497739dff43ab6f7bcef (diff) | |
| download | rust-dc4fd3d7240e50e6c4c42952c51db021c88a3575.tar.gz rust-dc4fd3d7240e50e6c4c42952c51db021c88a3575.zip | |
Comment tweaks
| -rw-r--r-- | src/librustc/query/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc/ty/context.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/query/mod.rs b/src/librustc/query/mod.rs index 82ff7da13ae..4842719d804 100644 --- a/src/librustc/query/mod.rs +++ b/src/librustc/query/mod.rs @@ -43,7 +43,7 @@ rustc_queries! { } Other { - // Represents crate as a whole (as distinct from the to-level crate module). + // Represents crate as a whole (as distinct from the top-level crate module). // If you call `hir_crate` (e.g., indirectly by calling `tcx.hir().krate()`), // we will have to assume that any change means that you need to be recompiled. // This is because the `hir_crate` query gives you access to all other items. diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs index 8979292c86d..8386058f72a 100644 --- a/src/librustc/ty/context.rs +++ b/src/librustc/ty/context.rs @@ -966,6 +966,7 @@ pub struct GlobalCtxt<'tcx> { /// Export map produced by name resolution. export_map: FxHashMap<DefId, Vec<Export<hir::HirId>>>, + /// This should usually be accessed with the `tcx.hir()` method. pub(crate) hir_map: hir_map::Map<'tcx>, /// A map from `DefPathHash` -> `DefId`. Includes `DefId`s from the local crate |
