[INFO] cloning repository https://github.com/mahdiGhorbanzadeh/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mahdiGhorbanzadeh/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmahdiGhorbanzadeh%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmahdiGhorbanzadeh%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] debcdb27d4bf50549f21f22e53d5455653814cdf [INFO] testing mahdiGhorbanzadeh/learning-rust against try#311784882baa42a9638298cb325fa01a062c9d0f+cargoflags=-Zbuild-dir-new-layout for pr-149852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmahdiGhorbanzadeh%2Flearning-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mahdiGhorbanzadeh/learning-rust [INFO] finished tweaking git repo https://github.com/mahdiGhorbanzadeh/learning-rust [INFO] tweaked toml for git repo https://github.com/mahdiGhorbanzadeh/learning-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mahdiGhorbanzadeh/learning-rust on toolchain 311784882baa42a9638298cb325fa01a062c9d0f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mahdiGhorbanzadeh/learning-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" "+311784882baa42a9638298cb325fa01a062c9d0f" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ea5e2b6902c7e268574fae3e822f1e95fe2bb46c30dad5f312c9e4c88cdd4b3 [INFO] running `Command { std: "docker" "start" "-a" "5ea5e2b6902c7e268574fae3e822f1e95fe2bb46c30dad5f312c9e4c88cdd4b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ea5e2b6902c7e268574fae3e822f1e95fe2bb46c30dad5f312c9e4c88cdd4b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ea5e2b6902c7e268574fae3e822f1e95fe2bb46c30dad5f312c9e4c88cdd4b3", kill_on_drop: false }` [INFO] [stdout] 5ea5e2b6902c7e268574fae3e822f1e95fe2bb46c30dad5f312c9e4c88cdd4b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] f095a2f16ac2f886e774c36f6cfb0e42881e7a5c6188a79469ad8900668230be [INFO] running `Command { std: "docker" "start" "-a" "f095a2f16ac2f886e774c36f6cfb0e42881e7a5c6188a79469ad8900668230be", kill_on_drop: false }` [INFO] [stderr] Compiling http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `http::request::Request` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use http::request::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `method::Method` [INFO] [stdout] --> src/http/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use method::Method; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `request::Request` [INFO] [stdout] --> src/http/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use request::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/http/request.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{char, str}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/server.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ok_or` on type `Result` [INFO] [stdout] --> src/http/request.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | method: Method::from_str(splits[2]).ok_or, [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/http/request.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | path: splits[1], [INFO] [stdout] | ^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 38 | path: splits[1].to_string(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/http/request.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | query_string: splits[0], [INFO] [stdout] | ^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/http/request.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | fn from(value: Utf8Error) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/server.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | Ok((mut stream, addr)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 33 | ... Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | Err(e) => println!("Failed to read from connection"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http-server` (bin "http-server") due to 3 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f095a2f16ac2f886e774c36f6cfb0e42881e7a5c6188a79469ad8900668230be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f095a2f16ac2f886e774c36f6cfb0e42881e7a5c6188a79469ad8900668230be", kill_on_drop: false }` [INFO] [stdout] f095a2f16ac2f886e774c36f6cfb0e42881e7a5c6188a79469ad8900668230be