[INFO] fetching crate connected_socket 0.0.6... [INFO] checking connected_socket-0.0.6 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate connected_socket 0.0.6 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate connected_socket 0.0.6 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate connected_socket 0.0.6 [INFO] finished tweaking crates.io crate connected_socket 0.0.6 [INFO] tweaked toml for crates.io crate connected_socket 0.0.6 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2630d552469660c79077a46263b25ba7312b5c71d7d2687dc0fdfdd73b3d181a [INFO] running `Command { std: "docker" "start" "-a" "2630d552469660c79077a46263b25ba7312b5c71d7d2687dc0fdfdd73b3d181a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2630d552469660c79077a46263b25ba7312b5c71d7d2687dc0fdfdd73b3d181a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2630d552469660c79077a46263b25ba7312b5c71d7d2687dc0fdfdd73b3d181a", kill_on_drop: false }` [INFO] [stdout] 2630d552469660c79077a46263b25ba7312b5c71d7d2687dc0fdfdd73b3d181a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49af74c2d80e44b71ad2c05254d6cd9224ece6193f412cee42521953b2c99d04 [INFO] running `Command { std: "docker" "start" "-a" "49af74c2d80e44b71ad2c05254d6cd9224ece6193f412cee42521953b2c99d04", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Checking byteorder v0.3.13 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking connected_socket v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use libc::funcs::bsd43::connect; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use libc::types::os::common::bsd44::socklen_t; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use libc::types::os::common::bsd44::sockaddr_in; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | use libc::types::os::common::bsd44::sockaddr_in6; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::types::os::common::bsd44::in_addr; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | use libc::types::os::common::bsd44::in6_addr; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | use libc::types::os::common::bsd44::sa_family_t; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use libc::types::os::common::posix01::timeval; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | use libc::funcs::bsd43::setsockopt; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | use libc::consts::os::bsd44::SOL_SOCKET; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | use libc::consts::os::bsd44::AF_INET; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | use libc::consts::os::bsd44::AF_INET6; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | use libc::types::os::arch::c95::c_int; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | use libc::types::os::arch::c95::c_char; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | use libc::types::common::c95::c_void; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | use libc::funcs::bsd43::send; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | use libc::funcs::bsd43::recv; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use libc::funcs::bsd43::connect; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use libc::types::os::common::bsd44::socklen_t; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use libc::types::os::common::bsd44::sockaddr_in; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | use libc::types::os::common::bsd44::sockaddr_in6; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::types::os::common::bsd44::in_addr; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | use libc::types::os::common::bsd44::in6_addr; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | use libc::types::os::common::bsd44::sa_family_t; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use libc::types::os::common::posix01::timeval; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | use libc::funcs::bsd43::setsockopt; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | use libc::consts::os::bsd44::SOL_SOCKET; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | use libc::consts::os::bsd44::AF_INET; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/lib.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | use libc::consts::os::bsd44::AF_INET6; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | use libc::types::os::arch::c95::c_int; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | use libc::types::os::arch::c95::c_char; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | use libc::types::common::c95::c_void; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | use libc::funcs::bsd43::send; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/lib.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | use libc::funcs::bsd43::recv; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | const SO_RCVTIMEO:c_int = 20; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_char; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:41:60 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:41:71 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | V4(sockaddr_in), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | V6(sockaddr_in6), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 75 | enum SockaddrIn { [INFO] [stdout] | --------------- similarly named enum `SockaddrIn` defined here [INFO] [stdout] ... [INFO] [stdout] 82 | fn new_sockaddr_in() -> sockaddr_in { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 82 | fn new_sockaddr_in() -> SockaddrIn { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:83:2 [INFO] [stdout] | [INFO] [stdout] 83 | sockaddr_in { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/lib.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | sin_family: AF_INET as sa_family_t, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::AF_INET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope [INFO] [stdout] --> src/lib.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | sin_family: AF_INET as sa_family_t, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sa_family_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in_addr` in this scope [INFO] [stdout] --> src/lib.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | sin_addr: in_addr { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::in_addr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 75 | enum SockaddrIn { [INFO] [stdout] | --------------- similarly named enum `SockaddrIn` defined here [INFO] [stdout] ... [INFO] [stdout] 109 | fn new_sockaddr_in6() -> sockaddr_in6 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 109 | fn new_sockaddr_in6() -> SockaddrIn { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:110:2 [INFO] [stdout] | [INFO] [stdout] 110 | sockaddr_in6 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in this scope [INFO] [stdout] --> src/lib.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | sin6_family: AF_INET6 as sa_family_t, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::AF_INET6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope [INFO] [stdout] --> src/lib.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | sin6_family: AF_INET6 as sa_family_t, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sa_family_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in6_addr` in this scope [INFO] [stdout] --> src/lib.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | sin6_addr: in6_addr { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::in6_addr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:150:35 [INFO] [stdout] | [INFO] [stdout] 150 | inet_pton(addr.sin_family as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:169:36 [INFO] [stdout] | [INFO] [stdout] 169 | inet_pton(addr.sin6_family as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | let len = mem::size_of_val(&s) as socklen_t; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `connect` in this scope [INFO] [stdout] --> src/lib.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to call the method [INFO] [stdout] | [INFO] [stdout] 205 | self.connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::connect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:208:39 [INFO] [stdout] | [INFO] [stdout] 208 | let len = mem::size_of_val(&s) as socklen_t; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `connect` in this scope [INFO] [stdout] --> src/lib.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to call the method [INFO] [stdout] | [INFO] [stdout] 210 | self.connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::connect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:226:38 [INFO] [stdout] | [INFO] [stdout] 226 | let ptr = buf.as_mut_ptr() as *mut c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `recv` in this scope [INFO] [stdout] --> src/lib.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | recv(self.as_raw_fd(), ptr, buf.len() as u64, flags) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:244:36 [INFO] [stdout] | [INFO] [stdout] 244 | let ptr = buf.as_ptr() as *const c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `send` in this scope [INFO] [stdout] --> src/lib.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | send(self.as_raw_fd(), ptr, buf.len() as u64, flags) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `timeval` in this scope [INFO] [stdout] --> src/lib.rs:267:12 [INFO] [stdout] | [INFO] [stdout] 267 | let tv = timeval { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::timeval; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setsockopt` in this scope [INFO] [stdout] --> src/lib.rs:273:4 [INFO] [stdout] | [INFO] [stdout] 273 | setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::setsockopt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOL_SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::SOL_SOCKET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | mem::transmute(&tv), mem::size_of_val(&tv) as socklen_t) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | let addr = try!(address.to_socket_addrs()).next(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:199:15 [INFO] [stdout] | [INFO] [stdout] 199 | let saddr = try!(addr.unwrap().into_sockaddr_in()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | const SO_RCVTIMEO:c_int = 20; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_char; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:41:60 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:41:71 [INFO] [stdout] | [INFO] [stdout] 41 | fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | V4(sockaddr_in), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | V6(sockaddr_in6), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 75 | enum SockaddrIn { [INFO] [stdout] | --------------- similarly named enum `SockaddrIn` defined here [INFO] [stdout] ... [INFO] [stdout] 82 | fn new_sockaddr_in() -> sockaddr_in { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 82 | fn new_sockaddr_in() -> SockaddrIn { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in` in this scope [INFO] [stdout] --> src/lib.rs:83:2 [INFO] [stdout] | [INFO] [stdout] 83 | sockaddr_in { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/lib.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | sin_family: AF_INET as sa_family_t, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::AF_INET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope [INFO] [stdout] --> src/lib.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | sin_family: AF_INET as sa_family_t, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sa_family_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in_addr` in this scope [INFO] [stdout] --> src/lib.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | sin_addr: in_addr { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::in_addr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 75 | enum SockaddrIn { [INFO] [stdout] | --------------- similarly named enum `SockaddrIn` defined here [INFO] [stdout] ... [INFO] [stdout] 109 | fn new_sockaddr_in6() -> sockaddr_in6 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 109 | fn new_sockaddr_in6() -> SockaddrIn { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in6` in this scope [INFO] [stdout] --> src/lib.rs:110:2 [INFO] [stdout] | [INFO] [stdout] 110 | sockaddr_in6 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sockaddr_in6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in this scope [INFO] [stdout] --> src/lib.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | sin6_family: AF_INET6 as sa_family_t, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::AF_INET6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope [INFO] [stdout] --> src/lib.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | sin6_family: AF_INET6 as sa_family_t, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::sa_family_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in6_addr` in this scope [INFO] [stdout] --> src/lib.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | sin6_addr: in6_addr { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::in6_addr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:150:35 [INFO] [stdout] | [INFO] [stdout] 150 | inet_pton(addr.sin_family as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:169:36 [INFO] [stdout] | [INFO] [stdout] 169 | inet_pton(addr.sin6_family as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_int; [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | let len = mem::size_of_val(&s) as socklen_t; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `connect` in this scope [INFO] [stdout] --> src/lib.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to call the method [INFO] [stdout] | [INFO] [stdout] 205 | self.connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::connect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:208:39 [INFO] [stdout] | [INFO] [stdout] 208 | let len = mem::size_of_val(&s) as socklen_t; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `connect` in this scope [INFO] [stdout] --> src/lib.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to call the method [INFO] [stdout] | [INFO] [stdout] 210 | self.connect(fd, mem::transmute(&*addrp), len) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::connect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:226:38 [INFO] [stdout] | [INFO] [stdout] 226 | let ptr = buf.as_mut_ptr() as *mut c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `recv` in this scope [INFO] [stdout] --> src/lib.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | recv(self.as_raw_fd(), ptr, buf.len() as u64, flags) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:244:36 [INFO] [stdout] | [INFO] [stdout] 244 | let ptr = buf.as_ptr() as *const c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `send` in this scope [INFO] [stdout] --> src/lib.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | send(self.as_raw_fd(), ptr, buf.len() as u64, flags) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `timeval` in this scope [INFO] [stdout] --> src/lib.rs:267:12 [INFO] [stdout] | [INFO] [stdout] 267 | let tv = timeval { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use libc::timeval; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setsockopt` in this scope [INFO] [stdout] --> src/lib.rs:273:4 [INFO] [stdout] | [INFO] [stdout] 273 | setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use libc::setsockopt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOL_SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 5 | use libc::SOL_SOCKET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope [INFO] [stdout] --> src/lib.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | mem::transmute(&tv), mem::size_of_val(&tv) as socklen_t) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use libc::socklen_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | let addr = try!(address.to_socket_addrs()).next(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:199:15 [INFO] [stdout] | [INFO] [stdout] 199 | let saddr = try!(addr.unwrap().into_sockaddr_in()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:186:59 [INFO] [stdout] | [INFO] [stdout] 186 | fn connect(self, addr: &A) -> Result,Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] note: required because it appears within the type `ConnectedSocket` [INFO] [stdout] --> src/lib.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ConnectedSocket { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 186 | fn connect(self, addr: &A) -> Result,Error> where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:186:59 [INFO] [stdout] | [INFO] [stdout] 186 | fn connect(self, addr: &A) -> Result,Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] note: required because it appears within the type `ConnectedSocket` [INFO] [stdout] --> src/lib.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ConnectedSocket { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 186 | fn connect(self, addr: &A) -> Result,Error> where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `connected_socket` due to 50 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "49af74c2d80e44b71ad2c05254d6cd9224ece6193f412cee42521953b2c99d04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49af74c2d80e44b71ad2c05254d6cd9224ece6193f412cee42521953b2c99d04", kill_on_drop: false }` [INFO] [stdout] 49af74c2d80e44b71ad2c05254d6cd9224ece6193f412cee42521953b2c99d04