[INFO] fetching crate dht 0.0.6... [INFO] checking dht-0.0.6 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate dht 0.0.6 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate dht 0.0.6 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 dht 0.0.6 [INFO] finished tweaking crates.io crate dht 0.0.6 [INFO] tweaked toml for crates.io crate dht 0.0.6 written to /workspace/builds/worker-4-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 14 packages [INFO] [stderr] Adding log v0.3.9 (latest: v0.4.21) [INFO] [stderr] Adding rand v0.3.23 (latest: v0.8.5) [INFO] [stderr] Adding rand v0.4.6 (latest: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] a9e134f384ac00ea5dd5629773aeed5efcbca1199d264f1440fddd1d0b2d8706 [INFO] running `Command { std: "docker" "start" "-a" "a9e134f384ac00ea5dd5629773aeed5efcbca1199d264f1440fddd1d0b2d8706", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9e134f384ac00ea5dd5629773aeed5efcbca1199d264f1440fddd1d0b2d8706", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9e134f384ac00ea5dd5629773aeed5efcbca1199d264f1440fddd1d0b2d8706", kill_on_drop: false }` [INFO] [stdout] a9e134f384ac00ea5dd5629773aeed5efcbca1199d264f1440fddd1d0b2d8706 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] dc7ff338d23a6bbc28652fbc49dfabb29615196ce47550c241b40d41281a14e2 [INFO] running `Command { std: "docker" "start" "-a" "dc7ff338d23a6bbc28652fbc49dfabb29615196ce47550c241b40d41281a14e2", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking dht v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/base.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | let s: &str = &try!(d.read_str()); [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/base.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let s = try!(d.read_str()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | try!(s.emit_struct_field("address", 0, |s2| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | try!(s.emit_struct_field("id", 1, |s2| self.id.encode(s2))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | let addr = try!(d.read_struct_field("address", 0, |d2| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 190 | let s = try!(d2.read_str()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:200:22 [INFO] [stdout] | [INFO] [stdout] 200 | let id = try!(d.read_struct_field("id", 1, TId::decode)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/protocol.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | fn format_response(&self, Response) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Response` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/base.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | let s: &str = &try!(d.read_str()); [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/base.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let s = try!(d.read_str()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | try!(s.emit_struct_field("address", 0, |s2| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | try!(s.emit_struct_field("id", 1, |s2| self.id.encode(s2))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | let addr = try!(d.read_struct_field("address", 0, |d2| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 190 | let s = try!(d2.read_str()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/base.rs:200:22 [INFO] [stdout] | [INFO] [stdout] 200 | let id = try!(d.read_struct_field("id", 1, TId::decode)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code [INFO] [stdout] --> src/base.rs:217:28 [INFO] [stdout] | [INFO] [stdout] 217 | #[derive(Debug, Clone, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #64266 [INFO] [stdout] = note: `#[deny(soft_unstable)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/base.rs:217:28 [INFO] [stdout] | [INFO] [stdout] 217 | #[derive(Debug, Clone, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code [INFO] [stdout] --> src/base.rs:217:44 [INFO] [stdout] | [INFO] [stdout] 217 | #[derive(Debug, Clone, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #64266 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/base.rs:217:44 [INFO] [stdout] | [INFO] [stdout] 217 | #[derive(Debug, Clone, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/protocol.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | fn format_response(&self, Response) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Response` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GenericAPI` is never used [INFO] [stdout] --> src/base.rs:150:11 [INFO] [stdout] | [INFO] [stdout] 150 | pub trait GenericAPI [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/knodetable.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | panic!(format!("Distance between IDs {:?} and {:?} is {:?}, which is \ [INFO] [stdout] | ____________________^ [INFO] [stdout] 88 | | greater than the hash size ({:?})", [INFO] [stdout] 89 | | id, self.this_id, res, self.hash_size)); [INFO] [stdout] | |__________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 87 ~ panic!("Distance between IDs {:?} and {:?} is {:?}, which is \ [INFO] [stdout] 88 | greater than the hash size ({:?})", [INFO] [stdout] 89 ~ id, self.this_id, res, self.hash_size); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_node`, `find_value`, and `store` are never used [INFO] [stdout] --> src/base.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub trait GenericAPI [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 158 | fn find_node(&mut self, id: &TId, callback: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn find_value(&mut self, id: &TId, callback: F) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn store(&mut self, node: &Node, id: &TId, value: Self::TValue); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/knodetable.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | panic!(format!("Distance between IDs {:?} and {:?} is {:?}, which is \ [INFO] [stdout] | ____________________^ [INFO] [stdout] 88 | | greater than the hash size ({:?})", [INFO] [stdout] 89 | | id, self.this_id, res, self.hash_size)); [INFO] [stdout] | |__________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 87 ~ panic!("Distance between IDs {:?} and {:?} is {:?}, which is \ [INFO] [stdout] 88 | greater than the hash size ({:?})", [INFO] [stdout] 89 ~ id, self.this_id, res, self.hash_size); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dht` (lib test) due to 5 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dc7ff338d23a6bbc28652fbc49dfabb29615196ce47550c241b40d41281a14e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc7ff338d23a6bbc28652fbc49dfabb29615196ce47550c241b40d41281a14e2", kill_on_drop: false }` [INFO] [stdout] dc7ff338d23a6bbc28652fbc49dfabb29615196ce47550c241b40d41281a14e2