Files
rust/compiler/rustc_span/src
Jacob Pratt 24223a62ae Rollup merge of #154744 - nnethercote:rm-Clone-for-StableHashingContext, r=fee1-dead
Remove `Clone` impl for `StableHashingContext`.

`HashStable::hash_stable` takes a `&mut Hcx`. In contrast, `ToStableHashKey::to_stable_hash_key` takes a `&Hcx`. But there are some places where the latter calls the former, and due to the mismatch a `clone` call is required to get a mutable `StableHashingContext`.

This commit changes `to_stable_hash_key` to instead take a `&mut Hcx`. This eliminates the mismatch, the need for the clones, and the need for the `Clone` impls.

r? @fee1-dead
2026-04-05 20:51:06 -04:00
..
2025-01-08 21:26:39 +01:00
2025-06-30 20:42:27 +10:00
2025-12-08 00:24:28 +01:00
2026-04-01 17:52:43 +11:00
2026-03-11 06:25:23 +11:00
2025-08-10 23:01:45 +00:00