udp: move tokio-udp into tokio-net (#1459)

This commit is contained in:
Carl Lerche
2019-08-16 07:26:10 -07:00
committed by GitHub
parent d8b23ef852
commit ce7e60e396
16 changed files with 46 additions and 27 deletions
+10 -1
View File
@@ -13,6 +13,12 @@ fn net_with_tcp() {
use ui_tests::tokio_net::tcp;
}
#[test]
#[cfg(feature = "net-with-udp")]
fn net_with_udp() {
use ui_tests::tokio_net::udp;
}
#[test]
#[cfg(feature = "tokio-with-net")]
fn tokio_with_net() {
@@ -27,7 +33,10 @@ fn compile_fail() {
t.compile_fail("tests/ui/executor_without_current_thread.rs");
#[cfg(feature = "net-no-features")]
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs");
{
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs");
t.compile_fail("tests/ui/net_without_udp_missing_udp.rs");
}
#[cfg(feature = "tokio-no-features")]
t.compile_fail("tests/ui/tokio_without_net_missing_net.rs");