File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -617,7 +617,13 @@ impl Ord for SourceKind {
617
617
// you're able to restore the hash to its original value, please do so!
618
618
// Otherwise please just leave a comment in your PR as to why the hash value is
619
619
// changing and why the old value can't be easily preserved.
620
+ //
621
+ // The hash value differs depending on endianess and bit-width since Rust 1.45
622
+ // (see https://github.com/rust-lang/rust/issues/74215). We run this test only
623
+ // on 64-bit little-endian platforms which are most commonly used for
624
+ // development and tested in CI.
620
625
#[ test]
626
+ #[ cfg( all( target_endian = "little" , target_pointer_width = "64" ) ) ]
621
627
fn test_cratesio_hash ( ) {
622
628
let config = Config :: default ( ) . unwrap ( ) ;
623
629
let crates_io = SourceId :: crates_io ( & config) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments