[INFO] cloning repository https://github.com/shqld/rust-http-etude [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shqld/rust-http-etude" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshqld%2Frust-http-etude", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshqld%2Frust-http-etude'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b634f402f253dad9bd2b6772b906a891a863684c [INFO] checking shqld/rust-http-etude against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshqld%2Frust-http-etude" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shqld/rust-http-etude on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shqld/rust-http-etude [INFO] finished tweaking git repo https://github.com/shqld/rust-http-etude [INFO] tweaked toml for git repo https://github.com/shqld/rust-http-etude written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/shqld/rust-http-etude already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c7d222ea61c6953a05adbe8a0638c95d3c4ec0a94f46fa3081122ab4ceff12a [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" "4c7d222ea61c6953a05adbe8a0638c95d3c4ec0a94f46fa3081122ab4ceff12a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c7d222ea61c6953a05adbe8a0638c95d3c4ec0a94f46fa3081122ab4ceff12a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c7d222ea61c6953a05adbe8a0638c95d3c4ec0a94f46fa3081122ab4ceff12a", kill_on_drop: false }` [INFO] [stdout] 4c7d222ea61c6953a05adbe8a0638c95d3c4ec0a94f46fa3081122ab4ceff12a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--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] 65e3eb37f27f7e11d402faa4d4b06e7943409b428ae19fb9642df967845db9e2 [INFO] running `Command { std: "docker" "start" "-a" "65e3eb37f27f7e11d402faa4d4b06e7943409b428ae19fb9642df967845db9e2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking tokio-sync v0.1.4 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking arrayvec v0.4.10 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking tokio-trace-core v0.1.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking tokio-executor v0.1.7 [INFO] [stderr] Checking crossbeam-epoch v0.7.1 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking tokio-timer v0.2.10 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking tokio-threadpool v0.1.13 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio v0.1.18 [INFO] [stderr] Checking rust-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Read`, `Take` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Take}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Read`, `Take` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Take}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HttpRequest` [INFO] [stdout] --> src/http/req.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HttpRequest<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/http/req.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(uri: &'a str, method: HttpMethod, headers: HttpHeaderMap, body: T) -> HttpRequest { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `uri` [INFO] [stdout] --> src/http/req.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn uri(&self) -> &str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `method` [INFO] [stdout] --> src/http/req.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn method(&self) -> &HttpMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `headers` [INFO] [stdout] --> src/http/req.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn headers(&self) -> &HttpHeaderMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body` [INFO] [stdout] --> src/http/req.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn body(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body_mut` [INFO] [stdout] --> src/http/req.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn body_mut(&mut self) -> &mut T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_body` [INFO] [stdout] --> src/http/req.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn into_body(self) -> T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body` [INFO] [stdout] --> src/message.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn body(&self) -> &Option>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HttpRequest` [INFO] [stdout] --> src/http/req.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HttpRequest<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/http/req.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(uri: &'a str, method: HttpMethod, headers: HttpHeaderMap, body: T) -> HttpRequest { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `uri` [INFO] [stdout] --> src/http/req.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn uri(&self) -> &str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `method` [INFO] [stdout] --> src/http/req.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn method(&self) -> &HttpMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `headers` [INFO] [stdout] --> src/http/req.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn headers(&self) -> &HttpHeaderMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body` [INFO] [stdout] --> src/http/req.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn body(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body_mut` [INFO] [stdout] --> src/http/req.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn body_mut(&mut self) -> &mut T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_body` [INFO] [stdout] --> src/http/req.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn into_body(self) -> T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `body` [INFO] [stdout] --> src/message.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn body(&self) -> &Option>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.64s [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "65e3eb37f27f7e11d402faa4d4b06e7943409b428ae19fb9642df967845db9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65e3eb37f27f7e11d402faa4d4b06e7943409b428ae19fb9642df967845db9e2", kill_on_drop: false }` [INFO] [stdout] 65e3eb37f27f7e11d402faa4d4b06e7943409b428ae19fb9642df967845db9e2