[INFO] cloning repository https://github.com/MrConstantinne/rust-web-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrConstantinne/rust-web-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrConstantinne%2Frust-web-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrConstantinne%2Frust-web-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f178cc863c42e5122e8674d3393224f86c4e315 [INFO] checking MrConstantinne/rust-web-api against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrConstantinne%2Frust-web-api" "/workspace/builds/worker-85/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-85/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrConstantinne/rust-web-api on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MrConstantinne/rust-web-api [INFO] finished tweaking git repo https://github.com/MrConstantinne/rust-web-api [INFO] tweaked toml for git repo https://github.com/MrConstantinne/rust-web-api written to /workspace/builds/worker-85/source/Cargo.toml [INFO] crate git repo https://github.com/MrConstantinne/rust-web-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "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-85/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5469abf38d3db01e8b2db0dfb0a8a91dbd2f8c33d55ce3146c24bf05a7de0c1 [INFO] running `Command { std: "docker" "start" "-a" "c5469abf38d3db01e8b2db0dfb0a8a91dbd2f8c33d55ce3146c24bf05a7de0c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5469abf38d3db01e8b2db0dfb0a8a91dbd2f8c33d55ce3146c24bf05a7de0c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5469abf38d3db01e8b2db0dfb0a8a91dbd2f8c33d55ce3146c24bf05a7de0c1", kill_on_drop: false }` [INFO] [stdout] c5469abf38d3db01e8b2db0dfb0a8a91dbd2f8c33d55ce3146c24bf05a7de0c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18e7bd8aefd614bd58048c11131fe54feeb0096b5441f3c7cfe93767ac5afcb9 [INFO] running `Command { std: "docker" "start" "-a" "18e7bd8aefd614bd58048c11131fe54feeb0096b5441f3c7cfe93767ac5afcb9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Checking modifier v0.1.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking serde v0.7.15 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking route-recognizer v0.1.13 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking plugin v0.2.6 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking phf_shared v0.7.24 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking chrono v0.2.25 [INFO] [stderr] Checking uuid v0.2.3 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking iron v0.6.1 [INFO] [stderr] Checking logger v0.4.0 [INFO] [stderr] Checking router v0.6.0 [INFO] [stderr] Checking web_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the crate root [INFO] [stdout] --> src/handlers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::std::error::Error; [INFO] [stdout] | ^^^ could not find `std` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `model`, `crate::std::error::Error` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use model::*; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `model` [INFO] [stdout] | [INFO] [stdout] ::: src/handlers.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 13 | use models::*; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 75 | let payload = try_handler!(json::encode(lock!(self.database).posts())); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 97 | lock!(self.database).add_post(post); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 112 | let locked = lock!(self.database); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/models.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/models.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IronError` [INFO] [stdout] --> src/handlers.rs:3:77 [INFO] [stdout] | [INFO] [stdout] 3 | use iron::{status, AfterMiddleware, Handler, IronResult, Request, Response, IronError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/handlers.rs:127:31 [INFO] [stdout] | [INFO] [stdout] 127 | Ok(Response::with((status::NotFound))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - Ok(Response::with((status::NotFound))) [INFO] [stdout] 127 + Ok(Response::with(status::NotFound)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the crate root [INFO] [stdout] --> src/handlers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::std::error::Error; [INFO] [stdout] | ^^^ could not find `std` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `model`, `crate::std::error::Error` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use model::*; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `model` [INFO] [stdout] | [INFO] [stdout] ::: src/handlers.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 13 | use models::*; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 75 | let payload = try_handler!(json::encode(lock!(self.database).posts())); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 97 | lock!(self.database).add_post(post); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/handlers.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | ($e:expr) => {e.lock().unwrap()}; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 112 | let locked = lock!(self.database); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/models.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/models.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IronError` [INFO] [stdout] --> src/handlers.rs:3:77 [INFO] [stdout] | [INFO] [stdout] 3 | use iron::{status, AfterMiddleware, Handler, IronResult, Request, Response, IronError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/handlers.rs:127:31 [INFO] [stdout] | [INFO] [stdout] 127 | Ok(Response::with((status::NotFound))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - Ok(Response::with((status::NotFound))) [INFO] [stdout] 127 + Ok(Response::with(status::NotFound)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `EncoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:17:80 [INFO] [stdout] | [INFO] [stdout] 17 | Err(e) => return Ok(Response::with((status::InternalServerError, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `EncoderError` [INFO] [stdout] ... [INFO] [stdout] 75 | let payload = try_handler!(json::encode(lock!(self.database).posts())); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/handlers.rs:17:80 [INFO] [stdout] | [INFO] [stdout] 17 | Err(e) => return Ok(Response::with((status::InternalServerError, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] ... [INFO] [stdout] 93 | try_handler!(req.body.read_to_string(&mut payload)); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `DecoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `DecoderError` [INFO] [stdout] ... [INFO] [stdout] 95 | let post = try_handler!(json::decode(&payload), status::BadRequest); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `uuid::ParseError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `uuid::ParseError` [INFO] [stdout] ... [INFO] [stdout] 121 | let id = try_handler!(Uuid::parse_str(post_id), status::BadRequest); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `EncoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `EncoderError` [INFO] [stdout] ... [INFO] [stdout] 124 | let payload = try_handler!(json::encode(&post), status::InternalServerError); [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for unit type `()` in the current scope [INFO] [stdout] --> src/main.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | env_logger::init().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Uuid: Encodable` is not satisfied [INFO] [stdout] --> src/models.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Encodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Uuid: Decodable` is not satisfied [INFO] [stdout] --> src/models.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | -------------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 11 | uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^ the trait `Decodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Uuid: Decodable` is not satisfied [INFO] [stdout] --> src/models.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Decodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `EncoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:17:80 [INFO] [stdout] | [INFO] [stdout] 17 | Err(e) => return Ok(Response::with((status::InternalServerError, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `EncoderError` [INFO] [stdout] ... [INFO] [stdout] 75 | let payload = try_handler!(json::encode(lock!(self.database).posts())); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/handlers.rs:17:80 [INFO] [stdout] | [INFO] [stdout] 17 | Err(e) => return Ok(Response::with((status::InternalServerError, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] ... [INFO] [stdout] 93 | try_handler!(req.body.read_to_string(&mut payload)); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `DecoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `DecoderError` [INFO] [stdout] ... [INFO] [stdout] 95 | let post = try_handler!(json::decode(&payload), status::BadRequest); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `uuid::ParseError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `uuid::ParseError` [INFO] [stdout] ... [INFO] [stdout] 121 | let id = try_handler!(Uuid::parse_str(post_id), status::BadRequest); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for enum `EncoderError` in the current scope [INFO] [stdout] --> src/handlers.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | Err(e) => return Ok(Response::with(($error, e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `EncoderError` [INFO] [stdout] ... [INFO] [stdout] 124 | let payload = try_handler!(json::encode(&post), status::InternalServerError); [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the macro `try_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iron::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web_api` due to 15 previous errors; 4 warnings emitted [INFO] [stdout] error[E0599]: no method named `unwrap` found for unit type `()` in the current scope [INFO] [stdout] --> src/main.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | env_logger::init().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `Uuid: Encodable` is not satisfied [INFO] [stdout] --> src/models.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Encodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Uuid: Decodable` is not satisfied [INFO] [stdout] --> src/models.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | -------------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 11 | uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^ the trait `Decodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Uuid: Decodable` is not satisfied [INFO] [stdout] --> src/models.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Debug, RustcEncodable, RustcDecodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Decodable` is not implemented for `Uuid` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "18e7bd8aefd614bd58048c11131fe54feeb0096b5441f3c7cfe93767ac5afcb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18e7bd8aefd614bd58048c11131fe54feeb0096b5441f3c7cfe93767ac5afcb9", kill_on_drop: false }` [INFO] [stdout] 18e7bd8aefd614bd58048c11131fe54feeb0096b5441f3c7cfe93767ac5afcb9