Skip to content

Commit de44054

Browse files
committed
Remove hard-coded index.html in fingerprint function.
1 parent 935adb3 commit de44054

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/cargo/core/compiler/fingerprint.rs

+6-13
Original file line numberDiff line numberDiff line change
@@ -1068,19 +1068,12 @@ fn calculate_normal<'a, 'cfg>(
10681068

10691069
// Figure out what the outputs of our unit is, and we'll be storing them
10701070
// into the fingerprint as well.
1071-
let outputs = if unit.mode.is_doc() {
1072-
vec![cx
1073-
.files()
1074-
.out_dir(unit)
1075-
.join(unit.target.crate_name())
1076-
.join("index.html")]
1077-
} else {
1078-
cx.outputs(unit)?
1079-
.iter()
1080-
.filter(|output| output.flavor != FileFlavor::DebugInfo)
1081-
.map(|output| output.path.clone())
1082-
.collect()
1083-
};
1071+
let outputs = cx
1072+
.outputs(unit)?
1073+
.iter()
1074+
.filter(|output| output.flavor != FileFlavor::DebugInfo)
1075+
.map(|output| output.path.clone())
1076+
.collect();
10841077

10851078
// Fill out a bunch more information that we'll be tracking typically
10861079
// hashed to take up less space on disk as we just need to know when things

0 commit comments

Comments
 (0)