[INFO] cloning repository https://github.com/henriquemrc12/http-server-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/henriquemrc12/http-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenriquemrc12%2Fhttp-server-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenriquemrc12%2Fhttp-server-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e191fdd5637e6efc43adaf27cdb7ddfb027b43a1 [INFO] checking henriquemrc12/http-server-rust against master#b44e14f762fd4062faeba97f8f2bc470298ec1ac for pr-135331 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenriquemrc12%2Fhttp-server-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/henriquemrc12/http-server-rust on toolchain b44e14f762fd4062faeba97f8f2bc470298ec1ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/henriquemrc12/http-server-rust [INFO] finished tweaking git repo https://github.com/henriquemrc12/http-server-rust [INFO] tweaked toml for git repo https://github.com/henriquemrc12/http-server-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/henriquemrc12/http-server-rust 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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1471b30f1547833cf6e19ba14f3b8aaa9e4f9503437397ba2d5f2a74096ccab [INFO] running `Command { std: "docker" "start" "-a" "c1471b30f1547833cf6e19ba14f3b8aaa9e4f9503437397ba2d5f2a74096ccab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1471b30f1547833cf6e19ba14f3b8aaa9e4f9503437397ba2d5f2a74096ccab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1471b30f1547833cf6e19ba14f3b8aaa9e4f9503437397ba2d5f2a74096ccab", kill_on_drop: false }` [INFO] [stdout] c1471b30f1547833cf6e19ba14f3b8aaa9e4f9503437397ba2d5f2a74096ccab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 558182c26af0d3113139caa21eb681c80e02b0a6d2b1055f60b86eae11ca11c0 [INFO] running `Command { std: "docker" "start" "-a" "558182c26af0d3113139caa21eb681c80e02b0a6d2b1055f60b86eae11ca11c0", kill_on_drop: false }` [INFO] [stderr] Checking http_server_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/main.rs:51:83 [INFO] [stdout] | [INFO] [stdout] 51 | let template_string = fs::read_to_string(format!("templates/{template_name}")) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 52 | let template: &str = template_string.expect("REASON").as_str(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/main.rs:51:83 [INFO] [stdout] | [INFO] [stdout] 51 | let template_string = fs::read_to_string(format!("templates/{template_name}")) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 52 | let template: &str = template_string.expect("REASON").as_str(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | response = format!("{status_line}\r\nContent-Length: {content_length}\r\n\r\n{contents}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn item, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected fn item `fn() -> String {String::new}` [INFO] [stdout] found struct `String` [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | response = format!("{status_line}\r\nContent-Length: {content_length}\r\n\r\n{contents}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn item, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected fn item `fn() -> String {String::new}` [INFO] [stdout] found struct `String` [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:50:48 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_template_string(template_name: &str) -> &str { [INFO] [stdout] | ------------------- ^^^^ expected `&str`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 53 | template; [INFO] [stdout] | - help: remove this semicolon to return this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:50:48 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_template_string(template_name: &str) -> &str { [INFO] [stdout] | ------------------- ^^^^ expected `&str`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 53 | template; [INFO] [stdout] | - help: remove this semicolon to return this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http_server_example` (bin "http_server_example" test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `http_server_example` (bin "http_server_example") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "558182c26af0d3113139caa21eb681c80e02b0a6d2b1055f60b86eae11ca11c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "558182c26af0d3113139caa21eb681c80e02b0a6d2b1055f60b86eae11ca11c0", kill_on_drop: false }` [INFO] [stdout] 558182c26af0d3113139caa21eb681c80e02b0a6d2b1055f60b86eae11ca11c0