[INFO] cloning repository https://github.com/saibaneer/barebones-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saibaneer/barebones-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaibaneer%2Fbarebones-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaibaneer%2Fbarebones-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b6df62f074039a4f4dd8ae3fc0ab555e39675f2 [INFO] checking saibaneer/barebones-server against try#18c1d185ac7a6a3bf399296b35e4b2736809a756 for pr-146972 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaibaneer%2Fbarebones-server" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/saibaneer/barebones-server [INFO] finished tweaking git repo https://github.com/saibaneer/barebones-server [INFO] tweaked toml for git repo https://github.com/saibaneer/barebones-server written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/saibaneer/barebones-server on toolchain 18c1d185ac7a6a3bf399296b35e4b2736809a756 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/saibaneer/barebones-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" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5064b9e1f71641efcd170b6e56f11608934116bd5d16e3f95d187ac34abbb855 [INFO] running `Command { std: "docker" "start" "-a" "5064b9e1f71641efcd170b6e56f11608934116bd5d16e3f95d187ac34abbb855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5064b9e1f71641efcd170b6e56f11608934116bd5d16e3f95d187ac34abbb855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5064b9e1f71641efcd170b6e56f11608934116bd5d16e3f95d187ac34abbb855", kill_on_drop: false }` [INFO] [stdout] 5064b9e1f71641efcd170b6e56f11608934116bd5d16e3f95d187ac34abbb855 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bdf7813351fa4dca7785fb480e5b735d88d270c7586e0306e167bb7a183fefe [INFO] running `Command { std: "docker" "start" "-a" "3bdf7813351fa4dca7785fb480e5b735d88d270c7586e0306e167bb7a183fefe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking http v0.1.0 (/opt/rustwide/workdir/http) [INFO] [stderr] Checking scenario1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tcpclient v0.1.0 (/opt/rustwide/workdir/tcpclient) [INFO] [stderr] Checking tcpserver v0.1.0 (/opt/rustwide/workdir/tcpserver) [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking httpserver v0.1.0 (/opt/rustwide/workdir/httpserver) [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> httpserver/src/handler.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `fs` is defined multiple times [INFO] [stdout] --> httpserver/src/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{default, env, fs}; [INFO] [stdout] | -- previous import of the module `fs` here [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^^^^^^ `fs` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `fs` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> httpserver/src/handler.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{default, env, fs}; [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: `std:fs` [INFO] [stdout] --> httpserver/src/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `httpresponse::HttpResponse` [INFO] [stdout] --> httpserver/src/router.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use http::{httprequest, httprequest::HttpRequest, httpresponse::HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> httpserver/src/handler.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `fs` is defined multiple times [INFO] [stdout] --> httpserver/src/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{default, env, fs}; [INFO] [stdout] | -- previous import of the module `fs` here [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^^^^^^ `fs` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `fs` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `handle` found for struct `WebServiceHandler` in the current scope [INFO] [stdout] --> httpserver/src/router.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | let resp = WebServiceHandler::handle(&req); [INFO] [stdout] | ^^^^^^ function or associated item not found in `WebServiceHandler` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/handler.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct WebServiceHandler; [INFO] [stdout] | ---------------------------- function or associated item `handle` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Handler` defines an item `handle`, perhaps you need to implement it [INFO] [stdout] --> httpserver/src/handler.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Handler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `handle` found for struct `StaticPageHandler` in the current scope [INFO] [stdout] --> httpserver/src/router.rs:51:39 [INFO] [stdout] | [INFO] [stdout] 51 | let resp = StaticPageHandler::handle(&req); [INFO] [stdout] | ^^^^^^ function or associated item not found in `StaticPageHandler` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/handler.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct StaticPageHandler; [INFO] [stdout] | ---------------------------- function or associated item `handle` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Handler` defines an item `handle`, perhaps you need to implement it [INFO] [stdout] --> httpserver/src/handler.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Handler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> httpserver/src/handler.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{default, env, fs}; [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: `std:fs` [INFO] [stdout] --> httpserver/src/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std:fs; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `httpresponse::HttpResponse` [INFO] [stdout] --> httpserver/src/router.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use http::{httprequest, httprequest::HttpRequest, httpresponse::HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `route` found for struct `Router` in the current scope [INFO] [stdout] --> httpserver/src/server.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Router::route(req, &mut stream); [INFO] [stdout] | ^^^^^ function or associated item not found in `Router` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/router.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Router; [INFO] [stdout] | ----------------- function or associated item `route` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `router` with a similar name [INFO] [stdout] | [INFO] [stdout] 31 | Router::router(req, &mut stream); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `handle` found for struct `WebServiceHandler` in the current scope [INFO] [stdout] --> httpserver/src/router.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | let resp = WebServiceHandler::handle(&req); [INFO] [stdout] | ^^^^^^ function or associated item not found in `WebServiceHandler` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/handler.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct WebServiceHandler; [INFO] [stdout] | ---------------------------- function or associated item `handle` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Handler` defines an item `handle`, perhaps you need to implement it [INFO] [stdout] --> httpserver/src/handler.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Handler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `handle` found for struct `StaticPageHandler` in the current scope [INFO] [stdout] --> httpserver/src/router.rs:51:39 [INFO] [stdout] | [INFO] [stdout] 51 | let resp = StaticPageHandler::handle(&req); [INFO] [stdout] | ^^^^^^ function or associated item not found in `StaticPageHandler` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/handler.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct StaticPageHandler; [INFO] [stdout] | ---------------------------- function or associated item `handle` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Handler` defines an item `handle`, perhaps you need to implement it [INFO] [stdout] --> httpserver/src/handler.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Handler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `httpserver` (bin "httpserver" test) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `route` found for struct `Router` in the current scope [INFO] [stdout] --> httpserver/src/server.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Router::route(req, &mut stream); [INFO] [stdout] | ^^^^^ function or associated item not found in `Router` [INFO] [stdout] | [INFO] [stdout] ::: httpserver/src/router.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Router; [INFO] [stdout] | ----------------- function or associated item `route` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `router` with a similar name [INFO] [stdout] | [INFO] [stdout] 31 | Router::router(req, &mut stream); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `httpserver` (bin "httpserver") due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3bdf7813351fa4dca7785fb480e5b735d88d270c7586e0306e167bb7a183fefe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bdf7813351fa4dca7785fb480e5b735d88d270c7586e0306e167bb7a183fefe", kill_on_drop: false }` [INFO] [stdout] 3bdf7813351fa4dca7785fb480e5b735d88d270c7586e0306e167bb7a183fefe