[INFO] cloning repository https://github.com/YannickMu/RustServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YannickMu/RustServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYannickMu%2FRustServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYannickMu%2FRustServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63eb72f7557d0d22e083abc759c0b28304b94287 [INFO] checking YannickMu/RustServer against try#dd2d87b6cc31907ae305875eb6be399783dc0256 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYannickMu%2FRustServer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YannickMu/RustServer [INFO] finished tweaking git repo https://github.com/YannickMu/RustServer [INFO] tweaked toml for git repo https://github.com/YannickMu/RustServer written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YannickMu/RustServer on toolchain dd2d87b6cc31907ae305875eb6be399783dc0256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YannickMu/RustServer already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26304900b11ac1da1d3da2caed7f1d0950f5332912b6d076a5275d854cc1136b [INFO] running `Command { std: "docker" "start" "-a" "26304900b11ac1da1d3da2caed7f1d0950f5332912b6d076a5275d854cc1136b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26304900b11ac1da1d3da2caed7f1d0950f5332912b6d076a5275d854cc1136b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26304900b11ac1da1d3da2caed7f1d0950f5332912b6d076a5275d854cc1136b", kill_on_drop: false }` [INFO] [stdout] 26304900b11ac1da1d3da2caed7f1d0950f5332912b6d076a5275d854cc1136b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 258efc662dbb8cd4482752b99e39c88bd0c282d2041d008313625ab5a6c19dd4 [INFO] running `Command { std: "docker" "start" "-a" "258efc662dbb8cd4482752b99e39c88bd0c282d2041d008313625ab5a6c19dd4", kill_on_drop: false }` [INFO] [stderr] Checking web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `threadpool::ThreadPool` [INFO] [stdout] --> src/routes.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use threadpool::ThreadPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/routes.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] 18 + type Job = Box String + Send + 'static>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `threadpool::ThreadPool` [INFO] [stdout] --> src/routes.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use threadpool::ThreadPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/routes.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] 18 + type Job = Box String + Send + 'static>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hello.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | let mut name: &str; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/server.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/server.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl Server { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(addr: String, threads: usize) -> Server { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/lib/threadpool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/lib/threadpool.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/lib/threadpool.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/lib/threadpool.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib/threadpool.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 58 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `protected` are never read [INFO] [stdout] --> src/routes.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Route<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | path: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | protected: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/routes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `GET` should have a snake case name [INFO] [stdout] --> src/routes.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | pub GET: Arc String> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/routes.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route { [INFO] [stdout] | ^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET` should have a snake case name [INFO] [stdout] --> src/routes.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hello.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | let mut name: &str; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/server.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/server.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl Server { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(addr: String, threads: usize) -> Server { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/lib/threadpool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/lib/threadpool.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/lib/threadpool.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/lib/threadpool.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib/threadpool.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 58 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `protected` are never read [INFO] [stdout] --> src/routes.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Route<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | path: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | protected: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/routes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Job = Box<(dyn FnOnce() -> String + Send + 'static)>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `GET` should have a snake case name [INFO] [stdout] --> src/routes.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | pub GET: Arc String> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/routes.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route { [INFO] [stdout] | ^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET` should have a snake case name [INFO] [stdout] --> src/routes.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(path: &str, protected: bool, GET: Arc String>) -> Route { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `get` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "258efc662dbb8cd4482752b99e39c88bd0c282d2041d008313625ab5a6c19dd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "258efc662dbb8cd4482752b99e39c88bd0c282d2041d008313625ab5a6c19dd4", kill_on_drop: false }` [INFO] [stdout] 258efc662dbb8cd4482752b99e39c88bd0c282d2041d008313625ab5a6c19dd4