[INFO] cloning repository https://github.com/anon767/rust-webserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anon767/rust-webserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanon767%2Frust-webserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanon767%2Frust-webserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f494664f23657a820a17d9487302e2ee84f0bdee [INFO] testing anon767/rust-webserver against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanon767%2Frust-webserver" "/workspace/builds/worker-24/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-24/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/anon767/rust-webserver on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/anon767/rust-webserver [INFO] finished tweaking git repo https://github.com/anon767/rust-webserver [INFO] tweaked toml for git repo https://github.com/anon767/rust-webserver written to /workspace/builds/worker-24/source/Cargo.toml [INFO] crate git repo https://github.com/anon767/rust-webserver already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fd6069fab0d485a867136b8221cd51e3fcefb25f704dffc8a7110c847c18cb3 [INFO] running `Command { std: "docker" "start" "-a" "2fd6069fab0d485a867136b8221cd51e3fcefb25f704dffc8a7110c847c18cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fd6069fab0d485a867136b8221cd51e3fcefb25f704dffc8a7110c847c18cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd6069fab0d485a867136b8221cd51e3fcefb25f704dffc8a7110c847c18cb3", kill_on_drop: false }` [INFO] [stdout] 2fd6069fab0d485a867136b8221cd51e3fcefb25f704dffc8a7110c847c18cb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdef0c8460fb944a2a95a2e685bd820bbba58abc9a1bdf975c55eeb18485c6fa [INFO] running `Command { std: "docker" "start" "-a" "fdef0c8460fb944a2a95a2e685bd820bbba58abc9a1bdf975c55eeb18485c6fa", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling libc v0.2.36 [INFO] [stderr] Compiling num-traits v0.1.42 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling matches v0.1.6 [INFO] [stderr] Compiling serde v1.0.27 [INFO] [stderr] Compiling ascii v0.7.1 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling rand v0.3.20 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling num-integer v0.1.35 [INFO] [stderr] Compiling num-iter v0.1.34 [INFO] [stderr] Compiling num v0.1.41 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling serde_derive_internals v0.19.0 [INFO] [stderr] Compiling uuid v0.1.18 [INFO] [stderr] Compiling serde_derive v1.0.27 [INFO] [stderr] Compiling url v0.2.38 [INFO] [stderr] Compiling tiny_http v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.9 [INFO] [stderr] Compiling webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/config.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn parse_config(content: &String) -> Result<(ConfigDocument), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - pub fn parse_config(content: &String) -> Result<(ConfigDocument), Error> { [INFO] [stdout] 18 + pub fn parse_config(content: &String) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/config.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | let config: Result<(ConfigDocument), Error> = parse_config(&content); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - let config: Result<(ConfigDocument), Error> = parse_config(&content); [INFO] [stdout] 30 + let config: Result = parse_config(&content); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::error::Error` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_json::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use server::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Response` [INFO] [stdout] --> src/main.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | use self::tiny_http::{Response, Request}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/threadpool.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | type Job = 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] 23 - type Job = Box; [INFO] [stdout] 23 + type Job = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/threadpool.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/threadpool.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `thread` [INFO] [stdout] --> src/threadpool.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | thread: thread::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `webServer` should have a snake case name [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let webServer = server::WebServer; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `web_server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | request.respond(response); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.59s [INFO] running `Command { std: "docker" "inspect" "fdef0c8460fb944a2a95a2e685bd820bbba58abc9a1bdf975c55eeb18485c6fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdef0c8460fb944a2a95a2e685bd820bbba58abc9a1bdf975c55eeb18485c6fa", kill_on_drop: false }` [INFO] [stdout] fdef0c8460fb944a2a95a2e685bd820bbba58abc9a1bdf975c55eeb18485c6fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50223c1df9b101e97429bd626a2cf6168df13d8f82e3c6ef320eb5ddfb618115 [INFO] running `Command { std: "docker" "start" "-a" "50223c1df9b101e97429bd626a2cf6168df13d8f82e3c6ef320eb5ddfb618115", kill_on_drop: false }` [INFO] [stderr] Compiling diff v0.1.11 [INFO] [stderr] Compiling getopts v0.2.16 [INFO] [stderr] Compiling filetime v0.1.15 [INFO] [stderr] Compiling serde_bytes v0.10.3 [INFO] [stdout] error[E0503]: cannot use `state` because it was mutably borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.16/src/lib.rs:1026:25 [INFO] [stdout] | [INFO] [stdout] 971 | let mut machine = |cont: &mut bool, (i, c): (usize, char)| { [INFO] [stdout] | ---------------------------------------- borrow of `state` occurs here [INFO] [stdout] ... [INFO] [stdout] 975 | state = match (state, whitespace, limit) { [INFO] [stdout] | ----- borrow occurs due to use of `state` in closure [INFO] [stdout] ... [INFO] [stdout] 1026 | while cont && match state { B | C => true, A => false } { [INFO] [stdout] | ^^^^^ use of borrowed `state` [INFO] [stdout] 1027 | machine(&mut cont, (fake_i, ' ')); [INFO] [stdout] | ------- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0503`. [INFO] [stdout] [INFO] [stderr] error: could not compile `getopts` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "50223c1df9b101e97429bd626a2cf6168df13d8f82e3c6ef320eb5ddfb618115", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50223c1df9b101e97429bd626a2cf6168df13d8f82e3c6ef320eb5ddfb618115", kill_on_drop: false }` [INFO] [stdout] 50223c1df9b101e97429bd626a2cf6168df13d8f82e3c6ef320eb5ddfb618115