id
stringlengths
22
133
text
stringlengths
40
40.2k
arch
stringclasses
1 value
syntax
stringclasses
1 value
kind
stringclasses
4 values
repo
stringclasses
27 values
path
stringlengths
5
116
license
stringclasses
6 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
16 values
source_url
stringlengths
85
196
line_start
int64
1
4.28k
line_end
int64
4
4.31k
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
async_assert_fn!(tokio::io::AsyncReadExt::read_u32_le(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_i32_le(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_u64_le(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::A...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
tokio::io::AsyncWriteExt::write_u32(&mut BoxAsyncWrite, u32): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i32(&mut BoxAsyncWrite, i32): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u64(&mut BoxAsyncWrite, u64): Send & Sync & !Unpin ); async_assert_fn!( ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69/tokio/tests/async_send_sync.rs
641
700
tokio-rs/tokio:tokio/tests/async_send_sync.rs:18
); async_assert_fn!( tokio::io::AsyncWriteExt::write_u128_le(&mut BoxAsyncWrite, u128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i128_le(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_f32_le(&mut BoxAsyncWrite, f32): Send...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69/tokio/tests/async_send_sync.rs
681
733
tokio-rs/tokio:tokio/tests/async_send_sync.rs:19
async_assert_fn!(AsyncFd<ImplsFd<YY>>::readable(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::readable_mut(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable_mut(_): Send & Sync & !Unpin); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2e0372be6f2fd03e5534aa73e6970c9a6e7bcd69/tokio/tests/async_send_sync.rs
721
733
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(NamedPipeServer::readable(_): Send & Sync & !Unpin); async_assert_fn!(NamedPipeServer::ready(_, tokio::io::Interest): Send & Sync & !Unpin); async_assert_fn!(NamedPipeServer::writable(_): Send & Sync & !Unpin); } cfg_not_wasi! { mod test_process { use super::*; assert_value...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
assert_value!(tokio::sync::MappedMutexGuard<'_, NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::MappedMutexGuard<'_, YN>: Send & !Sync & Unpin); assert_value!(tokio::sync::MappedMutexGuard<'_, YY>: Send & Sync & Unpin); assert_value!(tokio::sync::Mutex<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::Mut...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
321
380
tokio-rs/tokio:tokio/tests/async_send_sync.rs:10
assert_value!(tokio::sync::TryAcquireError: Send & Sync & Unpin); assert_value!(tokio::sync::TryLockError: Send & Sync & Unpin); assert_value!(tokio::sync::broadcast::Receiver<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::broadcast::Receiver<YN>: Send & Sync & Unpin); assert_value!(tokio::sync::broadcast::Rec...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
361
420
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
assert_value!(tokio::sync::oneshot::Sender<YN>: Send & Sync & Unpin); assert_value!(tokio::sync::oneshot::Sender<YY>: Send & Sync & Unpin); assert_value!(tokio::sync::watch::Receiver<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::watch::Receiver<YN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::watch::Re...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::sync::OnceCell<YY>::get_or_init( _, fn() -> Pin<Box<dyn Future<Output = YY> + Send>>): Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::OnceCell<YY>::get_or_init( _, fn() -> Pin<Box<dyn Future<Output = YY>>>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::OnceCell<YY>::get_or_try_i...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
async_assert_fn!(tokio::sync::mpsc::UnboundedSender<YN>::closed(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::UnboundedSender<YY>::closed(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::oneshot::Sender<NN>::closed(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::oneshot::Sender<YN>::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
assert_value!(tokio::time::Timeout<BoxFutureSend<()>>: Send & !Sync & !Unpin); assert_value!(tokio::time::Timeout<BoxFuture<()>>: !Send & !Sync & !Unpin); assert_value!(tokio::time::error::Elapsed: Send & Sync & Unpin); assert_value!(tokio::time::error::Error: Send & Sync & Unpin); async_assert_fn!(tokio::time::advance...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
async_assert_fn!(tokio::io::sink(): Send & Sync & Unpin); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync & Unpin); async_assert_fn!(tokio::io::stderr(): Send & Sync & Unpin); async_assert_fn!(tokio::io::stdin(): Send & Sync & Unpin); async_assert_fn!(tokio::io::stdout(): Send & Sync & Unpin); async_assert_fn...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
async_assert_fn!( tokio::io::AsyncReadExt::read_to_string(&mut BoxAsyncRead, &mut String): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncSeekExt::seek(&mut BoxAsyncSeek, SeekFrom): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncSeekExt::stream_position(&mut BoxAsyncSeek): Send & Sync & !Unpin); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
tokio::io::AsyncWriteExt::write_i64(&mut BoxAsyncWrite, i64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u128(&mut BoxAsyncWrite, u128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i128(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); async_assert_f...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
641
700
tokio-rs/tokio:tokio/tests/async_send_sync.rs:18
); async_assert_fn!( tokio::io::AsyncWriteExt::write_f64_le(&mut BoxAsyncWrite, f64): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt::flush(&mut BoxAsyncWrite): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::shutdown(&mut BoxAsyncWrite): Send & Sync & !Unpin); #[cfg(unix)] mod...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
939b5bb42f36981ad1dc7dd7a7942718f2d61a5f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/939b5bb42f36981ad1dc7dd7a7942718f2d61a5f/tokio/tests/async_send_sync.rs
681
724
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
(Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { require_send(&$value); }; (!Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { AmbiguousIfSend::some_item(&$value); }; } macro_rules! async_assert_fn_sync { ($(!)?Send & Sync & $(!)?Unpin, $value:expr) => { require_sync(&$value); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
6929decf2cdb391e26f0e5c8d742f7aef51743b9
github
async-runtime
https://github.com/tokio-rs/tokio/blob/6929decf2cdb391e26f0e5c8d742f7aef51743b9/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
const _: fn() = || { let f: $type = todo!(); async_assert_fn_send!($($tok)*, f); async_assert_fn_sync!($($tok)*, f); async_assert_fn_unpin!($($tok)*, f); }; }; } macro_rules! cfg_not_wasi { ($($item:item)*) => { $( #[cfg(not(tokio_wasi...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
6929decf2cdb391e26f0e5c8d742f7aef51743b9
github
async-runtime
https://github.com/tokio-rs/tokio/blob/6929decf2cdb391e26f0e5c8d742f7aef51743b9/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
(Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { require_send(&$value); }; (!Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { AmbiguousIfSend::some_item(&$value); }; } macro_rules! async_assert_fn_sync { ($(!)?Send & Sync & $(!)?Unpin, $value:expr) => { require_sync(&$value); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
const _: fn() = || { let f: $type = todo!(); async_assert_fn_send!($($tok)*, f); async_assert_fn_sync!($($tok)*, f); async_assert_fn_unpin!($($tok)*, f); }; }; } macro_rules! cfg_not_wasi { ($($item:item)*) => { $( #[cfg(not(tokio_wasi...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::rename(&str, &str): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::set_permissions(&str, std::fs::Permissions): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::symlink_metadata(&str): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::write(&str, Vec<u8>): Send...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::net::TcpStream::writable(_): Send & Sync & !Unpin); // Wasi does not support UDP cfg_not_wasi! { mod udp_socket { use super::*; assert_value!(tokio::net::UdpSocket: Send & Sync & Unpin); async_assert_fn!(tokio::net::UdpSocket::bind(SocketAddr): Send & Sync & !Unpin);...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(UnixDatagram::send(_, &[u8]): Send & Sync & !Unpin); async_assert_fn!(UnixDatagram::send_to(_, &[u8], &str): Send & Sync & !Unpin); async_assert_fn!(UnixDatagram::writable(_): Send & Sync & !Unpin); async_assert_fn!(UnixListener::accept(_): Send & Sync & !Unpin); async_assert_fn!(UnixSt...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
241
300
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(tokio::process::Child::wait_with_output(_): Send & Sync & !Unpin); } async_assert_fn!(tokio::signal::ctrl_c(): Send & Sync & !Unpin); } #[cfg(unix)] mod unix_signal { use super::*; assert_value!(tokio::signal::unix::Signal: Send & Sync & Unpin); assert_value!(tokio::signal::unix::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
assert_value!(tokio::sync::OwnedMutexGuard<YY>: Send & Sync & Unpin); assert_value!(tokio::sync::OwnedRwLockMappedWriteGuard<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::OwnedRwLockMappedWriteGuard<YN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::OwnedRwLockMappedWriteGuard<YY>: Send & Sync & Unpin); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
321
380
tokio-rs/tokio:tokio/tests/async_send_sync.rs:10
assert_value!(tokio::sync::mpsc::Receiver<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::mpsc::Receiver<YN>: Send & Sync & Unpin); assert_value!(tokio::sync::mpsc::Receiver<YY>: Send & Sync & Unpin); assert_value!(tokio::sync::mpsc::Sender<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::mpsc::Sender<YN...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
361
420
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
assert_value!(tokio::task::JoinSet<NN>: !Send & !Sync & Unpin); assert_value!(tokio::task::JoinSet<YN>: Send & Sync & Unpin); assert_value!(tokio::task::JoinSet<YY>: Send & Sync & Unpin); assert_value!(tokio::task::LocalSet: !Send & !Sync & Unpin); async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync & !Unpin); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
async_assert_fn!(tokio::task::JoinSet<u32>::join_next(_): Send & Sync & !Unpin); async_assert_fn!(tokio::task::JoinSet<u32>::shutdown(_): Send & Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFuture<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
assert_value!(tokio::io::BufReader<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufStream<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufWriter<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::DuplexStream: Send & Sync & Unpin); assert_value!(tokio::io::Empty: Send & Sync & Unpin)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
tokio::io::AsyncReadExt::read_exact(&mut BoxAsyncRead, &mut [u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncReadExt::read_u8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_i8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::r...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
tokio::io::AsyncWriteExt::write_all_buf(&mut BoxAsyncWrite, &mut bytes::Bytes): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): Send & Sync &...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
tokio::io::AsyncWriteExt::write_u16_le(&mut BoxAsyncWrite, u16): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i16_le(&mut BoxAsyncWrite, i16): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u32_le(&mut BoxAsyncWrite, u32): Send & Sync & !Unpin ); async_ass...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
641
700
tokio-rs/tokio:tokio/tests/async_send_sync.rs:18
impl<T> std::os::unix::io::AsRawFd for ImplsFd<T> { fn as_raw_fd(&self) -> std::os::unix::io::RawFd { unreachable!() } } assert_value!(AsyncFd<ImplsFd<YY>>: Send & Sync & Unpin); assert_value!(AsyncFd<ImplsFd<YN>>: Send & !Sync & Unpin); assert_value!(AsyncFd<ImplsFd<NN>>: !...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
ce5d2a466f6cbad6e5496bbb0df852c7429b8303
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ce5d2a466f6cbad6e5496bbb0df852c7429b8303/tokio/tests/async_send_sync.rs
681
709
tokio-rs/tokio:tokio/tests/async_send_sync.rs:10
assert_value!(tokio::sync::mpsc::Receiver<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::mpsc::Receiver<YN>: Send & Sync & Unpin); assert_value!(tokio::sync::mpsc::Receiver<YY>: Send & Sync & Unpin); assert_value!(tokio::sync::mpsc::Sender<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::mpsc::Sender<YN...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
361
420
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::Mutex<YN>::lock_owned(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::Mutex<YY>::lock(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::Mutex<YY>::lock_owned(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::Notify::notified(_): Send & Sync & !Unpin); async_assert_fn...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::sync::mpsc::Sender<NN>::reserve_owned(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Sender<NN>::send(_, NN): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Sender<NN>::send_timeout(_, NN, Duration): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
async_assert_fn!(tokio::task::unconstrained(BoxFutureSync<()>): Send & Sync & Unpin); assert_value!(tokio::task::JoinError: Send & Sync & Unpin); assert_value!(tokio::task::JoinHandle<NN>: !Send & !Sync & Unpin); assert_value!(tokio::task::JoinHandle<YN>: Send & Sync & Unpin); assert_value!(tokio::task::JoinHandle<YY>:...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSend<()>): Send & !Sync & !Unpin); async_assert_fn!(tokio::time::timeout_at(Instant, BoxFuture<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::time::Interval::tick(_): Send & Sync & !Unpin); assert_value!(tokio::io::BufReader<TcpStream>: Send & Sync & U...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
async_assert_fn!(tokio::io::AsyncBufReadExt::fill_buf(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read(&mut BoxAsyncRead, &mut [u8]): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_buf(&mut BoxAsyncRead, &mut Vec<u8>): Send & Sync & !Unpin); async_assert_f...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
& Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_all_buf(&mut BoxAsyncWrite, &mut bytes::Bytes): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
async_assert_fn!( tokio::io::AsyncWriteExt::write_f64(&mut BoxAsyncWrite, f64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u16_le(&mut BoxAsyncWrite, u16): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i16_le(&mut BoxAsyncWrite, i16): Send & Sync & ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
641
700
tokio-rs/tokio:tokio/tests/async_send_sync.rs:18
struct ImplsFd<T> { _t: T, } impl<T> std::os::unix::io::AsRawFd for ImplsFd<T> { fn as_raw_fd(&self) -> std::os::unix::io::RawFd { unreachable!() } } assert_value!(AsyncFd<ImplsFd<YY>>: Send & Sync & Unpin); assert_value!(AsyncFd<ImplsFd<YN>>: Send & !Sync & Unpi...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/async_send_sync.rs
681
713
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
(Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { require_send(&$value); }; (!Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { AmbiguousIfSend::some_item(&$value); }; } macro_rules! async_assert_fn_sync { ($(!)?Send & Sync & $(!)?Unpin, $value:expr) => { require_sync(&$value); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
6d3f92dddc510e9276191cfab1b0432ce8248589
github
async-runtime
https://github.com/tokio-rs/tokio/blob/6d3f92dddc510e9276191cfab1b0432ce8248589/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
const _: fn() = || { let f: $type = todo!(); async_assert_fn_send!($($tok)*, f); async_assert_fn_sync!($($tok)*, f); async_assert_fn_unpin!($($tok)*, f); }; }; } macro_rules! cfg_not_wasi { ($($item:item)*) => { $( #[cfg(not(target_os ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
6d3f92dddc510e9276191cfab1b0432ce8248589
github
async-runtime
https://github.com/tokio-rs/tokio/blob/6d3f92dddc510e9276191cfab1b0432ce8248589/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
(Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { require_send(&$value); }; (!Send & $(!)?Sync & $(!)?Unpin, $value:expr) => { AmbiguousIfSend::some_item(&$value); }; } macro_rules! async_assert_fn_sync { ($(!)?Send & Sync & $(!)?Unpin, $value:expr) => { require_sync(&$value); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
const _: fn() = || { let f: $type = todo!(); async_assert_fn_send!($($tok)*, f); async_assert_fn_sync!($($tok)*, f); async_assert_fn_unpin!($($tok)*, f); }; }; } assert_value!(tokio::fs::DirBuilder: Send & Sync & Unpin); assert_value!(tokio::fs::DirEntry: Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::sync_data(_): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::File::set_len(_, u64): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::File::metadata(_): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::File::try_clone(_): Send & Sync & !Unpin); async_assert_fn!(tokio::fs::File::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
assert_value!(UnixDatagram: Send & Sync & Unpin); assert_value!(UnixListener: Send & Sync & Unpin); assert_value!(UnixStream: Send & Sync & Unpin); assert_value!(unix::OwnedReadHalf: Send & Sync & Unpin); assert_value!(unix::OwnedWriteHalf: Send & Sync & Unpin); assert_value!(unix::ReadHalf<'_>: Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(NamedPipeServer::ready(_, tokio::io::Interest): Send & Sync & !Unpin); async_assert_fn!(NamedPipeServer::writable(_): Send & Sync & !Unpin); } assert_value!(tokio::process::Child: Send & Sync & Unpin); assert_value!(tokio::process::ChildStderr: Send & Sync & Unpin); assert_value!(tokio::process::C...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
241
300
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
assert_value!(tokio::sync::MutexGuard<'_, YN>: Send & !Sync & Unpin); assert_value!(tokio::sync::MutexGuard<'_, YY>: Send & Sync & Unpin); assert_value!(tokio::sync::Notify: Send & Sync & Unpin); assert_value!(tokio::sync::OnceCell<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::OnceCell<YN>: Send & !Sync & Unp...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
assert_value!(tokio::sync::broadcast::Sender<YY>: Send & Sync & Unpin); assert_value!(tokio::sync::futures::Notified<'_>: Send & Sync & !Unpin); assert_value!(tokio::sync::mpsc::OwnedPermit<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::mpsc::OwnedPermit<YN>: Send & Sync & Unpin); assert_value!(tokio::sync::mp...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
321
380
tokio-rs/tokio:tokio/tests/async_send_sync.rs:10
assert_value!(tokio::sync::watch::Ref<'_, YY>: !Send & Sync & Unpin); assert_value!(tokio::sync::watch::Sender<NN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::watch::Sender<YN>: !Send & !Sync & Unpin); assert_value!(tokio::sync::watch::Sender<YY>: Send & Sync & Unpin); async_assert_fn!(tokio::sync::Barrier::wai...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
361
420
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFutureSend<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFutureSync<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync & !Unpi...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
tokio::io::AsyncWriteExt::write_u128(&mut BoxAsyncWrite, u128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i128(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_f32(&mut BoxAsyncWrite, f32): Send & Sync & !Unpin ); async_assert_f...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
); async_assert_fn!(tokio::io::AsyncWriteExt::flush(&mut BoxAsyncWrite): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::shutdown(&mut BoxAsyncWrite): Send & Sync & !Unpin); #[cfg(unix)] mod unix_asyncfd { use super::*; use tokio::io::unix::*; struct ImplsFd<T> { _t: T, } ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
08d49532b4179d9209a92a5a4c425e63d76218fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/08d49532b4179d9209a92a5a4c425e63d76218fe/tokio/tests/async_send_sync.rs
641
681
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
37917b821d58f2ce3f7be109bf4d309d78bd8740
github
async-runtime
https://github.com/tokio-rs/tokio/blob/37917b821d58f2ce3f7be109bf4d309d78bd8740/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFutureSend<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFutureSync<()>): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync & !Unpi...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
37917b821d58f2ce3f7be109bf4d309d78bd8740
github
async-runtime
https://github.com/tokio-rs/tokio/blob/37917b821d58f2ce3f7be109bf4d309d78bd8740/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
1bb4d2316232a77d048e8797ba04d796911ffe30
github
async-runtime
https://github.com/tokio-rs/tokio/blob/1bb4d2316232a77d048e8797ba04d796911ffe30/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::task::JoinSet<Rc<u32>>::shutdown(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::task::JoinSet<u32>::join_one(_): Send & Sync & !Unpin); async_assert_fn!(tokio::task::JoinSet<u32>::shutdown(_): Send & Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, Box...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
1bb4d2316232a77d048e8797ba04d796911ffe30
github
async-runtime
https://github.com/tokio-rs/tokio/blob/1bb4d2316232a77d048e8797ba04d796911ffe30/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
tokio::io::AsyncWriteExt::write_i128(&mut BoxAsyncWrite, i128): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_f32(&mut BoxAsyncWrite, f32): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_f64(&mut BoxAsyncWrite, f64): Send & Sync & !Unpin ); async_assert_fn!...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
1bb4d2316232a77d048e8797ba04d796911ffe30
github
async-runtime
https://github.com/tokio-rs/tokio/blob/1bb4d2316232a77d048e8797ba04d796911ffe30/tokio/tests/async_send_sync.rs
601
660
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
#[cfg(unix)] mod unix_asyncfd { use super::*; use tokio::io::unix::*; struct ImplsFd<T> { _t: T, } impl<T> std::os::unix::io::AsRawFd for ImplsFd<T> { fn as_raw_fd(&self) -> std::os::unix::io::RawFd { unreachable!() } } assert_value!(AsyncFd<ImplsFd<YY>>...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
1bb4d2316232a77d048e8797ba04d796911ffe30
github
async-runtime
https://github.com/tokio-rs/tokio/blob/1bb4d2316232a77d048e8797ba04d796911ffe30/tokio/tests/async_send_sync.rs
641
678
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
362df5a3172f6e1bdee2fd3808e5cfc730a111f6
github
async-runtime
https://github.com/tokio-rs/tokio/blob/362df5a3172f6e1bdee2fd3808e5cfc730a111f6/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSend<()>): Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFuture<()>): !Se...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
362df5a3172f6e1bdee2fd3808e5cfc730a111f6
github
async-runtime
https://github.com/tokio-rs/tokio/blob/362df5a3172f6e1bdee2fd3808e5cfc730a111f6/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
tokio::io::AsyncWriteExt::write_all_buf(&mut BoxAsyncWrite, &mut bytes::Bytes): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): Send & Sync &...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
106bb948962c50d79bb2ad0530211bdf438d7f27
github
async-runtime
https://github.com/tokio-rs/tokio/blob/106bb948962c50d79bb2ad0530211bdf438d7f27/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
tokio::io::AsyncWriteExt::write_u32_le(&mut BoxAsyncWrite, u32): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i32_le(&mut BoxAsyncWrite, i32): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u64_le(&mut BoxAsyncWrite, u64): Send & Sync & !Unpin ); async_ass...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
106bb948962c50d79bb2ad0530211bdf438d7f27
github
async-runtime
https://github.com/tokio-rs/tokio/blob/106bb948962c50d79bb2ad0530211bdf438d7f27/tokio/tests/async_send_sync.rs
601
657
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
assert_value!(AsyncFdReadyMutGuard<'_, ImplsFd<YY>>: Send & Sync & Unpin); assert_value!(AsyncFdReadyMutGuard<'_, ImplsFd<YN>>: Send & !Sync & Unpin); assert_value!(AsyncFdReadyMutGuard<'_, ImplsFd<NN>>: !Send & !Sync & Unpin); assert_value!(TryIoError: Send & Sync & Unpin); async_assert_fn!(AsyncFd<Imp...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
106bb948962c50d79bb2ad0530211bdf438d7f27
github
async-runtime
https://github.com/tokio-rs/tokio/blob/106bb948962c50d79bb2ad0530211bdf438d7f27/tokio/tests/async_send_sync.rs
641
657
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
assert_value!(tokio::io::BufReader<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufStream<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufWriter<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::DuplexStream: Send & Sync & Unpin); assert_value!(tokio::io::Empty: Send & Sync & Unpin)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
3340ae6aa913bfbe712e05f25250b62572424f4e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/3340ae6aa913bfbe712e05f25250b62572424f4e/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
tokio::io::AsyncReadExt::read_exact(&mut BoxAsyncRead, &mut [u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncReadExt::read_u8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_i8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::r...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
3340ae6aa913bfbe712e05f25250b62572424f4e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/3340ae6aa913bfbe712e05f25250b62572424f4e/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
async_assert_fn!( tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_i8(&mut BoxAsyncWrite, i8): Send & Sync & !Unpin); async_asse...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
3340ae6aa913bfbe712e05f25250b62572424f4e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/3340ae6aa913bfbe712e05f25250b62572424f4e/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
); async_assert_fn!( tokio::io::AsyncWriteExt::write_u64_le(&mut BoxAsyncWrite, u64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i64_le(&mut BoxAsyncWrite, i64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u128_le(&mut BoxAsyncWrite, u128): Send &...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
3340ae6aa913bfbe712e05f25250b62572424f4e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/3340ae6aa913bfbe712e05f25250b62572424f4e/tokio/tests/async_send_sync.rs
601
653
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
assert_value!(tokio::io::BufReader<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufStream<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufWriter<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::DuplexStream: Send & Sync & Unpin); assert_value!(tokio::io::Empty: Send & Sync & Unpin)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
); async_assert_fn!(tokio::io::AsyncReadExt::read_u8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_i8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_u16(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncRead...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): Send & Sync & !Unpin ); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_i8(&mut BoxAsyncWrite, i8): Send & Sync & !Unpin); async_assert_fn!( tokio::io:...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
async_assert_fn!( tokio::io::AsyncWriteExt::write_u64_le(&mut BoxAsyncWrite, u64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i64_le(&mut BoxAsyncWrite, i64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u128_le(&mut BoxAsyncWrite, u128): Send & Sy...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b/tokio/tests/async_send_sync.rs
601
652
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
async_assert_fn!(AsyncFd<ImplsFd<YY>>::readable_mut(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable_mut(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YN>>::readable(_): !Send & !Sync & !Unpin)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/aef2d64b0a519ff6726f8c139ee1d3e6b1959b0b/tokio/tests/async_send_sync.rs
641
652
tokio-rs/tokio:tokio/tests/async_send_sync.rs:11
async_assert_fn!(tokio::sync::broadcast::Receiver<NN>::recv(_): !Send & !Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YN>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::broadcast::Receiver<YY>::recv(_): Send & Sync & !Unpin); async_assert_fn!(tokio::sync::mpsc::Receiver<NN>::recv(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
401
460
tokio-rs/tokio:tokio/tests/async_send_sync.rs:12
async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSend<()>): Send & !Sync & !Unpin); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFuture<()>): !Se...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
441
500
tokio-rs/tokio:tokio/tests/async_send_sync.rs:13
assert_value!(tokio::io::BufStream<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::BufWriter<TcpStream>: Send & Sync & Unpin); assert_value!(tokio::io::DuplexStream: Send & Sync & Unpin); assert_value!(tokio::io::Empty: Send & Sync & Unpin); assert_value!(tokio::io::Interest: Send & Sync & Unpin); assert_val...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
481
540
tokio-rs/tokio:tokio/tests/async_send_sync.rs:14
async_assert_fn!(tokio::io::AsyncReadExt::read_u8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_i8(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read_u16(&mut BoxAsyncRead): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncReadExt...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
521
580
tokio-rs/tokio:tokio/tests/async_send_sync.rs:15
); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): Send & Sync & !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_i8(&mut BoxAsyncWrite, i8): Send & Sync & !Unpin); async_assert_fn!( tokio::io::AsyncWriteExt::write_u16(&mut BoxAsyncWrite, u16): Send & Sync & !Unpin ); async_ass...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
561
620
tokio-rs/tokio:tokio/tests/async_send_sync.rs:16
tokio::io::AsyncWriteExt::write_u64_le(&mut BoxAsyncWrite, u64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_i64_le(&mut BoxAsyncWrite, i64): Send & Sync & !Unpin ); async_assert_fn!( tokio::io::AsyncWriteExt::write_u128_le(&mut BoxAsyncWrite, u128): Send & Sync & !Unpin ); async_a...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
601
651
tokio-rs/tokio:tokio/tests/async_send_sync.rs:17
async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YY>>::writable_mut(_): Send & Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YN>>::readable(_): !Send & !Sync & !Unpin); async_assert_fn!(AsyncFd<ImplsFd<YN>>::readable_mut(_): Send & !Sync & !Unpin...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7a11cfd77a00d383f090a876768f34c66d5dc538
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7a11cfd77a00d383f090a876768f34c66d5dc538/tokio/tests/async_send_sync.rs
641
651
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] #![allow(clippy::type_complexity, clippy::diverging_sub_expression)] use std::cell::Cell; use std::future::Future; use std::io::{Cursor, SeekFrom}; use std::net::SocketAddr; use std::pin::Pin; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, I...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
impl<T: ?Sized> AmbiguousIfSend<()> for T {} impl<T: ?Sized + Send> AmbiguousIfSend<Invalid> for T {} trait AmbiguousIfSync<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfSync<()> for T {} impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {} trait AmbiguousIfUnpin<A> { fn some_item(&self) {} } i...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
($type:ty: Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f: $type = todo!(); require_send(&f); AmbiguousIfSync::some_item(&f); }; }; ($type:ty: !Send & !Sync) => { #[allow(unreachable_...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
const _: fn() = || { let f = $($f $(::<$($generic),*>)? )::+( $( into_todo!($arg) ),* ); require_send(&f); AmbiguousIfSync::some_item(&f); }; }; ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & Sync) => { #[allow(unreachable_code)] #[a...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
} async_assert_fn!(tokio::io::copy(&mut TcpStream, &mut TcpStream): Send & Sync); async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::fs::File::try_clone(_): Send & Sync); async_assert_fn!(tokio::fs::File::into_std(_): Send & Sync); async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock_owned(_): !Send & !Sync); async_assert_fn!(tokio::sync::Notify::notified(_): Send & Sync); async_assert_fn!(tokio::sync::RwLock<u8>::read(_): Send & Sync); async_assert_fn!(tokio::sync::RwLock<u8>::write(_): Send & Sync); async_assert_fn!(tokio::sync::RwLock<Cell<u8>>::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
241
300
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(tokio::sync::OnceCell<Cell<u8>>::get_or_init( _, fn() -> Pin<Box<dyn Future<Output = Cell<u8>>>>): !Send & !Sync); async_assert_fn!(tokio::sync::OnceCell<Rc<u8>>::get_or_init( _, fn() -> Pin<Box<dyn Future<Output = Rc<u8>> + Send + Sync>>): !Send & !Sync); async_assert_fn!(tokio::sync::OnceCell...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
async_assert_fn!(tokio::time::Interval::tick(_): !Unpin); async_assert_fn!(tokio::io::AsyncBufReadExt::read_until(&mut BoxAsyncRead, u8, &mut Vec<u8>): !Unpin); async_assert_fn!(tokio::io::AsyncBufReadExt::read_line(&mut BoxAsyncRead, &mut String): !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read(&mut BoxAsyncRe...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d8b37d51a7d0cdf5a0fbf754240c929fb69e9f2/tokio/tests/async_send_sync.rs
321
368
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] #![allow(clippy::type_complexity)] use std::cell::Cell; use std::future::Future; use std::io::{Cursor, SeekFrom}; use std::net::SocketAddr; use std::pin::Pin; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, Instant}; #[allow(dead_code)] type...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
f6e4e85dfb60459e3ff430a7480f37338548e014
github
async-runtime
https://github.com/tokio-rs/tokio/blob/f6e4e85dfb60459e3ff430a7480f37338548e014/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use std::cell::Cell; use std::io::{Cursor, SeekFrom}; use std::net::SocketAddr; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, Instant}; #[allow(dead_code)] type BoxFutureSync<T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
trait AmbiguousIfSync<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfSync<()> for T {} impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {} trait AmbiguousIfUnpin<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfUnpin<()> for T {} impl<T: ?Sized + Unpin> AmbiguousIfUnpin<Invalid> for T {}...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
const _: fn() = || { let f: $type = todo!(); require_send(&f); AmbiguousIfSync::some_item(&f); }; }; ($type:ty: !Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f: $type = todo!(); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
AmbiguousIfSync::some_item(&f); }; }; ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f = $($f $(::<$($generic),*>)? )::+( $( into_todo!($arg) ),* ); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio::io::stderr(): Send & Sync); async_assert_fn!(tokio::io::stdin(): Send & Sync); as...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::accept(_): Send & Sync); async_assert_fn!(tokio::net::TcpStream::connect(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpStre...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::sync::RwLock<u8>::write(_): Send & Sync); async_assert_fn!(tokio::sync::RwLock<Cell<u8>>::read(_): !Send & !Sync); async_assert_fn!(tokio::sync::RwLock<Cell<u8>>::write(_): !Send & !Sync); async_assert_fn!(tokio::sync::RwLock<Rc<u8>>::read(_): !Send & !Sync); async_assert_fn!(tokio::sync::RwLock...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
241
300