Comments cleanup

This commit is contained in:
aerooneqq
2026-05-18 10:41:15 +03:00
parent 32b382cea1
commit f3b0a0e266
4 changed files with 4 additions and 4 deletions
@@ -54,7 +54,7 @@
/// DepNodes for Hir, which is pretty much everything
const BASE_HIR: &[&str] = &[
// owner should be computed for all nodes
// hir_owner should be computed for all nodes
label_strs::hir_owner,
];
+1 -1
View File
@@ -879,7 +879,7 @@ pub fn write_interface<'tcx>(tcx: TyCtxt<'tcx>) {
providers.queries.analysis = analysis;
providers.queries.hir_crate = rustc_ast_lowering::lower_to_hir;
providers.queries.lower_delayed_owner = rustc_ast_lowering::lower_delayed_owner;
// `delayed_owner` is fed during `lower_delayed_owner`, by default it returns phantom,
// `hir_delayed_owner` is fed during `lower_delayed_owner`, by default it returns phantom,
// as if this query was not fed it means that `MaybeOwner` does not exist for provided LocalDefId.
providers.queries.hir_delayed_owner = |_, _| MaybeOwner::Phantom;
providers.queries.resolver_for_lowering_raw = resolver_for_lowering_raw;
+1 -1
View File
@@ -112,7 +112,7 @@ pub fn local_def_id_to_hir_id(self, def_id: impl IntoQueryKey<LocalDefId>) -> Hi
}
}
/// This function is used only inside eval-always query analysis
/// This function is used only inside eval-always query `analysis`
/// (`analysis -> run_required_analysis` -> `emit_delayed_lints`), so it is safe
/// to obtain delayed lints from non-eval-always `owner` query.
#[inline]
+1 -1
View File
@@ -452,7 +452,7 @@ pub struct Hashes {
pub attrs_hash: Option<Fingerprint>,
}
/// Unites some of `OwnerInfo`'s fields into same struct that is used by owner `query`.
/// Unites some of `OwnerInfo`'s fields into same struct that is used by `hir_owner` query.
/// `AttributeMap` is handled separately as placing it in this struct led to perf regressions:
/// <https://github.com/rust-lang/rust/pull/155678#issuecomment-4304597871>.
/// This struct is created mainly for uniting/splitting fields of `OwnerInfo` so they are