Skip to content

Commit

Permalink
net: fix build-tests for uds (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Sep 23, 2019
1 parent 3a55aba commit d50d050
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build-tests/tests/fail/net_without_uds_missing_uds.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use build_tests::tokio_net::udp;
use build_tests::tokio_net::uds;

fn main() {}

6 changes: 3 additions & 3 deletions build-tests/tests/fail/net_without_uds_missing_uds.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio_net::udp`
error[E0432]: unresolved import `build_tests::tokio_net::uds`
--> $DIR/net_without_uds_missing_uds.rs:1:5
|
1 | use build_tests::tokio_net::udp;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `udp` in `tokio_net`
1 | use build_tests::tokio_net::uds;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `uds` in `tokio_net`

For more information about this error, try `rustc --explain E0432`.
2 changes: 1 addition & 1 deletion build-tests/tests/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn net_with_udp() {

#[test]
#[cfg(feature = "net-with-uds")]
fn net_with_udp() {
fn net_with_uds() {
use build_tests::tokio_net::uds;
}

Expand Down

0 comments on commit d50d050

Please sign in to comment.