[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] testing y-usuzumi/web-server-rs against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fy-usuzumi%2Fweb-server-rs" "/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/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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/y-usuzumi/web-server-rs on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44878e86016e661731aea5c9ca5391146e6eb78a4a72c2597bb99ecfae60d36b [INFO] running `Command { std: "docker" "start" "-a" "44878e86016e661731aea5c9ca5391146e6eb78a4a72c2597bb99ecfae60d36b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44878e86016e661731aea5c9ca5391146e6eb78a4a72c2597bb99ecfae60d36b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44878e86016e661731aea5c9ca5391146e6eb78a4a72c2597bb99ecfae60d36b", kill_on_drop: false }` [INFO] [stdout] 44878e86016e661731aea5c9ca5391146e6eb78a4a72c2597bb99ecfae60d36b [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f36e5f2e44b345334fe603020c851c2bc077b850c20eadcb2e07c70668dee4e6 [INFO] running `Command { std: "docker" "start" "-a" "f36e5f2e44b345334fe603020c851c2bc077b850c20eadcb2e07c70668dee4e6", kill_on_drop: false }` [INFO] [stderr] Compiling 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: removed in 1.70.0; see for more information [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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible 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[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] 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)]` (part of `#[warn(unused)]`) 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] 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 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f36e5f2e44b345334fe603020c851c2bc077b850c20eadcb2e07c70668dee4e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f36e5f2e44b345334fe603020c851c2bc077b850c20eadcb2e07c70668dee4e6", kill_on_drop: false }` [INFO] [stdout] f36e5f2e44b345334fe603020c851c2bc077b850c20eadcb2e07c70668dee4e6