uds: move into tokio-net (#1462)

This commit is contained in:
Carl Lerche
2019-08-16 14:42:05 -07:00
committed by GitHub
parent 4935aae164
commit a83f5e4ba6
28 changed files with 90 additions and 178 deletions
@@ -0,0 +1,4 @@
use build_tests::tokio_net::udp;
fn main() {}
@@ -0,0 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio_net::udp`
--> $DIR/net_without_uds_missing_uds.rs:1:5
|
1 | use build_tests::tokio_net::udp;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `udp` in `tokio_net`
For more information about this error, try `rustc --explain E0432`.
+7
View File
@@ -19,6 +19,12 @@ fn net_with_udp() {
use build_tests::tokio_net::udp;
}
#[test]
#[cfg(feature = "net-with-uds")]
fn net_with_udp() {
use build_tests::tokio_net::uds;
}
#[test]
#[cfg(feature = "tokio-with-net")]
fn tokio_with_net() {
@@ -36,6 +42,7 @@ fn compile_fail() {
{
t.compile_fail("tests/fail/net_without_tcp_missing_tcp.rs");
t.compile_fail("tests/fail/net_without_udp_missing_udp.rs");
t.compile_fail("tests/fail/net_without_uds_missing_uds.rs");
}
#[cfg(feature = "tokio-no-features")]