Skip to content

Commit

Permalink
Rollup merge of rust-lang#100112 - RalfJung:assert_send_and_sync, r=m…
Browse files Browse the repository at this point in the history
…-ou-se

Fix test: chunks_mut_are_send_and_sync

Follow-up to rust-lang#100023 to make the test actually effective
  • Loading branch information
matthiaskrgr authored Aug 11, 2022
2 parents 20f124a + a61c841 commit 275d4e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/tests/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,6 @@ fn chunks_mut_are_send_and_sync() {
use std::slice::{ChunksExactMut, ChunksMut, RChunksExactMut, RChunksMut};
use std::sync::MutexGuard;

#[allow(unused)]
fn assert_send_and_sync()
where
ChunksMut<'static, Cell<i32>>: Send,
Expand All @@ -1210,6 +1209,8 @@ fn chunks_mut_are_send_and_sync() {
RChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
{
}

assert_send_and_sync();
}

#[test]
Expand Down

0 comments on commit 275d4e7

Please sign in to comment.