[INFO] updating cached repository jjgumucio/rust-http-server [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/jjgumucio/rust-http-server [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/jjgumucio/rust-http-server" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jjgumucio/rust-http-server"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jjgumucio/rust-http-server'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/jjgumucio/rust-http-server" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jjgumucio/rust-http-server"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jjgumucio/rust-http-server'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7c04c5304f6fbffac078d2377bcf057dc4af858a [INFO] sha for GitHub repo jjgumucio/rust-http-server: 7c04c5304f6fbffac078d2377bcf057dc4af858a [INFO] validating manifest of jjgumucio/rust-http-server on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of jjgumucio/rust-http-server on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing jjgumucio/rust-http-server [INFO] finished frobbing jjgumucio/rust-http-server [INFO] frobbed toml for jjgumucio/rust-http-server written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jjgumucio/rust-http-server/Cargo.toml [INFO] started frobbing jjgumucio/rust-http-server [INFO] finished frobbing jjgumucio/rust-http-server [INFO] frobbed toml for jjgumucio/rust-http-server written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/jjgumucio/rust-http-server/Cargo.toml [INFO] crate jjgumucio/rust-http-server already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] checking jjgumucio/rust-http-server against master#60960a260f7b5c695fd0717311d72ce62dd4eb43 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-3/master#60960a260f7b5c695fd0717311d72ce62dd4eb43:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/jjgumucio/rust-http-server:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 7ec7c372be59b9a2ee6e433ffa6d5ed8edc95a0bf45358f5b51b6fd4b9495f84 [INFO] running `"docker" "start" "-a" "7ec7c372be59b9a2ee6e433ffa6d5ed8edc95a0bf45358f5b51b6fd4b9495f84"` [INFO] [stderr] Checking http-server v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0425]: cannot find value `stream` in this scope [INFO] [stderr] --> src/main.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:27:52 [INFO] [stderr] | [INFO] [stderr] 27 | let req_str = String::from_utf8_lossy(&buf); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/main.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `stream` in this scope [INFO] [stderr] --> src/main.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:27:52 [INFO] [stderr] | [INFO] [stderr] 27 | let req_str = String::from_utf8_lossy(&buf); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/main.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 28 | Some(HttpRequest::new(req_str.into_owned())) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::option::Option` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 32 | None [INFO] [stderr] | ^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:48:18 [INFO] [stderr] | [INFO] [stderr] 48 | Some(response) [INFO] [stderr] | ^^^^^^^^ expected struct `http_response::HttpResponse`, found struct `std::string::String` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:50:25 [INFO] [stderr] | [INFO] [stderr] 50 | Method::POST => println!("Handle this POST request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:51:24 [INFO] [stderr] | [INFO] [stderr] 51 | Method::PUT => println!("Handle this PUT request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:52:27 [INFO] [stderr] | [INFO] [stderr] 52 | Method::DELETE => println!("Handle this DELETE request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `expect` found for type `http_response::HttpResponse` in the current scope [INFO] [stderr] --> src/main.rs:63:54 [INFO] [stderr] | [INFO] [stderr] 63 | let http_response = build_response(http_request).expect("Failed to build HttpResponse"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/http_response.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct HttpResponse { [INFO] [stderr] | ----------------------- method `expect` not found for this [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 28 | Some(HttpRequest::new(req_str.into_owned())) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::option::Option` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 32 | None [INFO] [stderr] | ^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:48:18 [INFO] [stderr] | [INFO] [stderr] 48 | Some(response) [INFO] [stderr] | ^^^^^^^^ expected struct `http_response::HttpResponse`, found struct `std::string::String` [INFO] [stderr] | [INFO] [stderr] = note: expected type `http_response::HttpResponse` [INFO] [stderr] found type `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:50:25 [INFO] [stderr] | [INFO] [stderr] 50 | Method::POST => println!("Handle this POST request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:51:24 [INFO] [stderr] | [INFO] [stderr] 51 | Method::PUT => println!("Handle this PUT request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:52:27 [INFO] [stderr] | [INFO] [stderr] 52 | Method::DELETE => println!("Handle this DELETE request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::option::Option` [INFO] [stderr] found type `()` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `expect` found for type `http_response::HttpResponse` in the current scope [INFO] [stderr] --> src/main.rs:63:54 [INFO] [stderr] | [INFO] [stderr] 63 | let http_response = build_response(http_request).expect("Failed to build HttpResponse"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/http_response.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct HttpResponse { [INFO] [stderr] | ----------------------- method `expect` not found for this [INFO] [stderr] [INFO] [stderr] error: Could not compile `http-server`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `http-server`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "7ec7c372be59b9a2ee6e433ffa6d5ed8edc95a0bf45358f5b51b6fd4b9495f84"` [INFO] running `"docker" "rm" "-f" "7ec7c372be59b9a2ee6e433ffa6d5ed8edc95a0bf45358f5b51b6fd4b9495f84"` [INFO] [stdout] 7ec7c372be59b9a2ee6e433ffa6d5ed8edc95a0bf45358f5b51b6fd4b9495f84