-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add comments regarding superfluous !Sync
impls
#87530
Conversation
r? @yaahc (rust-highfive has picked a reviewer for you, use r? to override) |
I know you mentioned this in Discord but just to reiterate here, we should check what error messages we produce with and without the explicit !Send/!Sync impls and either remove the maybe or remove the entire parenthesized section at the end of the new comments before merging. Once you've done the clarification please feel free to approve on my behalf. |
@bors delegate+ |
✌️ @bstrie can now approve this pull request |
Ping from triage: |
Ping from triage: |
Rather than rebuilding all of std just to test the error messages, I found it faster to copy the definition of Rc into its own file, since presumably the error messages will be the same. Here's the error with the explicit !Sync:
and the error without it:
So yes, this indicates that removing this impl would be a diagnostic regression. |
@bors r+ |
📌 Commit 86c0ef8 has been approved by |
@bors r+ rollup=always |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 86c0ef8 has been approved by |
Add comments regarding superfluous `!Sync` impls
Add comments regarding superfluous `!Sync` impls
Add comments regarding superfluous `!Sync` impls
Rollup of 6 pull requests Successful merges: - rust-lang#87530 (Add comments regarding superfluous `!Sync` impls) - rust-lang#90591 (treat illumos like solaris in failing ui tests which need it) - rust-lang#90678 (Add some GATs-related regression tests) - rust-lang#90688 (enable `dotprod` target feature in arm) - rust-lang#90708 (Add a note about feature(explicit_generic_args_with_impl_trait) to the relevant error message) - rust-lang#90720 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.