[INFO] cloning repository https://github.com/y-usuzumi/web-server-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/y-usuzumi/web-server-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fy-usuzumi%2Fweb-server-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fy-usuzumi%2Fweb-server-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72bb440407614db10dc5ff2f59ceec87d891dd07 [INFO] checking y-usuzumi/web-server-rs against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fy-usuzumi%2Fweb-server-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/y-usuzumi/web-server-rs 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 git repo https://github.com/y-usuzumi/web-server-rs [INFO] finished tweaking git repo https://github.com/y-usuzumi/web-server-rs [INFO] tweaked toml for git repo https://github.com/y-usuzumi/web-server-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/y-usuzumi/web-server-rs 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] f99cbdfb66c8eb2dbc24e57ae641fbd703887dd33c94b0c3a7c421c6501484fd [INFO] running `Command { std: "docker" "start" "-a" "f99cbdfb66c8eb2dbc24e57ae641fbd703887dd33c94b0c3a7c421c6501484fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f99cbdfb66c8eb2dbc24e57ae641fbd703887dd33c94b0c3a7c421c6501484fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f99cbdfb66c8eb2dbc24e57ae641fbd703887dd33c94b0c3a7c421c6501484fd", kill_on_drop: false }` [INFO] [stdout] f99cbdfb66c8eb2dbc24e57ae641fbd703887dd33c94b0c3a7c421c6501484fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 0261e23c8df1a4e7d2cf743cfe193497481d6c5e2f415bfc664265c3b153a74a [INFO] running `Command { std: "docker" "start" "-a" "0261e23c8df1a4e7d2cf743cfe193497481d6c5e2f415bfc664265c3b153a74a", kill_on_drop: false }` [INFO] [stderr] Checking webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_blocks, box_syntax, trait_alias)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_blocks, box_syntax, trait_alias)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/server.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | handlers: HashMap<(String, String), Box> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | handlers: HashMap<(String, String), Box> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/server.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | handlers: HashMap<(String, String), Box> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | handlers: HashMap<(String, String), Box> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn run(&self) { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |______________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn run(&self) { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |______________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/server.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(|| { [INFO] [stdout] | ^^ may outlive borrowed value `self` [INFO] [stdout] 42 | self.handle_connection(&mut stream); [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/server.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(|| { [INFO] [stdout] | ^^ may outlive borrowed value `self` [INFO] [stdout] 42 | self.handle_connection(&mut stream); [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `stream`, which is owned by the current function [INFO] [stdout] --> src/server.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(|| { [INFO] [stdout] | ^^ may outlive borrowed value `stream` [INFO] [stdout] 42 | self.handle_connection(&mut stream); [INFO] [stdout] | ------ `stream` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] help: to force the closure to take ownership of `stream` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `stream`, which is owned by the current function [INFO] [stdout] --> src/server.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(|| { [INFO] [stdout] | ^^ may outlive borrowed value `stream` [INFO] [stdout] 42 | self.handle_connection(&mut stream); [INFO] [stdout] | ------ `stream` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/server.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / pool.execute(|| { [INFO] [stdout] 42 | | self.handle_connection(&mut stream); [INFO] [stdout] 43 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] help: to force the closure to take ownership of `stream` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 41 | pool.execute(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/thread_pool.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(cnt: usize) -> ThreadPool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/thread_pool.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn execute(&self, f: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/thread_pool.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(cnt: usize) -> ThreadPool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/thread_pool.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn execute(&self, f: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0521, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0521, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `webserver` (lib) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `webserver` (lib test) due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0261e23c8df1a4e7d2cf743cfe193497481d6c5e2f415bfc664265c3b153a74a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0261e23c8df1a4e7d2cf743cfe193497481d6c5e2f415bfc664265c3b153a74a", kill_on_drop: false }` [INFO] [stdout] 0261e23c8df1a4e7d2cf743cfe193497481d6c5e2f415bfc664265c3b153a74a