diff --git a/src/cargo/core/source_id.rs b/src/cargo/core/source_id.rs index 3ad9082650d..7d5d780ac12 100644 --- a/src/cargo/core/source_id.rs +++ b/src/cargo/core/source_id.rs @@ -792,16 +792,6 @@ mod tests { // the prefix components (e.g. `C:`), there is not way to have a // cross-platform stable hash for absolute paths. #[test] - fn test_cratesio_hash() { - let gctx = GlobalContext::default().unwrap(); - let crates_io = SourceId::crates_io(&gctx).unwrap(); - assert_eq!(crate::util::hex::short_hash(&crates_io), "83d63c3e13aca8cc"); - } - - // See the comment in `test_cratesio_hash`. - // - // Only test on non-Windows as paths on Windows will get different hashes. - #[test] fn test_stable_hash() { use std::hash::Hasher; use std::path::Path; diff --git a/src/cargo/sources/registry/mod.rs b/src/cargo/sources/registry/mod.rs index 6ef6f70be22..5310efad9bc 100644 --- a/src/cargo/sources/registry/mod.rs +++ b/src/cargo/sources/registry/mod.rs @@ -456,7 +456,7 @@ fn short_name(id: SourceId, is_shallow: bool) -> String { // CAUTION: This should not change between versions. If you change how // this is computed, it will orphan previously cached data, forcing the // cache to be rebuilt and potentially wasting significant disk space. If - // you change it, be cautious of the impact. See `test_cratesio_hash` for + // you change it, be cautious of the impact. See `test_stable_hash` for // a similar discussion. let hash = hex::short_hash(&id); let ident = id.url().host_str().unwrap_or("").to_string();