Skip to content

Commit 275d4e7

Browse files
authored
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
Fix test: chunks_mut_are_send_and_sync Follow-up to #100023 to make the test actually effective
2 parents 20f124a + a61c841 commit 275d4e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/tests/slice.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,6 @@ fn chunks_mut_are_send_and_sync() {
11971197
use std::slice::{ChunksExactMut, ChunksMut, RChunksExactMut, RChunksMut};
11981198
use std::sync::MutexGuard;
11991199

1200-
#[allow(unused)]
12011200
fn assert_send_and_sync()
12021201
where
12031202
ChunksMut<'static, Cell<i32>>: Send,
@@ -1210,6 +1209,8 @@ fn chunks_mut_are_send_and_sync() {
12101209
RChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
12111210
{
12121211
}
1212+
1213+
assert_send_and_sync();
12131214
}
12141215

12151216
#[test]

0 commit comments

Comments
 (0)