[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#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvjgaur%2Frust-httpserver" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vjgaur/rust-httpserver on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc2/source/Cargo.toml [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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9db68265765660fdc64572b16ddee8dee21bcf352e37255f07d9a4b7c0d14636 [INFO] running `Command { std: "docker" "start" "-a" "9db68265765660fdc64572b16ddee8dee21bcf352e37255f07d9a4b7c0d14636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9db68265765660fdc64572b16ddee8dee21bcf352e37255f07d9a4b7c0d14636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9db68265765660fdc64572b16ddee8dee21bcf352e37255f07d9a4b7c0d14636", kill_on_drop: false }` [INFO] [stdout] 9db68265765660fdc64572b16ddee8dee21bcf352e37255f07d9a4b7c0d14636 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4132ca1fe35372852d5655a7f1690bd022f5cbf15afb384c6b7ab52591e3e4e5 [INFO] running `Command { std: "docker" "start" "-a" "4132ca1fe35372852d5655a7f1690bd022f5cbf15afb384c6b7ab52591e3e4e5", 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: if you wanted to use a crate named `method`, use `cargo add method` to add it to your `Cargo.toml` [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)]` 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] 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: if you wanted to use a crate named `method`, use `cargo add method` to add it to your `Cargo.toml` [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: `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] 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)]` 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/1f308f12738d8cc40bb23bf0c8114b37c164bb49/library/core/src/result.rs:557:5 [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/1f308f12738d8cc40bb23bf0c8114b37c164bb49/library/core/src/result.rs:557:5 [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: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: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)]` 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] 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)]` 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] 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") 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" test) due to 8 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4132ca1fe35372852d5655a7f1690bd022f5cbf15afb384c6b7ab52591e3e4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4132ca1fe35372852d5655a7f1690bd022f5cbf15afb384c6b7ab52591e3e4e5", kill_on_drop: false }` [INFO] [stdout] 4132ca1fe35372852d5655a7f1690bd022f5cbf15afb384c6b7ab52591e3e4e5