Skip to content

Commit f3b0a0e

Browse files
committed
Comments cleanup
1 parent 32b382c commit f3b0a0e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

compiler/rustc_incremental/src/persist/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const BASE_FN: &[&str] = &[
5454

5555
/// DepNodes for Hir, which is pretty much everything
5656
const BASE_HIR: &[&str] = &[
57-
// owner should be computed for all nodes
57+
// hir_owner should be computed for all nodes
5858
label_strs::hir_owner,
5959
];
6060

compiler/rustc_interface/src/passes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ pub static DEFAULT_QUERY_PROVIDERS: LazyLock<Providers> = LazyLock::new(|| {
879879
providers.queries.analysis = analysis;
880880
providers.queries.hir_crate = rustc_ast_lowering::lower_to_hir;
881881
providers.queries.lower_delayed_owner = rustc_ast_lowering::lower_delayed_owner;
882-
// `delayed_owner` is fed during `lower_delayed_owner`, by default it returns phantom,
882+
// `hir_delayed_owner` is fed during `lower_delayed_owner`, by default it returns phantom,
883883
// as if this query was not fed it means that `MaybeOwner` does not exist for provided LocalDefId.
884884
providers.queries.hir_delayed_owner = |_, _| MaybeOwner::Phantom;
885885
providers.queries.resolver_for_lowering_raw = resolver_for_lowering_raw;

compiler/rustc_middle/src/hir/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl<'tcx> TyCtxt<'tcx> {
112112
}
113113
}
114114

115-
/// This function is used only inside eval-always query analysis
115+
/// This function is used only inside eval-always query `analysis`
116116
/// (`analysis -> run_required_analysis` -> `emit_delayed_lints`), so it is safe
117117
/// to obtain delayed lints from non-eval-always `owner` query.
118118
#[inline]

compiler/rustc_middle/src/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ pub struct Hashes {
452452
pub attrs_hash: Option<Fingerprint>,
453453
}
454454

455-
/// Unites some of `OwnerInfo`'s fields into same struct that is used by owner `query`.
455+
/// Unites some of `OwnerInfo`'s fields into same struct that is used by `hir_owner` query.
456456
/// `AttributeMap` is handled separately as placing it in this struct led to perf regressions:
457457
/// <https://github.com/rust-lang/rust/pull/155678#issuecomment-4304597871>.
458458
/// This struct is created mainly for uniting/splitting fields of `OwnerInfo` so they are

0 commit comments

Comments
 (0)