From 8f06c32ea06520f241e264de99765c43efc388a4 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 28 Apr 2025 15:57:35 -0600 Subject: [PATCH] Trivial tweaks to 'target_short_hash' --- src/cargo/core/compiler/build_runner/compilation_files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/core/compiler/build_runner/compilation_files.rs b/src/cargo/core/compiler/build_runner/compilation_files.rs index c691a19ad0b..cfebdb6d7df 100644 --- a/src/cargo/core/compiler/build_runner/compilation_files.rs +++ b/src/cargo/core/compiler/build_runner/compilation_files.rs @@ -199,8 +199,8 @@ impl<'a, 'gctx: 'a> CompilationFiles<'a, 'gctx> { } /// Gets the short hash based only on the `PackageId`. - /// Used for the metadata when `metadata` returns `None`. - pub fn target_short_hash(&self, unit: &Unit) -> String { + /// Used for the metadata when `c_extra_filename` returns `None`. + fn target_short_hash(&self, unit: &Unit) -> String { let hashable = unit.pkg.package_id().stable_hash(self.ws.root()); util::short_hash(&(METADATA_VERSION, hashable)) }