This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit e5e539c
Auto merge of rust-lang#93014 - Kobzol:revert-92103-stable-hash-skip-zero-bytes, r=the8472
Revert "Do not hash leading zero bytes of i64 numbers in Sip128 hasher"
Reverts rust-lang#92103. It had a (in retrospect, obvious) correctness problem where changing the order of two adjacent values would produce identical hashes, which is problematic in stable hashing (see [this comment](rust-lang#92103 (comment))).
I'll try to send the PR again with a fix for this issue.
r? `@the8472`1 parent 9f7c5dc commit e5e539c
File tree
2 files changed
+4
-18
lines changed- compiler/rustc_data_structures/src
- src/test/debuginfo
2 files changed
+4
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 412 | | |
427 | 413 | | |
428 | 414 | | |
| |||
436 | 422 | | |
437 | 423 | | |
438 | 424 | | |
439 | | - | |
| 425 | + | |
440 | 426 | | |
441 | 427 | | |
442 | 428 | | |
| |||
466 | 452 | | |
467 | 453 | | |
468 | 454 | | |
469 | | - | |
| 455 | + | |
470 | 456 | | |
471 | 457 | | |
472 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments