[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-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/jjgumucio/rust-http-server"` [INFO] [stderr] Cloning into 'work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/jjgumucio/rust-http-server'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/jjgumucio/rust-http-server" "work/ex/pr-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/gh/jjgumucio/rust-http-server"` [INFO] [stderr] Cloning into 'work/ex/pr-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/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#39401465da4ce27aeeb2c2a26133ac35c63aa515 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of jjgumucio/rust-http-server on toolchain try#f45cc3094ee337acd688771b9234318046b0572d [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+f45cc3094ee337acd688771b9234318046b0572d-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-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/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-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/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/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+f45cc3094ee337acd688771b9234318046b0572d-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] checking jjgumucio/rust-http-server against master#39401465da4ce27aeeb2c2a26133ac35c63aa515 for pr-60914 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-60914/worker-1/master#39401465da4ce27aeeb2c2a26133ac35c63aa515:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/jjgumucio/rust-http-server:/opt/crater/workdir:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/crater-raid/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" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 13589ec67072d8145d1ef39a3d7d72798f5c972c61c2b4d5e0c87b672a57489e [INFO] running `"docker" "start" "-a" "13589ec67072d8145d1ef39a3d7d72798f5c972c61c2b4d5e0c87b672a57489e"` [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: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: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] 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] | [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: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: 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] 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" "13589ec67072d8145d1ef39a3d7d72798f5c972c61c2b4d5e0c87b672a57489e"` [INFO] running `"docker" "rm" "-f" "13589ec67072d8145d1ef39a3d7d72798f5c972c61c2b4d5e0c87b672a57489e"` [INFO] [stdout] 13589ec67072d8145d1ef39a3d7d72798f5c972c61c2b4d5e0c87b672a57489e