[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 master#198328ad7960b1bece0dc48496bff6c62dd5d339 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-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/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-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mahdiGhorbanzadeh/learning-rust on toolchain 198328ad7960b1bece0dc48496bff6c62dd5d339
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "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" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 85b14aae5191cb84392fd2a717354e520c2a82f33d059cba4c4f859bb20ebac6
[INFO] running `Command { std: "docker" "start" "-a" "85b14aae5191cb84392fd2a717354e520c2a82f33d059cba4c4f859bb20ebac6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "85b14aae5191cb84392fd2a717354e520c2a82f33d059cba4c4f859bb20ebac6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "85b14aae5191cb84392fd2a717354e520c2a82f33d059cba4c4f859bb20ebac6", kill_on_drop: false }`
[INFO] [stdout] 85b14aae5191cb84392fd2a717354e520c2a82f33d059cba4c4f859bb20ebac6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c01fe69f9fd1ab2314ee4f9cbe9fbdd45dae6580ca9064b21dc665ec7f70f52a
[INFO] running `Command { std: "docker" "start" "-a" "c01fe69f9fd1ab2314ee4f9cbe9fbdd45dae6580ca9064b21dc665ec7f70f52a", 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<Method, ParseError>`
[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<String>`, found `&str`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<String>`
[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" "c01fe69f9fd1ab2314ee4f9cbe9fbdd45dae6580ca9064b21dc665ec7f70f52a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c01fe69f9fd1ab2314ee4f9cbe9fbdd45dae6580ca9064b21dc665ec7f70f52a", kill_on_drop: false }`
[INFO] [stdout] c01fe69f9fd1ab2314ee4f9cbe9fbdd45dae6580ca9064b21dc665ec7f70f52a
