[INFO] cloning repository https://github.com/aberezhnoy/hyper-router [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aberezhnoy/hyper-router" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faberezhnoy%2Fhyper-router", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faberezhnoy%2Fhyper-router'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c93dcd8877ddb1033a3a28b75ffa69cad180db9b [INFO] testing aberezhnoy/hyper-router against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faberezhnoy%2Fhyper-router" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aberezhnoy/hyper-router on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aberezhnoy/hyper-router [INFO] finished tweaking git repo https://github.com/aberezhnoy/hyper-router [INFO] tweaked toml for git repo https://github.com/aberezhnoy/hyper-router written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/aberezhnoy/hyper-router already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0115fced8b428f5fa36321427f6bc52383d0dbb8538aefe3012f0d8de7ea9074 [INFO] running `Command { std: "docker" "start" "-a" "0115fced8b428f5fa36321427f6bc52383d0dbb8538aefe3012f0d8de7ea9074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0115fced8b428f5fa36321427f6bc52383d0dbb8538aefe3012f0d8de7ea9074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0115fced8b428f5fa36321427f6bc52383d0dbb8538aefe3012f0d8de7ea9074", kill_on_drop: false }` [INFO] [stdout] 0115fced8b428f5fa36321427f6bc52383d0dbb8538aefe3012f0d8de7ea9074 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4d725b39a2f69fccb52bed41d26486fd4e6db2909612f9011c4ca2264a511e4d [INFO] running `Command { std: "docker" "start" "-a" "4d725b39a2f69fccb52bed41d26486fd4e6db2909612f9011c4ca2264a511e4d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling futures v0.1.21 [INFO] [stderr] Compiling byteorder v1.2.2 [INFO] [stderr] Compiling slab v0.4.0 [INFO] [stderr] Compiling lazycell v0.6.0 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling version_check v0.1.3 [INFO] [stderr] Compiling scoped-tls v0.1.1 [INFO] [stderr] Compiling take v0.1.0 [INFO] [stderr] Compiling smallvec v0.2.1 [INFO] [stderr] Compiling safemem v0.2.0 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling httparse v1.2.4 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling crossbeam-utils v0.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling unicase v2.1.0 [INFO] [stderr] Compiling base64 v0.9.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling crossbeam-epoch v0.4.1 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling net2 v0.2.32 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling bytes v0.4.6 [INFO] [stderr] Compiling mio v0.6.14 [INFO] [stderr] Compiling crossbeam-deque v0.3.0 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling mime v0.3.5 [INFO] [stderr] Compiling tokio-executor v0.1.2 [INFO] [stderr] Compiling tokio-io v0.1.6 [INFO] [stderr] Compiling tokio-service v0.1.0 [INFO] [stderr] Compiling relay v0.1.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling tokio-timer v0.2.1 [INFO] [stderr] Compiling tokio-threadpool v0.1.2 [INFO] [stderr] Compiling tokio-reactor v0.1.1 [INFO] [stderr] Compiling tokio-udp v0.1.0 [INFO] [stderr] Compiling tokio-tcp v0.1.0 [INFO] [stderr] Compiling tokio v0.1.5 [INFO] [stderr] Compiling tokio-core v0.1.17 [INFO] [stderr] Compiling tokio-proto v0.1.1 [INFO] [stderr] Compiling hyper v0.11.25 [INFO] [stderr] Compiling test-hyper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/router/utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::router::Router` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use router::router::Router; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::middleware::Middleware` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use router::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::utils::InsertBoxed` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use router::utils::InsertBoxed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::utils::get_downcast_ref` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use router::utils::get_downcast_ref; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Response` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use hyper::server::{Request, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Get`, `Post` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::Method::{Get, Post}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::Uri` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::Uri; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/router.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 - type Future = Box>; [INFO] [stdout] 63 + type Future = Box>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/utils.rs:42:70 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + '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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] 42 + pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/utils.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let y: &Any = x.unwrap(); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 29 - let y: &Any = x.unwrap(); [INFO] [stdout] 29 + let y: &dyn Any = x.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | |x, y| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/router/utils.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/router/utils.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `my_str` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub my_str: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `MyObj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v1` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub v1: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v2` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub v2: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v3` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub v3: MyObj [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/router/middleware.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/router/middleware.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_` [INFO] [stdout] --> src/router/middleware.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn get_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post` [INFO] [stdout] --> src/router/middleware.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn post(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post_` [INFO] [stdout] --> src/router/middleware.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn post_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/router/middleware.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn put(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete` [INFO] [stdout] --> src/router/middleware.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn delete(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `options` [INFO] [stdout] --> src/router/middleware.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn options(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `head` [INFO] [stdout] --> src/router/middleware.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn head(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `patch` [INFO] [stdout] --> src/router/middleware.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn patch(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/router/router.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/router/router.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add(&mut self, path: &str, middleware: Middleware) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_downcast_ref` [INFO] [stdout] --> src/router/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 36.10s [INFO] running `Command { std: "docker" "inspect" "4d725b39a2f69fccb52bed41d26486fd4e6db2909612f9011c4ca2264a511e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d725b39a2f69fccb52bed41d26486fd4e6db2909612f9011c4ca2264a511e4d", kill_on_drop: false }` [INFO] [stdout] 4d725b39a2f69fccb52bed41d26486fd4e6db2909612f9011c4ca2264a511e4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 869d045f61b6a963c9f57697fd75563778c360dd8d3af97c57ea00bdfac2c77e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "869d045f61b6a963c9f57697fd75563778c360dd8d3af97c57ea00bdfac2c77e", kill_on_drop: false }` [INFO] [stderr] Compiling test-hyper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/router/utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::router::Router` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use router::router::Router; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::middleware::Middleware` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use router::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::utils::InsertBoxed` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use router::utils::InsertBoxed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::utils::get_downcast_ref` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use router::utils::get_downcast_ref; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Response` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use hyper::server::{Request, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Get`, `Post` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::Method::{Get, Post}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::Uri` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::Uri; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/router.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 - type Future = Box>; [INFO] [stdout] 63 + type Future = Box>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/utils.rs:42:70 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + '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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] 42 + pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/router/utils.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let y: &Any = x.unwrap(); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 29 - let y: &Any = x.unwrap(); [INFO] [stdout] 29 + let y: &dyn Any = x.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | |x, y| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/router/utils.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/router/utils.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `my_str` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub my_str: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `MyObj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v1` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub v1: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v2` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub v2: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `v3` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub v3: MyObj [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/router/middleware.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/router/middleware.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_` [INFO] [stdout] --> src/router/middleware.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn get_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post` [INFO] [stdout] --> src/router/middleware.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn post(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post_` [INFO] [stdout] --> src/router/middleware.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn post_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/router/middleware.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn put(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete` [INFO] [stdout] --> src/router/middleware.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn delete(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `options` [INFO] [stdout] --> src/router/middleware.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn options(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `head` [INFO] [stdout] --> src/router/middleware.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn head(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `patch` [INFO] [stdout] --> src/router/middleware.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn patch(mut self, steps: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/router/router.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/router/router.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add(&mut self, path: &str, middleware: Middleware) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_downcast_ref` [INFO] [stdout] --> src/router/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "869d045f61b6a963c9f57697fd75563778c360dd8d3af97c57ea00bdfac2c77e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "869d045f61b6a963c9f57697fd75563778c360dd8d3af97c57ea00bdfac2c77e", kill_on_drop: false }` [INFO] [stdout] 869d045f61b6a963c9f57697fd75563778c360dd8d3af97c57ea00bdfac2c77e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3807c4d099bfe5cc804ec22e323989d4a27ec8c4b7cb9addb8650e9eae1d8062 [INFO] running `Command { std: "docker" "start" "-a" "3807c4d099bfe5cc804ec22e323989d4a27ec8c4b7cb9addb8650e9eae1d8062", kill_on_drop: false }` [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unused import: `std::borrow::Borrow` [INFO] [stderr] --> src/router/utils.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::borrow::Borrow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `router::router::Router` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use router::router::Router; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `router::middleware::Middleware` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use router::middleware::Middleware; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `router::utils::InsertBoxed` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use router::utils::InsertBoxed; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `router::utils::get_downcast_ref` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use router::utils::get_downcast_ref; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Request`, `Response` [INFO] [stderr] --> src/main.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | use hyper::server::{Request, Response}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Get`, `Post` [INFO] [stderr] --> src/main.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | use hyper::Method::{Get, Post}; [INFO] [stderr] | ^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hyper::Uri` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use hyper::Uri; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::any::Any` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use std::any::Any; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/router/router.rs:63:23 [INFO] [stderr] | [INFO] [stderr] 63 | type Future = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 63 - type Future = Box>; [INFO] [stderr] 63 + type Future = Box>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/router/utils.rs:42:70 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 42 - pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] 42 + pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/router/utils.rs:29:17 [INFO] [stderr] | [INFO] [stderr] 29 | let y: &Any = x.unwrap(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 29 - let y: &Any = x.unwrap(); [INFO] [stderr] 29 + let y: &dyn Any = x.unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:89:10 [INFO] [stderr] | [INFO] [stderr] 89 | |x, y| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/router/utils.rs:42:28 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `map` [INFO] [stderr] --> src/router/utils.rs:42:39 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `my_str` [INFO] [stderr] --> src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub my_str: String [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `MyObj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `v1` [INFO] [stderr] --> src/main.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub v1: String, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `v2` [INFO] [stderr] --> src/main.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | pub v2: u8, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `v3` [INFO] [stderr] --> src/main.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub v3: MyObj [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MyCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/router/middleware.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get` [INFO] [stderr] --> src/router/middleware.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn get(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_` [INFO] [stderr] --> src/router/middleware.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn get_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `post` [INFO] [stderr] --> src/router/middleware.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn post(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `post_` [INFO] [stderr] --> src/router/middleware.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn post_(mut self, step: MiddlewareCallback) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `put` [INFO] [stderr] --> src/router/middleware.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn put(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `delete` [INFO] [stderr] --> src/router/middleware.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn delete(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `options` [INFO] [stderr] --> src/router/middleware.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn options(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `head` [INFO] [stderr] --> src/router/middleware.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn head(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `patch` [INFO] [stderr] --> src/router/middleware.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn patch(mut self, steps: Vec) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/router/router.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add` [INFO] [stderr] --> src/router/router.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn add(&mut self, path: &str, middleware: Middleware) -> &Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_downcast_ref` [INFO] [stderr] --> src/router/utils.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn get_downcast_ref(key: &str, map: HashMap<&'static str, Box>) -> Option<&'static T> where T: Debug + 'static { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `test-hyper` (bin "test-hyper" test) generated 33 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/test_hyper-88c3e9bf93c70d61) [INFO] running `Command { std: "docker" "inspect" "3807c4d099bfe5cc804ec22e323989d4a27ec8c4b7cb9addb8650e9eae1d8062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3807c4d099bfe5cc804ec22e323989d4a27ec8c4b7cb9addb8650e9eae1d8062", kill_on_drop: false }` [INFO] [stdout] 3807c4d099bfe5cc804ec22e323989d4a27ec8c4b7cb9addb8650e9eae1d8062