-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[arc_with_non_send_sync] Improve suggested resolution #11772
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @blyxyas (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty much ready, just a little improvement that I think would improve readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! ❤️ Could you squash the 4 commits into a single one?
Great! :D I don't have write access so I can't squash-merge, and squash - (force) push would need another approval. If that's fine I will get to it! |
Fixes: #11714 changelog: [`arc_with_non_send_sync`]: Suggest RC over unsafe impl Co-authored-by: Alejandra González <[email protected]>
Yeah don't worry, use |
Awesome, thanks Alejandra! |
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes: #11714
Improved the lint message for [
arc_with_non_send_sync
] to suggest usingRC
unless user needs an Arc, then suggests wrapping in a mutex, and then suggests implementingSync
andSend
.changelog: [
arc_with_non_send_sync
]: Suggest RC over unsafe impl of Send and Sync