[INFO] cloning repository https://github.com/paoloposso/rust-mongo-poc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paoloposso/rust-mongo-poc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaoloposso%2Frust-mongo-poc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaoloposso%2Frust-mongo-poc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e504cc421255376c53d95cf0696b8ed6fd556d3 [INFO] building paoloposso/rust-mongo-poc against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaoloposso%2Frust-mongo-poc" "/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/paoloposso/rust-mongo-poc on toolchain ff34b919075f35a1787659e9c448a34b06bab8de [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/paoloposso/rust-mongo-poc [INFO] finished tweaking git repo https://github.com/paoloposso/rust-mongo-poc [INFO] tweaked toml for git repo https://github.com/paoloposso/rust-mongo-poc written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/paoloposso/rust-mongo-poc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc27965e6b6c98b2d10616c053df21d4899f86af5bec6daf7b9a885526f33d49 [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" "bc27965e6b6c98b2d10616c053df21d4899f86af5bec6daf7b9a885526f33d49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc27965e6b6c98b2d10616c053df21d4899f86af5bec6daf7b9a885526f33d49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc27965e6b6c98b2d10616c053df21d4899f86af5bec6daf7b9a885526f33d49", kill_on_drop: false }` [INFO] [stdout] bc27965e6b6c98b2d10616c053df21d4899f86af5bec6daf7b9a885526f33d49 [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=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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68f0fe3778fc2e6f0d2f84bba3a7ce584f1d68f624132d9dd7953be27e013a7b [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" "68f0fe3778fc2e6f0d2f84bba3a7ce584f1d68f624132d9dd7953be27e013a7b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling futures-core v0.3.7 [INFO] [stderr] Compiling futures-io v0.3.7 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling futures-sink v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling futures-task v0.3.7 [INFO] [stderr] Compiling sharded-slab v0.1.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling futures-channel v0.3.7 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling async-channel v1.5.1 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling futures-lite v1.11.2 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling polling v2.0.2 [INFO] [stderr] Compiling mio v0.7.5 [INFO] [stderr] Compiling tracing-log v0.1.1 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling os_info v2.0.8 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling backtrace v0.3.54 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling futures-intrusive v0.3.1 [INFO] [stderr] Compiling async-io v1.1.10 [INFO] [stderr] Compiling async-executor v1.3.0 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling async-global-executor v1.4.3 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling objectid v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling futures-macro v0.3.7 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling tokio-macros v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling async-stream-impl v0.2.1 [INFO] [stderr] Compiling structopt-derive v0.4.13 [INFO] [stderr] Compiling derivative v2.1.1 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling typed-builder v0.3.0 [INFO] [stderr] Compiling async-std v1.6.5 [INFO] [stderr] Compiling tokio v0.3.2 [INFO] [stderr] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling serde_with_macros v1.2.2 [INFO] [stderr] Compiling async-injector-derive v0.11.1 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling futures-util v0.3.7 [INFO] [stderr] Compiling structopt v0.3.20 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling futures-executor v0.3.7 [INFO] [stderr] Compiling futures v0.3.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.5 [INFO] [stderr] Compiling trust-dns-resolver v0.19.5 [INFO] [stderr] Compiling tracing-serde v0.1.2 [INFO] [stderr] Compiling serde-hashkey v0.2.2 [INFO] [stderr] Compiling serde_with v1.5.1 [INFO] [stderr] Compiling async-injector v0.11.1 [INFO] [stderr] Compiling tracing-subscriber v0.2.14 [INFO] [stderr] Compiling bson v1.1.0 [INFO] [stderr] Compiling mongodb v1.1.1 [INFO] [stderr] Compiling mini-redis v0.3.0 [INFO] [stderr] Compiling accounts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `doc` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/connection_factory.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | bson::{doc}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson::Bson` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::{bson::Bson}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/tests/repositories/account.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Account`, `account_repository::AccountRepositoryTrait` [INFO] [stdout] --> src/tests/repositories/account.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::{Account, account_repository::AccountRepositoryTrait}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repository::mongo_db::AccountRepository` [INFO] [stdout] --> src/tests/repositories/account.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::infrastructure::{repository::mongo_db::AccountRepository}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | Err(err) => return Err(DbError::SaveError("error saving to mongo db".to_string())), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Err(e) => print!("err"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Account` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/model/account.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/model/account.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(id: String, balance: f32) -> Account { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/domain/account.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(id: Option, balance: f32) -> Account { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_id` [INFO] [stdout] --> src/domain/account.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn generate_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 43s [INFO] running `Command { std: "docker" "inspect" "68f0fe3778fc2e6f0d2f84bba3a7ce584f1d68f624132d9dd7953be27e013a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68f0fe3778fc2e6f0d2f84bba3a7ce584f1d68f624132d9dd7953be27e013a7b", kill_on_drop: false }` [INFO] [stdout] 68f0fe3778fc2e6f0d2f84bba3a7ce584f1d68f624132d9dd7953be27e013a7b [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=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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee3d2401ada9f3ea352f5559caca6a5ccfbcacc3f47b4ae6349c87765ebfe5d1 [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" "ee3d2401ada9f3ea352f5559caca6a5ccfbcacc3f47b4ae6349c87765ebfe5d1", kill_on_drop: false }` [INFO] [stderr] Compiling accounts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `doc` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/connection_factory.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | bson::{doc}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson::Bson` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::{bson::Bson}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/tests/repositories/account.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | Err(err) => return Err(DbError::SaveError("error saving to mongo db".to_string())), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/account_repository.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Err(e) => print!("err"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Account` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/model/account.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/infrastructure/repository/mongo_db/model/account.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(id: String, balance: f32) -> Account { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.23s [INFO] running `Command { std: "docker" "inspect" "ee3d2401ada9f3ea352f5559caca6a5ccfbcacc3f47b4ae6349c87765ebfe5d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee3d2401ada9f3ea352f5559caca6a5ccfbcacc3f47b4ae6349c87765ebfe5d1", kill_on_drop: false }` [INFO] [stdout] ee3d2401ada9f3ea352f5559caca6a5ccfbcacc3f47b4ae6349c87765ebfe5d1