[INFO] cloning repository https://github.com/vilfa/twebd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vilfa/twebd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvilfa%2Ftwebd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvilfa%2Ftwebd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 445775cbf6ac0e6aa31f59f688c867521c246f72 [INFO] checking vilfa/twebd against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvilfa%2Ftwebd" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vilfa/twebd on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vilfa/twebd [INFO] finished tweaking git repo https://github.com/vilfa/twebd [INFO] tweaked toml for git repo https://github.com/vilfa/twebd written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/vilfa/twebd already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5bee2cab791aae4e3b583d3e7e6d3593a438cfbce284d4e17f9296fcb2776b2 [INFO] running `Command { std: "docker" "start" "-a" "b5bee2cab791aae4e3b583d3e7e6d3593a438cfbce284d4e17f9296fcb2776b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5bee2cab791aae4e3b583d3e7e6d3593a438cfbce284d4e17f9296fcb2776b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5bee2cab791aae4e3b583d3e7e6d3593a438cfbce284d4e17f9296fcb2776b2", kill_on_drop: false }` [INFO] [stdout] b5bee2cab791aae4e3b583d3e7e6d3593a438cfbce284d4e17f9296fcb2776b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2af5ebd716aaf564ca7cf1c1e150a0472e390d09b9f2b4f2e39cfb5b5c7bb01 [INFO] running `Command { std: "docker" "start" "-a" "d2af5ebd716aaf564ca7cf1c1e150a0472e390d09b9f2b4f2e39cfb5b5c7bb01", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking twebd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `secure` in `web` [INFO] [stdout] --> src/srv/server.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | secure::tls::{TlsConfigBuilder, TlsConfigError}, [INFO] [stdout] | ^^^^^^ could not find `secure` in `web` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::srv::file::ServerRootBuilder`, `crate::syn::thread::ThreadPool`, `crate::syn::thread::ThreadPoolBuilder`, `crate::web::http::request::HttpRequestParser`, `crate::web::http::response::HttpResponseBuilder`, `crate::web::http::response::HttpResponseError` [INFO] [stdout] --> src/srv/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | srv::file::ServerRootBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ServerRootBuilder` in `srv::file` [INFO] [stdout] 10 | syn::thread::{ThreadPool, ThreadPoolBuilder}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `ThreadPoolBuilder` in `syn::thread` [INFO] [stdout] | | [INFO] [stdout] | no `ThreadPool` in `syn::thread` [INFO] [stdout] ... [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `HttpRequestParser` in `web::http::request` [INFO] [stdout] 14 | response::{HttpResponse, HttpResponseBuilder, HttpResponseError}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | no `HttpResponseError` in `web::http::response` [INFO] [stdout] | | help: a similar name exists in the module: `HttpResponse` [INFO] [stdout] | no `HttpResponseBuilder` in `web::http::response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `secure` in `web` [INFO] [stdout] --> src/srv/server.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | secure::tls::{TlsConfigBuilder, TlsConfigError}, [INFO] [stdout] | ^^^^^^ could not find `secure` in `web` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::srv::file::ServerRootBuilder`, `crate::syn::thread::ThreadPool`, `crate::syn::thread::ThreadPoolBuilder`, `crate::web::http::request::HttpRequestParser`, `crate::web::http::response::HttpResponseBuilder`, `crate::web::http::response::HttpResponseError` [INFO] [stdout] --> src/srv/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | srv::file::ServerRootBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ServerRootBuilder` in `srv::file` [INFO] [stdout] 10 | syn::thread::{ThreadPool, ThreadPoolBuilder}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `ThreadPoolBuilder` in `syn::thread` [INFO] [stdout] | | [INFO] [stdout] | no `ThreadPool` in `syn::thread` [INFO] [stdout] ... [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `HttpRequestParser` in `web::http::request` [INFO] [stdout] 14 | response::{HttpResponse, HttpResponseBuilder, HttpResponseError}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | no `HttpResponseError` in `web::http::response` [INFO] [stdout] | | help: a similar name exists in the module: `HttpResponse` [INFO] [stdout] | no `HttpResponseBuilder` in `web::http::response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | backlog: Vec, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(opts: Vec) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TlsConfigBuilder` [INFO] [stdout] --> src/srv/server.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | let tls_builder = TlsConfigBuilder::new(root_builder.other()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::web::https::tls::TlsConfigBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | backlog.push(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | self.log(LogRecord::new(LogLevel::Info, format!("starting server"))); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:115:44 [INFO] [stdout] | [INFO] [stdout] 115 | Err(e) => self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:147:44 [INFO] [stdout] | [INFO] [stdout] 147 | Err(e) => self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn log(&self, record: LogRecord) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn log_all(&self, records: &Vec) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:167:70 [INFO] [stdout] | [INFO] [stdout] 167 | fn handle_conn(&self, stream: &mut TcpStream) -> Result, ServerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:174:68 [INFO] [stdout] | [INFO] [stdout] 174 | fn parse_request(&self, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:177:18 [INFO] [stdout] | [INFO] [stdout] 177 | self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:186:73 [INFO] [stdout] | [INFO] [stdout] 186 | fn build_response(&self, req: &HttpRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 189 | self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:201:30 [INFO] [stdout] | [INFO] [stdout] 201 | fn backlog(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: enum import `HttpParseError` is private [INFO] [stdout] --> src/srv/server.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^^^^ private enum import [INFO] [stdout] | [INFO] [stdout] note: the enum import `HttpParseError` is defined here... [INFO] [stdout] --> src/web/http/request/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | err::HttpParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the enum `HttpParseError` which is defined here [INFO] [stdout] --> src/web/http/err.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum HttpParseError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `HttpRequest` is private [INFO] [stdout] --> src/srv/server.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `HttpRequest` is defined here... [INFO] [stdout] --> src/web/http/request/mod.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | native::{HttpBody, HttpHeader, HttpLine, HttpRequest}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `HttpRequest` which is defined here [INFO] [stdout] --> src/web/http/native/mod.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct HttpRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `HttpResponse` is private [INFO] [stdout] --> src/srv/server.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | response::{HttpResponse, HttpResponseBuilder, HttpResponseError}, [INFO] [stdout] | ^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `HttpResponse` is defined here... [INFO] [stdout] --> src/web/http/response/mod.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | native::{HttpMethod, HttpRequest, HttpResponse, HttpStatus}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `HttpResponse` which is defined here [INFO] [stdout] --> src/web/http/native/mod.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | backlog: Vec, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(opts: Vec) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TlsConfigBuilder` [INFO] [stdout] --> src/srv/server.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | let tls_builder = TlsConfigBuilder::new(root_builder.other()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::web::https::tls::TlsConfigBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | backlog.push(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | self.log(LogRecord::new(LogLevel::Info, format!("starting server"))); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:115:44 [INFO] [stdout] | [INFO] [stdout] 115 | Err(e) => self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:147:44 [INFO] [stdout] | [INFO] [stdout] 147 | Err(e) => self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn log(&self, record: LogRecord) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn log_all(&self, records: &Vec) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:167:70 [INFO] [stdout] | [INFO] [stdout] 167 | fn handle_conn(&self, stream: &mut TcpStream) -> Result, ServerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:174:68 [INFO] [stdout] | [INFO] [stdout] 174 | fn parse_request(&self, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:177:18 [INFO] [stdout] | [INFO] [stdout] 177 | self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ServerError` in this scope [INFO] [stdout] --> src/srv/server.rs:186:73 [INFO] [stdout] | [INFO] [stdout] 186 | fn build_response(&self, req: &HttpRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::srv::err::ServerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LogRecord` [INFO] [stdout] --> src/srv/server.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 189 | self.log(LogRecord::new( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LogRecord` in this scope [INFO] [stdout] --> src/srv/server.rs:201:30 [INFO] [stdout] | [INFO] [stdout] 201 | fn backlog(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::log::LogRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: enum import `HttpParseError` is private [INFO] [stdout] --> src/srv/server.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^^^^ private enum import [INFO] [stdout] | [INFO] [stdout] note: the enum import `HttpParseError` is defined here... [INFO] [stdout] --> src/web/http/request/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | err::HttpParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the enum `HttpParseError` which is defined here [INFO] [stdout] --> src/web/http/err.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum HttpParseError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `HttpRequest` is private [INFO] [stdout] --> src/srv/server.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | request::{HttpParseError, HttpRequest, HttpRequestParser}, [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `HttpRequest` is defined here... [INFO] [stdout] --> src/web/http/request/mod.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | native::{HttpBody, HttpHeader, HttpLine, HttpRequest}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `HttpRequest` which is defined here [INFO] [stdout] --> src/web/http/native/mod.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct HttpRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `HttpResponse` is private [INFO] [stdout] --> src/srv/server.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | response::{HttpResponse, HttpResponseBuilder, HttpResponseError}, [INFO] [stdout] | ^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `HttpResponse` is defined here... [INFO] [stdout] --> src/web/http/response/mod.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | native::{HttpMethod, HttpRequest, HttpResponse, HttpStatus}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `HttpResponse` which is defined here [INFO] [stdout] --> src/web/http/native/mod.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `add_backlog` [INFO] [stdout] --> src/srv/server.rs:200:1 [INFO] [stdout] | [INFO] [stdout] 200 | impl Backlog for Server { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ missing `add_backlog` in implementation [INFO] [stdout] | [INFO] [stdout] ::: src/log/backlog.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fn add_backlog(&mut self, v: LogRecord); [INFO] [stdout] | ---------------------------------------- `add_backlog` from trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `add_backlog` [INFO] [stdout] --> src/srv/server.rs:200:1 [INFO] [stdout] | [INFO] [stdout] 200 | impl Backlog for Server { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ missing `add_backlog` in implementation [INFO] [stdout] | [INFO] [stdout] ::: src/log/backlog.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fn add_backlog(&mut self, v: LogRecord); [INFO] [stdout] | ---------------------------------------- `add_backlog` from trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/srv/server.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | tls_config: None, [INFO] [stdout] | ^^^^ expected struct `Arc`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for reference `&ServerConfig` in the current scope [INFO] [stdout] --> src/srv/server.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | rustls::ServerSession::new(&(self.tls_config.as_ref().unwrap())); [INFO] [stdout] | ^^^^^^ method not found in `&ServerConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/srv/server.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(v) => { [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/srv/server.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(v) => { [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `SocketError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/srv/server.rs:149:76 [INFO] [stdout] | [INFO] [stdout] 149 | ... format!("couldn't read from udp socket: `{}`", e), [INFO] [stdout] | ^ `SocketError` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `SocketError` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/srv/server.rs:165:35 [INFO] [stdout] | [INFO] [stdout] 165 | matches!(self.tls_config, Some(_)) [INFO] [stdout] | --------------- ^^^^^^^ expected struct `Arc`, found enum `Option` [INFO] [stdout] | | [INFO] [stdout] | this expression has type `Arc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/srv/server.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | tls_config: None, [INFO] [stdout] | ^^^^ expected struct `Arc`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for reference `&ServerConfig` in the current scope [INFO] [stdout] --> src/srv/server.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | rustls::ServerSession::new(&(self.tls_config.as_ref().unwrap())); [INFO] [stdout] | ^^^^^^ method not found in `&ServerConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/srv/server.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(v) => { [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/srv/server.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(v) => { [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `SocketError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/srv/server.rs:149:76 [INFO] [stdout] | [INFO] [stdout] 149 | ... format!("couldn't read from udp socket: `{}`", e), [INFO] [stdout] | ^ `SocketError` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `SocketError` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/srv/server.rs:165:35 [INFO] [stdout] | [INFO] [stdout] 165 | matches!(self.tls_config, Some(_)) [INFO] [stdout] | --------------- ^^^^^^^ expected struct `Arc`, found enum `Option` [INFO] [stdout] | | [INFO] [stdout] | this expression has type `Arc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0308, E0412, E0432, E0433, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `twebd` due to 28 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 27 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0308, E0412, E0432, E0433, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d2af5ebd716aaf564ca7cf1c1e150a0472e390d09b9f2b4f2e39cfb5b5c7bb01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2af5ebd716aaf564ca7cf1c1e150a0472e390d09b9f2b4f2e39cfb5b5c7bb01", kill_on_drop: false }` [INFO] [stdout] d2af5ebd716aaf564ca7cf1c1e150a0472e390d09b9f2b4f2e39cfb5b5c7bb01