Skip to content

Conversation

@Icerath
Copy link
Contributor

@Icerath Icerath commented Feb 28, 2025

This safe code using this library produces UB.

A couple types had incorrect Send impls, namely linked_hash_map::Iter.

I removed the Send and Sync from RawEntryBuilder(Mut) because they just contains refs to LinkedHashMap which is already Send and Sync (RawEntryBuilder's Send impl was also incorrect).

This ends up being the same as the auto trait impl on std::collections::hash_map::Iter

@kyren
Copy link
Collaborator

kyren commented Mar 7, 2025

Yeah this looks correct to me, thank you for finding this!

I'll try to make a release soon with these fixes.

@kyren kyren merged commit d1fe8bf into djc:master Mar 7, 2025
1 check passed
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