Skip to content

Commit 8f06c32

Browse files
committed
Trivial tweaks to 'target_short_hash'
1 parent ab15d58 commit 8f06c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/core/compiler/build_runner/compilation_files.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ impl<'a, 'gctx: 'a> CompilationFiles<'a, 'gctx> {
199199
}
200200

201201
/// Gets the short hash based only on the `PackageId`.
202-
/// Used for the metadata when `metadata` returns `None`.
203-
pub fn target_short_hash(&self, unit: &Unit) -> String {
202+
/// Used for the metadata when `c_extra_filename` returns `None`.
203+
fn target_short_hash(&self, unit: &Unit) -> String {
204204
let hashable = unit.pkg.package_id().stable_hash(self.ws.root());
205205
util::short_hash(&(METADATA_VERSION, hashable))
206206
}

0 commit comments

Comments
 (0)