We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e2a16e + aa00def commit e11cd81Copy full SHA for e11cd81
src/cargo/core/source/source_id.rs
@@ -617,7 +617,12 @@ impl Ord for SourceKind {
617
// you're able to restore the hash to its original value, please do so!
618
// Otherwise please just leave a comment in your PR as to why the hash value is
619
// changing and why the old value can't be easily preserved.
620
+//
621
+// The hash value depends on endianness and bit-width, so we only run this test on
622
+// little-endian 64-bit CPUs (such as x86-64 and ARM64) where it matches the
623
+// well-known value.
624
#[test]
625
+#[cfg(all(target_endian = "little", target_pointer_width = "64"))]
626
fn test_cratesio_hash() {
627
let config = Config::default().unwrap();
628
let crates_io = SourceId::crates_io(&config).unwrap();
0 commit comments