Skip to content

Conversation

@joboet
Copy link
Member

@joboet joboet commented Nov 17, 2025

rust-lang/rust#135634 started the process of removing the #[rustc_unsafe_specialization_marker] on Copy in favour of a newly added trait TrivialClone that allows sound specialisation by virtue of only being implemented if the Clone implementation is always equivalent to a copy. However, removing the attribute entirely was not possible in rust-lang/rust#135634 as hashbrown contains a Copy specialisation. Thus, this PR removes the relevant specialisation from hashbrown and switches it to specialise on TrivialClone instead.

@Amanieu Amanieu added this pull request to the merge queue Nov 17, 2025
Merged via the queue into rust-lang:master with commit 01bb41c Nov 17, 2025
25 checks passed
bors added a commit to rust-lang/rust that referenced this pull request Nov 22, 2025
library: upgrade to hashbrown v0.16.1

This is another step toward unspecializing `Copy`.

See also #135634 and rust-lang/hashbrown#662

r? `@Amanieu`
cc `@joboet`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants