diff --git a/crates/cargo-test-support/src/compare.rs b/crates/cargo-test-support/src/compare.rs index 4a7c6a607..dae405a1c 100644 --- a/crates/cargo-test-support/src/compare.rs +++ b/crates/cargo-test-support/src/compare.rs @@ -188,7 +188,7 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) { .unwrap(); subs.insert( "[HASH]", - regex!(r"home/\.cargo/registry/src/-(?[a-z0-9]+)"), + regex!(r"home/\.cargo/registry/(cache|index|src)/-(?[a-z0-9]+)"), ) .unwrap(); subs.insert(