[INFO] cloning repository https://github.com/mcohen97/coupons-promotions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mcohen97/coupons-promotions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcohen97%2Fcoupons-promotions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcohen97%2Fcoupons-promotions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6dc7a9435268f4560ee28e03c6a1a3aae4844d28 [INFO] testing mcohen97/coupons-promotions against 1.52.1 for beta-1.53-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcohen97%2Fcoupons-promotions" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mcohen97/coupons-promotions on toolchain 1.52.1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.52.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mcohen97/coupons-promotions [INFO] finished tweaking git repo https://github.com/mcohen97/coupons-promotions [INFO] tweaked toml for git repo https://github.com/mcohen97/coupons-promotions written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/mcohen97/coupons-promotions already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.52.1" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+1.52.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11e9785fbf17301aabb4abf64403a252e01f90eb0dbf661c4bcd1c4eb397ffed [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "11e9785fbf17301aabb4abf64403a252e01f90eb0dbf661c4bcd1c4eb397ffed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11e9785fbf17301aabb4abf64403a252e01f90eb0dbf661c4bcd1c4eb397ffed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11e9785fbf17301aabb4abf64403a252e01f90eb0dbf661c4bcd1c4eb397ffed", kill_on_drop: false }` [INFO] [stdout] 11e9785fbf17301aabb4abf64403a252e01f90eb0dbf661c4bcd1c4eb397ffed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+1.52.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 449da7383dc41c628e03814dde7b4289cdc81fe17d65c7a4d2a77fe50a77bed5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "449da7383dc41c628e03814dde7b4289cdc81fe17d65c7a4d2a77fe50a77bed5", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Compiling cookie-factory v0.3.0 [INFO] [stderr] Compiling openssl v0.10.25 [INFO] [stderr] Compiling encoding_rs v0.8.20 [INFO] [stderr] Compiling arc-swap v0.4.3 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling mime v0.3.14 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling hashbrown v0.3.1 [INFO] [stderr] Compiling evalexpr v5.0.5 [INFO] [stderr] Compiling iso3166-1 v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling actix-service v0.4.2 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling ring v0.14.6 [INFO] [stderr] Compiling tokio-sync v0.1.7 [INFO] [stderr] Compiling openssl-sys v0.9.52 [INFO] [stderr] Compiling libsqlite3-sys v0.16.0 [INFO] [stderr] Compiling nom v5.0.1 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.11.0 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling socket2 v0.3.11 [INFO] [stderr] Compiling signal-hook-registry v1.1.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling lexical-core v0.4.6 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.4.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling backtrace v0.3.40 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling signal-hook v0.1.11 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.19 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling nanoid v0.2.0 [INFO] [stderr] Compiling flate2 v1.0.12 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.2 [INFO] [stderr] Compiling tokio-reactor v0.1.10 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling amq-protocol-uri v3.1.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling r2d2 v0.8.6 [INFO] [stderr] Compiling actix-codec v0.1.2 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-udp v0.1.5 [INFO] [stderr] Compiling tokio-signal v0.2.7 [INFO] [stderr] Compiling actix-utils v0.4.7 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling actix-server-config v0.1.2 [INFO] [stderr] Compiling bigdecimal v0.1.0 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling tcp-stream v0.8.0 [INFO] [stderr] Compiling amq-protocol-tcp v3.1.0 [INFO] [stderr] Compiling pest_generator v2.1.1 [INFO] [stderr] Compiling synstructure v0.12.2 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling actix_derive v0.4.0 [INFO] [stderr] Compiling derive_more v0.14.1 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.1.3 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling const-random-macro v0.1.6 [INFO] [stderr] Compiling trust-dns-proto v0.7.4 [INFO] [stderr] Compiling const-random v0.1.6 [INFO] [stderr] Compiling ahash v0.2.17 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Compiling trust-dns-resolver v0.11.1 [INFO] [stderr] Compiling actix-threadpool v0.1.2 [INFO] [stderr] Compiling actix-rt v0.2.5 [INFO] [stderr] Compiling actix-server v0.6.1 [INFO] [stderr] Compiling actix-connect v0.2.5 [INFO] [stderr] Compiling actix-testing v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling hashbrown v0.5.0 [INFO] [stderr] Compiling chrono v0.4.9 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.1.5 [INFO] [stderr] Compiling iata-types v0.1.4 [INFO] [stderr] Compiling diesel v1.4.3 [INFO] [stderr] Compiling amq-protocol-types v3.1.0 [INFO] [stderr] Compiling handlebars v2.0.2 [INFO] [stderr] Compiling actix-http v0.2.11 [INFO] [stderr] Compiling jsonwebtoken v6.0.1 [INFO] [stderr] Compiling amq-protocol-codegen v3.1.0 [INFO] [stderr] Compiling awc v0.2.8 [INFO] [stderr] Compiling actix v0.8.3 [INFO] [stderr] Compiling amq-protocol v3.1.0 [INFO] [stderr] Compiling lapin v0.28.2 [INFO] [stderr] Compiling actix-web v1.0.8 [INFO] [stderr] Compiling lapin-futures v0.28.2 [INFO] [stderr] Compiling evaluations v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/models/organization_repo.rs:19:51 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn create(&self, id: String) -> ApiResult<(bool)> { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/models/organization_repo.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn delete(&self, id: String) -> ApiResult<(bool)> { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:117:87 [INFO] [stdout] | [INFO] [stdout] 117 | e => ApiError::InternalError(Cow::from(format!("Data access error: {}", e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:130:46 [INFO] [stdout] | [INFO] [stdout] 130 | ApiError::InternalError(Cow::Owned(e.description().to_string())) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:136:35 [INFO] [stdout] | [INFO] [stdout] 136 | ApiError::InternalError(e.description().to_string().into()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/messages/message_listener.rs:56:72 [INFO] [stdout] | [INFO] [stdout] 56 | let payload = std::str::from_utf8(&message.data).map_err(|e| e.description().to_string())?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/messages/message_listener.rs:57:70 [INFO] [stdout] | [INFO] [stdout] 57 | let data: UUID = serde_json::from_str(payload).map_err(|e| e.description().to_string())?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 19s [INFO] running `Command { std: "docker" "inspect" "449da7383dc41c628e03814dde7b4289cdc81fe17d65c7a4d2a77fe50a77bed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "449da7383dc41c628e03814dde7b4289cdc81fe17d65c7a4d2a77fe50a77bed5", kill_on_drop: false }` [INFO] [stdout] 449da7383dc41c628e03814dde7b4289cdc81fe17d65c7a4d2a77fe50a77bed5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+1.52.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef3c9e7c4e08dd46f21dea442921bff68d1b5afb7e2983f1c5c63e2ade110be1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef3c9e7c4e08dd46f21dea442921bff68d1b5afb7e2983f1c5c63e2ade110be1", kill_on_drop: false }` [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling speculate v0.1.2 [INFO] [stderr] Compiling evaluations v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/models/organization_repo.rs:19:51 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn create(&self, id: String) -> ApiResult<(bool)> { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/models/organization_repo.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn delete(&self, id: String) -> ApiResult<(bool)> { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:117:87 [INFO] [stdout] | [INFO] [stdout] 117 | e => ApiError::InternalError(Cow::from(format!("Data access error: {}", e.description()))) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:130:46 [INFO] [stdout] | [INFO] [stdout] 130 | ApiError::InternalError(Cow::Owned(e.description().to_string())) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/server/api_error.rs:136:35 [INFO] [stdout] | [INFO] [stdout] 136 | ApiError::InternalError(e.description().to_string().into()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/messages/message_listener.rs:56:72 [INFO] [stdout] | [INFO] [stdout] 56 | let payload = std::str::from_utf8(&message.data).map_err(|e| e.description().to_string())?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/messages/message_listener.rs:57:70 [INFO] [stdout] | [INFO] [stdout] 57 | let data: UUID = serde_json::from_str(payload).map_err(|e| e.description().to_string())?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org` [INFO] [stdout] --> src/models/promotion_repo.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let org = "TESTING PROMO"; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_org` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/models/promotion_repo.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | repo.update(&fetched); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 23.70s [INFO] running `Command { std: "docker" "inspect" "ef3c9e7c4e08dd46f21dea442921bff68d1b5afb7e2983f1c5c63e2ade110be1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef3c9e7c4e08dd46f21dea442921bff68d1b5afb7e2983f1c5c63e2ade110be1", kill_on_drop: false }` [INFO] [stdout] ef3c9e7c4e08dd46f21dea442921bff68d1b5afb7e2983f1c5c63e2ade110be1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+1.52.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eba90e748d802ea5317fb56bbf66873c11b32699722add42d3912817cbf51767 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "eba90e748d802ea5317fb56bbf66873c11b32699722add42d3912817cbf51767", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/models/organization_repo.rs:19:51 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn create(&self, id: String) -> ApiResult<(bool)> { [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/models/organization_repo.rs:27:51 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn delete(&self, id: String) -> ApiResult<(bool)> { [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/server/api_error.rs:117:87 [INFO] [stderr] | [INFO] [stderr] 117 | e => ApiError::InternalError(Cow::from(format!("Data access error: {}", e.description()))) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/server/api_error.rs:130:46 [INFO] [stderr] | [INFO] [stderr] 130 | ApiError::InternalError(Cow::Owned(e.description().to_string())) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/server/api_error.rs:136:35 [INFO] [stderr] | [INFO] [stderr] 136 | ApiError::InternalError(e.description().to_string().into()) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/messages/message_listener.rs:56:72 [INFO] [stderr] | [INFO] [stderr] 56 | let payload = std::str::from_utf8(&message.data).map_err(|e| e.description().to_string())?; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/messages/message_listener.rs:57:70 [INFO] [stderr] | [INFO] [stderr] 57 | let data: UUID = serde_json::from_str(payload).map_err(|e| e.description().to_string())?; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `org` [INFO] [stderr] --> src/models/promotion_repo.rs:136:13 [INFO] [stderr] | [INFO] [stderr] 136 | let org = "TESTING PROMO"; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_org` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/models/promotion_repo.rs:148:9 [INFO] [stderr] | [INFO] [stderr] 148 | repo.update(&fetched); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 9 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.52s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/evaluations-38474b05b131d37e) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test models::demographics::tests::invalid_country_code ... ok [INFO] [stdout] test models::demographics::tests::country_name_instead_of_code ... ok [INFO] [stdout] test models::demographics::tests::invalid_city_code ... ok [INFO] [stdout] test models::demographics::tests::city_name_instead_of_code ... ok [INFO] [stdout] test models::demographics::tests::valid_data ... ok [INFO] [stdout] test models::expression_parser::tests::valid_coupon_code ... ok [INFO] [stdout] test models::expression_parser::tests::invalid_discount_code ... ok [INFO] [stdout] test models::expression_parser::tests::invalid_coupon_code ... ok [INFO] [stdout] test models::expression_parser::tests::valid_discount_code ... ok [INFO] [stdout] test models::expression_parser::tests::valid_discount_code_or ... ok [INFO] [stdout] test models::promotion_repo::tests::crud_test ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- models::promotion_repo::tests::crud_test stdout ---- [INFO] [stdout] thread 'models::promotion_repo::tests::crud_test' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src/models/promotion_repo.rs:130:49 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55e6785b2dd0 - std::backtrace_rs::backtrace::libunwind::trace::h63b7a90188ab5fb3 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55e6785b2dd0 - std::backtrace_rs::backtrace::trace_unsynchronized::h80aefbf9b851eca7 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55e6785b2dd0 - std::sys_common::backtrace::_print_fmt::hbef05ae4237a4d72 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55e6785b2dd0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h28abce2fdb9884c2 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55e6785d401f - core::fmt::write::h3b84512577ca38a8 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/fmt/mod.rs:1092:17 [INFO] [stdout] 5: 0x55e6785afd42 - std::io::Write::write_fmt::ha43497f2606bf479 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/mod.rs:1572:15 [INFO] [stdout] 6: 0x55e6785b4fc5 - std::sys_common::backtrace::_print::h525280ee0d29bdde [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55e6785b4fc5 - std::sys_common::backtrace::print::h1f0f5b9f3ef8fb78 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55e6785b4fc5 - std::panicking::default_hook::{{closure}}::ha5838f6faa4a5a8f [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x55e6785b4aae - std::panicking::default_hook::hfb9fe98acb0dcb3b [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x55e6785b55cd - std::panicking::rust_panic_with_hook::hb89f5f19036e6af8 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:591:17 [INFO] [stdout] 11: 0x55e6785b5167 - std::panicking::begin_panic_handler::{{closure}}::h119e7951427f41da [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:497:13 [INFO] [stdout] 12: 0x55e6785b328c - std::sys_common::backtrace::__rust_end_short_backtrace::hce386c44bf47a128 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55e6785b50c9 - rust_begin_unwind [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5 [INFO] [stdout] 14: 0x55e67843c801 - core::panicking::panic_fmt::h2242888e8769cd33 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x55e67843c6f3 - core::option::expect_none_failed::hb1edf11f73e63728 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/option.rs:1329:5 [INFO] [stdout] 16: 0x55e67844b5de - core::result::Result<T,E>::unwrap::h3c73accc8c7288d0 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/result.rs:1037:23 [INFO] [stdout] 17: 0x55e678472eb7 - evaluations::models::promotion_repo::tests::crud_test::h785a36a23973c0a1 [INFO] [stdout] at /opt/rustwide/workdir/src/models/promotion_repo.rs:130:19 [INFO] [stdout] 18: 0x55e678472e2a - evaluations::models::promotion_repo::tests::crud_test::{{closure}}::h0ac42205339bca5e [INFO] [stdout] at /opt/rustwide/workdir/src/models/promotion_repo.rs:128:5 [INFO] [stdout] 19: 0x55e67844dcae - core::ops::function::FnOnce::call_once::h11aa70c9128a6df7 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55e6784a70c3 - core::ops::function::FnOnce::call_once::hdb810ad7400115fe [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x55e6784a70c3 - test::__rust_begin_short_backtrace::ha1f41cc5fdd4436d [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/test/src/lib.rs:567:5 [INFO] [stdout] 22: 0x55e6784a59e0 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5b11193df8b131e3 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9 [INFO] [stdout] 23: 0x55e6784a59e0 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hf50f904c1a6fa2f6 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panic.rs:344:9 [INFO] [stdout] 24: 0x55e6784a59e0 - std::panicking::try::do_call::ha03b6478dda0cd2d [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:379:40 [INFO] [stdout] 25: 0x55e6784a59e0 - std::panicking::try::h3cb77b72195ddd43 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:343:19 [INFO] [stdout] 26: 0x55e6784a59e0 - std::panic::catch_unwind::h6b5552b2bb62113e [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panic.rs:431:14 [INFO] [stdout] 27: 0x55e6784a59e0 - test::run_test_in_process::hc7194b3d1995d805 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/test/src/lib.rs:589:18 [INFO] [stdout] 28: 0x55e6784a59e0 - test::run_test::run_test_inner::{{closure}}::h939ee0e7ade9ca46 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/test/src/lib.rs:486:39 [INFO] [stdout] 29: 0x55e67847f2de - test::run_test::run_test_inner::{{closure}}::h32985052db5accee [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/test/src/lib.rs:511:37 [INFO] [stdout] 30: 0x55e67847f2de - std::sys_common::backtrace::__rust_begin_short_backtrace::h9fb42e36e9d0b83f [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 31: 0x55e67848323f - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h73eb5d030ae9f27e [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/thread/mod.rs:474:17 [INFO] [stdout] 32: 0x55e67848323f - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h0b21097ddcf592a1 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panic.rs:344:9 [INFO] [stdout] 33: 0x55e67848323f - std::panicking::try::do_call::h548baa681d50a8e5 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:379:40 [INFO] [stdout] 34: 0x55e67848323f - std::panicking::try::h788942712f8b8932 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:343:19 [INFO] [stdout] 35: 0x55e67848323f - std::panic::catch_unwind::hc87eb933af4026f7 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panic.rs:431:14 [INFO] [stdout] 36: 0x55e67848323f - std::thread::Builder::spawn_unchecked::{{closure}}::h87c239f54e720337 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/thread/mod.rs:473:30 [INFO] [stdout] 37: 0x55e67848323f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1303b0fd11694b99 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x55e6785baf9a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc444a77f8dd8d825 [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9 [INFO] [stdout] 39: 0x55e6785baf9a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8b68a0a9a2093dfc [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9 [INFO] [stdout] 40: 0x55e6785baf9a - std::sys::unix::thread::Thread::new::thread_start::hb95464447f61f48d [INFO] [stdout] at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 41: 0x7f6568c96609 - start_thread [INFO] [stdout] 42: 0x7f6568a68293 - clone [INFO] [stdout] 43: 0x0 - <unknown> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] models::promotion_repo::tests::crud_test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin evaluations' [INFO] running `Command { std: "docker" "inspect" "eba90e748d802ea5317fb56bbf66873c11b32699722add42d3912817cbf51767", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eba90e748d802ea5317fb56bbf66873c11b32699722add42d3912817cbf51767", kill_on_drop: false }` [INFO] [stdout] eba90e748d802ea5317fb56bbf66873c11b32699722add42d3912817cbf51767