[INFO] fetching crate psocket 0.1.5... [INFO] building psocket-0.1.5 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate psocket 0.1.5 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate psocket 0.1.5 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate psocket 0.1.5 [INFO] finished tweaking crates.io crate psocket 0.1.5 [INFO] tweaked toml for crates.io crate psocket 0.1.5 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8432218c118b4f1333b5e13fcb310f1276b1fcf6cc2c849ef4d305ac40c8216e [INFO] running `Command { std: "docker" "start" "-a" "8432218c118b4f1333b5e13fcb310f1276b1fcf6cc2c849ef4d305ac40c8216e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8432218c118b4f1333b5e13fcb310f1276b1fcf6cc2c849ef4d305ac40c8216e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8432218c118b4f1333b5e13fcb310f1276b1fcf6cc2c849ef4d305ac40c8216e", kill_on_drop: false }` [INFO] [stdout] 8432218c118b4f1333b5e13fcb310f1276b1fcf6cc2c849ef4d305ac40c8216e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bbcf83018667a508371c33ce13a3a32cbb877c589df1d8e061c7908b4537e8d [INFO] running `Command { std: "docker" "start" "-a" "6bbcf83018667a508371c33ce13a3a32cbb877c589df1d8e061c7908b4537e8d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling psocket v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `dox` [INFO] [stdout] --> src/sys/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(all(dox, not(windows)))] [INFO] [stdout] | ^^^ help: there is a config with a similar name: `doc` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(dox)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(dox)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::accept4` [INFO] [stdout] --> src/sys/unix/net.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use libc::accept4; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | target_os = "haiku", target_os = "bitrig"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | target_os = "haiku", target_os = "bitrig")))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/net/parser.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/net/parser.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_error_kind` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn decode_error_kind(errno: i32) -> ErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abort_internal` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn abort_internal() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsInnerMut` is never used [INFO] [stdout] --> src/sys_common/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait AsInnerMut { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sys/unix/net.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 392 | Self::set_cloexec(fd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 392 | let _ = Self::set_cloexec(fd); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sys/unix/net.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | Self::set_cloexec(fd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = Self::set_cloexec(fd); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "6bbcf83018667a508371c33ce13a3a32cbb877c589df1d8e061c7908b4537e8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bbcf83018667a508371c33ce13a3a32cbb877c589df1d8e061c7908b4537e8d", kill_on_drop: false }` [INFO] [stdout] 6bbcf83018667a508371c33ce13a3a32cbb877c589df1d8e061c7908b4537e8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7aa2270380a85557ceb9e59facb712379ec90c2af65d3c78986ab4753622096 [INFO] running `Command { std: "docker" "start" "-a" "a7aa2270380a85557ceb9e59facb712379ec90c2af65d3c78986ab4753622096", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unexpected `cfg` condition name: `dox` [INFO] [stdout] --> src/sys/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(all(dox, not(windows)))] [INFO] [stdout] | ^^^ help: there is a config with a similar name: `doc` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(dox)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(dox)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::accept4` [INFO] [stdout] --> src/sys/unix/net.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use libc::accept4; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling psocket v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | target_os = "haiku", target_os = "bitrig"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | target_os = "haiku", target_os = "bitrig")))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/net/parser.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/net/parser.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_error_kind` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn decode_error_kind(errno: i32) -> ErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abort_internal` is never used [INFO] [stdout] --> src/sys/unix/mod.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn abort_internal() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsInnerMut` is never used [INFO] [stdout] --> src/sys_common/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait AsInnerMut { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sys/unix/net.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 392 | Self::set_cloexec(fd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 392 | let _ = Self::set_cloexec(fd); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sys/unix/net.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | Self::set_cloexec(fd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = Self::set_cloexec(fd); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/net/tcp.rs:1442:20 [INFO] [stdout] | [INFO] [stdout] 1442 | #[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/net/udp.rs:912:20 [INFO] [stdout] | [INFO] [stdout] 912 | #[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `dox` [INFO] [stdout] --> src/sys/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(all(dox, not(windows)))] [INFO] [stdout] | ^^^ help: there is a config with a similar name: `doc` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(dox)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(dox)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::accept4` [INFO] [stdout] --> src/sys/unix/net.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use libc::accept4; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::signal` [INFO] [stdout] --> src/sys/unix/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub use libc::signal; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | target_os = "haiku", target_os = "bitrig"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `bitrig` [INFO] [stdout] --> src/sys_common/net.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | target_os = "haiku", target_os = "bitrig")))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/net/parser.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn read_or(&mut self, parsers: &mut [Box Option + 'static>]) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/net/tcp.rs:855:24 [INFO] [stdout] | [INFO] [stdout] 855 | fn each_ip(f: &mut FnMut(SocketAddr)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 855 | fn each_ip(f: &mut dyn FnMut(SocketAddr)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/net/udp.rs:743:24 [INFO] [stdout] | [INFO] [stdout] 743 | fn each_ip(f: &mut FnMut(SocketAddr, SocketAddr)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 743 | fn each_ip(f: &mut dyn FnMut(SocketAddr, SocketAddr)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/net/parser.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `socket` found for struct `sys_common::net::TcpSocket` in the current scope [INFO] [stdout] --> src/net/tcp.rs:1422:41 [INFO] [stdout] | [INFO] [stdout] 1422 | let listener_inner = listener.0.socket().as_inner(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/sys_common/net.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct TcpSocket { [INFO] [stdout] | -------------------- method `socket` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `socket_addr` with a similar name [INFO] [stdout] | [INFO] [stdout] 1422 | let listener_inner = listener.0.socket_addr().as_inner(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `socket` found for struct `sys_common::net::TcpSocket` in the current scope [INFO] [stdout] --> src/net/tcp.rs:1429:37 [INFO] [stdout] | [INFO] [stdout] 1429 | let stream_inner = stream.0.socket().as_inner(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/sys_common/net.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct TcpSocket { [INFO] [stdout] | -------------------- method `socket` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `socket_addr` with a similar name [INFO] [stdout] | [INFO] [stdout] 1429 | let stream_inner = stream.0.socket_addr().as_inner(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `socket` found for struct `sys_common::net::UdpSocket` in the current scope [INFO] [stdout] --> src/net/udp.rs:904:39 [INFO] [stdout] | [INFO] [stdout] 904 | let udpsock_inner = udpsock.0.socket().as_inner(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/sys_common/net.rs:591:1 [INFO] [stdout] | [INFO] [stdout] 591 | pub struct UdpSocket { [INFO] [stdout] | -------------------- method `socket` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `socket_addr` with a similar name [INFO] [stdout] | [INFO] [stdout] 904 | let udpsock_inner = udpsock.0.socket_addr().as_inner(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/net/tcp.rs:1123:19 [INFO] [stdout] | [INFO] [stdout] 1122 | let _listener = t!(TcpSocket::bind(&addr)); [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `_listener` calls a custom destructor [INFO] [stdout] | `_listener` will be dropped later as of Edition 2024 [INFO] [stdout] 1123 | match TcpSocket::bind(&addr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1132 | }) [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> src/sys/unix/net.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | / impl Drop for Socket { [INFO] [stdout] 591 | | fn drop(&mut self) { [INFO] [stdout] 592 | | if self.socket == INVALID_SOCKET || self.is_close() { [INFO] [stdout] 593 | | return; [INFO] [stdout] ... | [INFO] [stdout] 597 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `_listener` invokes this custom destructor [INFO] [stdout] --> src/sys/unix/net.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | / impl Drop for Socket { [INFO] [stdout] 591 | | fn drop(&mut self) { [INFO] [stdout] 592 | | if self.socket == INVALID_SOCKET || self.is_close() { [INFO] [stdout] 593 | | return; [INFO] [stdout] ... | [INFO] [stdout] 597 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `psocket` (lib test) due to 4 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a7aa2270380a85557ceb9e59facb712379ec90c2af65d3c78986ab4753622096", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7aa2270380a85557ceb9e59facb712379ec90c2af65d3c78986ab4753622096", kill_on_drop: false }` [INFO] [stdout] a7aa2270380a85557ceb9e59facb712379ec90c2af65d3c78986ab4753622096