[INFO] fetching crate psocket 0.1.5... [INFO] checking psocket-0.1.5 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [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 af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36759da0b287b39e99a9317871d4874c458ffedd37e0ddd4a94feb50fedae2d6 [INFO] running `Command { std: "docker" "start" "-a" "36759da0b287b39e99a9317871d4874c458ffedd37e0ddd4a94feb50fedae2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36759da0b287b39e99a9317871d4874c458ffedd37e0ddd4a94feb50fedae2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36759da0b287b39e99a9317871d4874c458ffedd37e0ddd4a94feb50fedae2d6", kill_on_drop: false }` [INFO] [stdout] 36759da0b287b39e99a9317871d4874c458ffedd37e0ddd4a94feb50fedae2d6 [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7944551c9c2114d04f27e82bea578524e9fa3ec9ef2b4a867a6c5f918d6cd6b4 [INFO] running `Command { std: "docker" "start" "-a" "7944551c9c2114d04f27e82bea578524e9fa3ec9ef2b4a867a6c5f918d6cd6b4", kill_on_drop: false }` [INFO] [stderr] Checking psocket v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/sys/unix/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/sys/unix/net.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use libc::{self, c_int, c_void, size_t, sockaddr, socklen_t, EAI_SYSTEM, MSG_PEEK, ssize_t}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [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] [INFO] [stdout] warning: the item `ErrorKind` is imported redundantly [INFO] [stdout] --> src/net/tcp.rs:835:9 [INFO] [stdout] | [INFO] [stdout] 835 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 836 | use std::io::prelude::*; [INFO] [stdout] 837 | use net::*; [INFO] [stdout] | ------ the item `ErrorKind` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ErrorKind` is imported redundantly [INFO] [stdout] --> src/net/udp.rs:735:9 [INFO] [stdout] | [INFO] [stdout] 735 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 736 | use net::*; [INFO] [stdout] | ------ the item `ErrorKind` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/sys/unix/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/sys/unix/net.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use libc::{self, c_int, c_void, size_t, sockaddr, socklen_t, EAI_SYSTEM, MSG_PEEK, ssize_t}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [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] [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: 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 an object-safe 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/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 an object-safe 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 an object-safe 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 an object-safe 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] 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: 11 warnings emitted [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] warning: unused import: `sys_common::AsInner` [INFO] [stdout] --> src/net/tcp.rs:839:9 [INFO] [stdout] | [INFO] [stdout] 839 | use sys_common::AsInner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sys_common::AsInner` [INFO] [stdout] --> src/net/udp.rs:739:9 [INFO] [stdout] | [INFO] [stdout] 739 | use sys_common::AsInner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 12 warnings emitted [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; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7944551c9c2114d04f27e82bea578524e9fa3ec9ef2b4a867a6c5f918d6cd6b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7944551c9c2114d04f27e82bea578524e9fa3ec9ef2b4a867a6c5f918d6cd6b4", kill_on_drop: false }` [INFO] [stdout] 7944551c9c2114d04f27e82bea578524e9fa3ec9ef2b4a867a6c5f918d6cd6b4