Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy fixes: make some lifetimes anonymous and add send/sync to types::BoundRef #260

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

apoelstra
Copy link
Collaborator

@apoelstra apoelstra commented Jan 11, 2025

types::BoundRef is an internal type which includes a sort of weak pointer to an Arc containing a slab allocation used by the type inference engine.

It is Send and Sync by construction but the compiler does not recognize this because it includes a raw pointer. Add explicit implementations with a safety comment explaining why it is okay.

Fixes #258

Copy link
Collaborator Author

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 5696096 successfully ran local tests

Copy link
Collaborator

@uncomputable uncomputable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5696096

@uncomputable uncomputable merged commit 7f14121 into master Jan 12, 2025
27 checks passed
@uncomputable uncomputable deleted the 2025-01--send-sync branch January 12, 2025 19:37
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.

Arcs cannot be sent across threads
2 participants