about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-11 22:53:03 +0200
committerGitHub <noreply@github.com>2022-08-11 22:53:03 +0200
commit275d4e779a3bea8b6d1bbe895d14c31e0afb6c5d (patch)
treee9eb72496801a3f3211b014137c75ef97ab618f4
parent20f124a1934cf833467ccfbe6c31daff160fec56 (diff)
parenta61c8413852a704f9f06e4fead7742fe0a7c68da (diff)
downloadrust-275d4e779a3bea8b6d1bbe895d14c31e0afb6c5d.tar.gz
rust-275d4e779a3bea8b6d1bbe895d14c31e0afb6c5d.zip
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
Fix test: chunks_mut_are_send_and_sync

Follow-up to https://github.com/rust-lang/rust/pull/100023 to make the test actually effective
-rw-r--r--library/core/tests/slice.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
index 0656109e9db..b8f6fe6961a 100644
--- a/library/core/tests/slice.rs
+++ b/library/core/tests/slice.rs
@@ -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,
@@ -1210,6 +1209,8 @@ fn chunks_mut_are_send_and_sync() {
         RChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
     {
     }
+
+    assert_send_and_sync();
 }
 
 #[test]