-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
slice::Chunks[Exact]Mut
are no longer Send + Sync
after #94247
#100014
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
use std::cell::Cell;
use std::sync::MutexGuard;
use std::slice::{ChunksExactMut, ChunksMut};
fn foo()
where
ChunksMut<'static, Cell<i32>>: Send,
ChunksMut<'static, MutexGuard<'static, u32>>: Sync,
ChunksExactMut<'static, Cell<i32>>: Send,
ChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
{
} |
lcnr
added
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
labels
Aug 1, 2022
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Aug 1, 2022
@rustbot claim |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-high |
rustbot
added
P-high
High priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Aug 3, 2022
workingjubilee
pushed a commit
to tcdi/postgrestd
that referenced
this issue
Sep 15, 2022
Add back Send and Sync impls on ChunksMut iterators Fixes rust-lang/rust#100014 These were accidentally removed in #94247 because the representation was changed from `&mut [T]` to `*mut T`, which has `!Send + !Sync`.
RalfJung
pushed a commit
to RalfJung/rust-analyzer
that referenced
this issue
Apr 20, 2024
Add back Send and Sync impls on ChunksMut iterators Fixes rust-lang/rust#100014 These were accidentally removed in #94247 because the representation was changed from `&mut [T]` to `*mut T`, which has `!Send + !Sync`.
RalfJung
pushed a commit
to RalfJung/rust-analyzer
that referenced
this issue
Apr 27, 2024
Add back Send and Sync impls on ChunksMut iterators Fixes rust-lang/rust#100014 These were accidentally removed in #94247 because the representation was changed from `&mut [T]` to `*mut T`, which has `!Send + !Sync`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
I tried this code (Playground):
I expected to see this happen: Successful compilation (as it does in 1.62.1)
Instead, this happened:
Meta
rustc --version --verbose
:The problem doesn't occur with
nightly-2022-07-27
(pre-#94247).The text was updated successfully, but these errors were encountered: