Skip to content

Commit cbd4605

Browse files
committed
refactor(fingerprint): Rename an fn to disambiguate which role the metadata will be used for
1 parent 9c3c48f commit cbd4605

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ fn compute_metadata(
671671

672672
MetaInfo {
673673
meta_hash: Metadata(hasher.finish()),
674-
use_extra_filename: should_use_metadata(bcx, unit),
674+
use_extra_filename: use_extra_filename(bcx, unit),
675675
}
676676
}
677677

@@ -717,8 +717,8 @@ fn hash_rustc_version(bcx: &BuildContext<'_, '_>, hasher: &mut StableHasher, uni
717717
// between different backends without recompiling.
718718
}
719719

720-
/// Returns whether or not this unit should use a metadata hash.
721-
fn should_use_metadata(bcx: &BuildContext<'_, '_>, unit: &Unit) -> bool {
720+
/// Returns whether or not this unit should use a hash in the filename to make it unique.
721+
fn use_extra_filename(bcx: &BuildContext<'_, '_>, unit: &Unit) -> bool {
722722
if unit.mode.is_doc_test() || unit.mode.is_doc() {
723723
// Doc tests do not have metadata.
724724
return false;

0 commit comments

Comments
 (0)