[INFO] cloning repository https://github.com/vjgaur/rust-httpserver
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vjgaur/rust-httpserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvjgaur%2Frust-httpserver", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvjgaur%2Frust-httpserver'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a1c1c55ec869a16349d687e510413497c0a6d2f8
[INFO] checking vjgaur/rust-httpserver against try#724e78794d2cf06eef820a24c9a4608d63435e1d for pr-149145
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvjgaur%2Frust-httpserver" "/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/vjgaur/rust-httpserver
[INFO] finished tweaking git repo https://github.com/vjgaur/rust-httpserver
[INFO] tweaked toml for git repo https://github.com/vjgaur/rust-httpserver written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/vjgaur/rust-httpserver on toolchain 724e78794d2cf06eef820a24c9a4608d63435e1d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+724e78794d2cf06eef820a24c9a4608d63435e1d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/vjgaur/rust-httpserver 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" "+724e78794d2cf06eef820a24c9a4608d63435e1d" "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" "+724e78794d2cf06eef820a24c9a4608d63435e1d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f2505c06ec37c3dce39167cdbe8a466f39308abd03a681bbc56b1c16c11ea2bb
[INFO] running `Command { std: "docker" "start" "-a" "f2505c06ec37c3dce39167cdbe8a466f39308abd03a681bbc56b1c16c11ea2bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f2505c06ec37c3dce39167cdbe8a466f39308abd03a681bbc56b1c16c11ea2bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f2505c06ec37c3dce39167cdbe8a466f39308abd03a681bbc56b1c16c11ea2bb", kill_on_drop: false }`
[INFO] [stdout] f2505c06ec37c3dce39167cdbe8a466f39308abd03a681bbc56b1c16c11ea2bb
[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" "+724e78794d2cf06eef820a24c9a4608d63435e1d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 78f9ed7517e6c0957dcbca1797773c6fc92794d75a3855415be4443f26a3124c
[INFO] running `Command { std: "docker" "start" "-a" "78f9ed7517e6c0957dcbca1797773c6fc92794d75a3855415be4443f26a3124c", kill_on_drop: false }`
[INFO] [stderr]     Checking httpserver v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `super::convert`
[INFO] [stdout]  --> src/http/request.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::convert::TryFrom;
[INFO] [stdout]   |            ^^^^^^^ could not find `convert` in `super`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `super::convert`
[INFO] [stdout]  --> src/http/request.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::convert::TryFrom;
[INFO] [stdout]   |            ^^^^^^^ could not find `convert` in `super`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `method`
[INFO] [stdout]   --> src/http/request.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let method::Method = method.parse()?;
[INFO] [stdout]    |             ^^^^^^ use of unresolved module or unlinked crate `method`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/http/method.rs, use `mod method` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod method;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::http::method;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `http::Method`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use http::Method;
[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: `http::Request`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use http::Request;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `request::ParseError`
[INFO] [stdout]  --> src/http/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use request::ParseError;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]  --> src/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::convert::TryInto;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `method`
[INFO] [stdout]   --> src/http/request.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let method::Method = method.parse()?;
[INFO] [stdout]    |             ^^^^^^ use of unresolved module or unlinked crate `method`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/http/method.rs, use `mod method` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod method;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::http::method;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `http::Method`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use http::Method;
[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: `http::Request`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use http::Request;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `request::ParseError`
[INFO] [stdout]  --> src/http/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use request::ParseError;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]  --> src/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::convert::TryInto;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:25:29
[INFO] [stdout]    |
[INFO] [stdout] 25 |             "OPTIONS" => Ok(Self.OPTIONS),
[INFO] [stdout]    |                             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:26:27
[INFO] [stdout]    |
[INFO] [stdout] 26 |             "TRACE" => Ok(Self.TRACE),
[INFO] [stdout]    |                           ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:27:27
[INFO] [stdout]    |
[INFO] [stdout] 27 |             "PATCH" => Ok(Self.PATCH),
[INFO] [stdout]    |                           ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:25:29
[INFO] [stdout]    |
[INFO] [stdout] 25 |             "OPTIONS" => Ok(Self.OPTIONS),
[INFO] [stdout]    |                             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:26:27
[INFO] [stdout]    |
[INFO] [stdout] 26 |             "TRACE" => Ok(Self.TRACE),
[INFO] [stdout]    |                           ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs
[INFO] [stdout]   --> src/http/method.rs:27:27
[INFO] [stdout]    |
[INFO] [stdout] 27 |             "PATCH" => Ok(Self.PATCH),
[INFO] [stdout]    |                           ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to use one of the enum's variants?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/method.rs:28:22
[INFO] [stdout]    |
[INFO] [stdout] 28 |             _ => Err(MethodError),
[INFO] [stdout]    |                  --- ^^^^^^^^^^^ expected `String`, found `MethodError`
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout] help: the type constructed contains `MethodError` due to the type of the argument passed
[INFO] [stdout]   --> src/http/method.rs:28:18
[INFO] [stdout]    |
[INFO] [stdout] 28 |             _ => Err(MethodError),
[INFO] [stdout]    |                  ^^^^-----------^
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      this argument influences the type of `Err`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/724e78794d2cf06eef820a24c9a4608d63435e1d/library/core/src/result.rs:566:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/method.rs:28:22
[INFO] [stdout]    |
[INFO] [stdout] 28 |             _ => Err(MethodError),
[INFO] [stdout]    |                  --- ^^^^^^^^^^^ expected `String`, found `MethodError`
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout] help: the type constructed contains `MethodError` due to the type of the argument passed
[INFO] [stdout]   --> src/http/method.rs:28:18
[INFO] [stdout]    |
[INFO] [stdout] 28 |             _ => Err(MethodError),
[INFO] [stdout]    |                  ^^^^-----------^
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      this argument influences the type of `Err`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/724e78794d2cf06eef820a24c9a4608d63435e1d/library/core/src/result.rs:566:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/request.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |     fn fmt(&self, f: &mut Formatter) -> FmtResult {
[INFO] [stdout]    |        ---                              ^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 78 |         write!(f, "{}", self.message());
[INFO] [stdout]    |                                        - help: remove this semicolon to return this value
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/request.rs:82:41
[INFO] [stdout]    |
[INFO] [stdout] 82 |     fn fmt(&self, f: &mut Formatter) -> FmtResult {
[INFO] [stdout]    |        ---                              ^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 83 |         write!(f, "{}", self.message());
[INFO] [stdout]    |                                        - help: remove this semicolon to return this value
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/request.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |     fn fmt(&self, f: &mut Formatter) -> FmtResult {
[INFO] [stdout]    |        ---                              ^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 78 |         write!(f, "{}", self.message());
[INFO] [stdout]    |                                        - help: remove this semicolon to return this value
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/http/request.rs:82:41
[INFO] [stdout]    |
[INFO] [stdout] 82 |     fn fmt(&self, f: &mut Formatter) -> FmtResult {
[INFO] [stdout]    |        ---                              ^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 83 |         write!(f, "{}", self.message());
[INFO] [stdout]    |                                        - help: remove this semicolon to return this value
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/server.rs:27:36
[INFO] [stdout]    |
[INFO] [stdout] 27 | ...                   Ok(request) => {}
[INFO] [stdout]    |                          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/server.rs:28:37
[INFO] [stdout]    |
[INFO] [stdout] 28 | ...                   Err(e) => println!("Failed to parse a request "),
[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, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/server.rs:27:36
[INFO] [stdout]    |
[INFO] [stdout] 27 | ...                   Ok(request) => {}
[INFO] [stdout]    |                          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/server.rs:28:37
[INFO] [stdout]    |
[INFO] [stdout] 28 | ...                   Err(e) => println!("Failed to parse a request "),
[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, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `httpserver` (bin "httpserver" test) due to 8 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `httpserver` (bin "httpserver") due to 8 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "78f9ed7517e6c0957dcbca1797773c6fc92794d75a3855415be4443f26a3124c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78f9ed7517e6c0957dcbca1797773c6fc92794d75a3855415be4443f26a3124c", kill_on_drop: false }`
[INFO] [stdout] 78f9ed7517e6c0957dcbca1797773c6fc92794d75a3855415be4443f26a3124c
