[INFO] cloning repository https://github.com/karasulh/Building_HTTP_Server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/karasulh/Building_HTTP_Server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarasulh%2FBuilding_HTTP_Server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarasulh%2FBuilding_HTTP_Server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af78d3d9ca5047920867ed7f43cde886de66bea3 [INFO] checking karasulh/Building_HTTP_Server against try#dd2d87b6cc31907ae305875eb6be399783dc0256 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarasulh%2FBuilding_HTTP_Server" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/karasulh/Building_HTTP_Server [INFO] finished tweaking git repo https://github.com/karasulh/Building_HTTP_Server [INFO] tweaked toml for git repo https://github.com/karasulh/Building_HTTP_Server written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/karasulh/Building_HTTP_Server on toolchain dd2d87b6cc31907ae305875eb6be399783dc0256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/karasulh/Building_HTTP_Server 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" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be1f99aae67c53284a691263003af9bddd1d11f56339ff5dbcee34c48ee7b79d [INFO] running `Command { std: "docker" "start" "-a" "be1f99aae67c53284a691263003af9bddd1d11f56339ff5dbcee34c48ee7b79d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be1f99aae67c53284a691263003af9bddd1d11f56339ff5dbcee34c48ee7b79d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be1f99aae67c53284a691263003af9bddd1d11f56339ff5dbcee34c48ee7b79d", kill_on_drop: false }` [INFO] [stdout] be1f99aae67c53284a691263003af9bddd1d11f56339ff5dbcee34c48ee7b79d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34efb5f73848fe43ba717f9ba9ec21d8198346b91cf587dbfbf4abc6736f92d6 [INFO] running `Command { std: "docker" "start" "-a" "34efb5f73848fe43ba717f9ba9ec21d8198346b91cf587dbfbf4abc6736f92d6", kill_on_drop: false }` [INFO] [stderr] Checking RustProject3_LyubomirGavadinov v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> http/request.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_byte_array(buf: &[u8]) -> Result{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> http/request.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_byte_array(buf: &[u8]) -> Result{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> website_handler.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | _ => Response::new(StatusCode::NotFound,None), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> website_handler.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 39 | "/" => Response::new(StatusCode::Ok, self.read_file("index.html")), [INFO] [stdout] | --- matches some of the same values [INFO] [stdout] 40 | "/hello" => Response::new(StatusCode::Ok, self.read_file("hello.html")), [INFO] [stdout] | -------- matches some of the same values [INFO] [stdout] 41 | path => match self.read_file(path){ //for example for style.css, linker in index.html searches the paths [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 45 | _ => Response::new(StatusCode::NotFound,None), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> website_handler.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | _ => Response::new(StatusCode::NotFound,None), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> website_handler.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 39 | "/" => Response::new(StatusCode::Ok, self.read_file("index.html")), [INFO] [stdout] | --- matches some of the same values [INFO] [stdout] 40 | "/hello" => Response::new(StatusCode::Ok, self.read_file("hello.html")), [INFO] [stdout] | -------- matches some of the same values [INFO] [stdout] 41 | path => match self.read_file(path){ //for example for style.css, linker in index.html searches the paths [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 45 | _ => Response::new(StatusCode::NotFound,None), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> http/query_string.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get(&self, key:&str) -> Option<&Value>{ //if there is no key in hashmap, it returns None [INFO] [stdout] | ^^^^^ ------ [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get(&self, key:&str) -> Option<&Value<'_>>{ //if there is no key in hashmap, it returns None [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> http/query_string.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get(&self, key:&str) -> Option<&Value>{ //if there is no key in hashmap, it returns None [INFO] [stdout] | ^^^^^ ------ [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get(&self, key:&str) -> Option<&Value<'_>>{ //if there is no key in hashmap, it returns None [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> http/request.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn query_string(&self)-> Option<&QueryString>{ //we are interested QueryString in the Option as return value, so use this trick: [INFO] [stdout] | ^^^^^ ------------ [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | pub fn query_string(&self)-> Option<&QueryString<'_>>{ //we are interested QueryString in the Option as return value, so use this trick: [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> http/request.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn query_string(&self)-> Option<&QueryString>{ //we are interested QueryString in the Option as return value, so use this trick: [INFO] [stdout] | ^^^^^ ------------ [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | pub fn query_string(&self)-> Option<&QueryString<'_>>{ //we are interested QueryString in the Option as return value, so use this trick: [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "34efb5f73848fe43ba717f9ba9ec21d8198346b91cf587dbfbf4abc6736f92d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34efb5f73848fe43ba717f9ba9ec21d8198346b91cf587dbfbf4abc6736f92d6", kill_on_drop: false }` [INFO] [stdout] 34efb5f73848fe43ba717f9ba9ec21d8198346b91cf587dbfbf4abc6736f92d6