[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] testing MrConstantinne/rust-web-api against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrConstantinne%2Frust-web-api" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrConstantinne/rust-web-api on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-0/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" "+beta-2022-04-10" "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-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 305ed098b070f41e08c32c93e06fb1f23618932db2fba5b422c5dca7f3192021 [INFO] running `Command { std: "docker" "start" "-a" "305ed098b070f41e08c32c93e06fb1f23618932db2fba5b422c5dca7f3192021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "305ed098b070f41e08c32c93e06fb1f23618932db2fba5b422c5dca7f3192021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "305ed098b070f41e08c32c93e06fb1f23618932db2fba5b422c5dca7f3192021", kill_on_drop: false }` [INFO] [stdout] 305ed098b070f41e08c32c93e06fb1f23618932db2fba5b422c5dca7f3192021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c240f82e58f870be99a4e9c40288a4f5b22f4a8209f983d25181e58bd128e2c6 [INFO] running `Command { std: "docker" "start" "-a" "c240f82e58f870be99a4e9c40288a4f5b22f4a8209f983d25181e58bd128e2c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.6 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling route-recognizer v0.1.13 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling serde v0.7.15 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [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 typemap v0.3.3 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling uuid v0.2.3 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling router v0.6.0 [INFO] [stderr] Compiling logger v0.4.0 [INFO] [stderr] Compiling 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[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: 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: could not compile `web_api` due to 15 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c240f82e58f870be99a4e9c40288a4f5b22f4a8209f983d25181e58bd128e2c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c240f82e58f870be99a4e9c40288a4f5b22f4a8209f983d25181e58bd128e2c6", kill_on_drop: false }` [INFO] [stdout] c240f82e58f870be99a4e9c40288a4f5b22f4a8209f983d25181e58bd128e2c6