[INFO] cloning repository https://github.com/ColinEspinas/rust-auth-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ColinEspinas/rust-auth-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce3848c5223a84440dc4bf0ad4beeb00ccf8e0cf [INFO] testing ColinEspinas/rust-auth-api against try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 for pr-107051 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ColinEspinas/rust-auth-api on toolchain 613d1972a772987ed4ee06faccbab0e2fc839871 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ColinEspinas/rust-auth-api [INFO] finished tweaking git repo https://github.com/ColinEspinas/rust-auth-api [INFO] tweaked toml for git repo https://github.com/ColinEspinas/rust-auth-api written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ColinEspinas/rust-auth-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df6dfaded8dae45f1d0b7b53dd1d3c2ca7418438b8596c74d3c392aa24adbf61 [INFO] running `Command { std: "docker" "start" "-a" "df6dfaded8dae45f1d0b7b53dd1d3c2ca7418438b8596c74d3c392aa24adbf61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df6dfaded8dae45f1d0b7b53dd1d3c2ca7418438b8596c74d3c392aa24adbf61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df6dfaded8dae45f1d0b7b53dd1d3c2ca7418438b8596c74d3c392aa24adbf61", kill_on_drop: false }` [INFO] [stdout] df6dfaded8dae45f1d0b7b53dd1d3c2ca7418438b8596c74d3c392aa24adbf61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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 -Copt-level=3" "-e" "RUSTDOCFLAGS=--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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc7cad762c69448cabf78e12afaf3cfadf6603c26729c21f0526599acba7f07f [INFO] running `Command { std: "docker" "start" "-a" "bc7cad762c69448cabf78e12afaf3cfadf6603c26729c21f0526599acba7f07f", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling sval v1.0.0-alpha.5 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling fastrand v1.4.1 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling signal-hook v0.3.9 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.7 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling tokio v1.8.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling http-types v2.11.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling simple-mutex v1.1.5 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling byte-pool v0.2.3 [INFO] [stderr] Compiling async-dup v1.2.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling pbkdf2 v0.7.5 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling ctor v0.1.20 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling typed-builder v0.9.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.4.2 [INFO] [stderr] Compiling polling v2.1.0 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling async-process v1.1.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling async-std v1.9.0 [INFO] [stderr] Compiling os_info v3.0.6 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_qs v0.7.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_with v1.9.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling femme v2.1.1 [INFO] [stderr] Compiling bson v2.0.0-beta.2 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling async-std-resolver v0.20.3 [INFO] [stderr] Compiling http-client v6.4.1 [INFO] [stderr] Compiling async-h1 v2.3.2 [INFO] [stderr] Compiling mongodb v2.0.0-beta.2 [INFO] [stderr] Compiling tide v0.16.0 [INFO] [stderr] Compiling rust-auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bson::Document` [INFO] [stdout] --> src/repositories/account.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Collection, Database, bson::Document}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbs::mongo::Connection` [INFO] [stdout] --> src/repositories/account.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{dbs::mongo::Connection, models::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::TryStreamExt` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{StreamExt, stream::TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | async fn get_accounts(mut req: Request) -> tide::Result> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/main.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Err(error) => print!("Cannot get accounts"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `mongo` is never used [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mongo(&self) -> &Connection { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/dbs/mongo.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `client` is never used [INFO] [stdout] --> src/dbs/mongo.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/account.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_id` is never used [INFO] [stdout] --> src/models/account.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, email: String, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 53s [INFO] running `Command { std: "docker" "inspect" "bc7cad762c69448cabf78e12afaf3cfadf6603c26729c21f0526599acba7f07f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc7cad762c69448cabf78e12afaf3cfadf6603c26729c21f0526599acba7f07f", kill_on_drop: false }` [INFO] [stdout] bc7cad762c69448cabf78e12afaf3cfadf6603c26729c21f0526599acba7f07f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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 -Copt-level=3" "-e" "RUSTDOCFLAGS=--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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5f5847b839822a3c829b41320fc2a868e5ea04d65724feada200c9a7137f04d [INFO] running `Command { std: "docker" "start" "-a" "b5f5847b839822a3c829b41320fc2a868e5ea04d65724feada200c9a7137f04d", kill_on_drop: false }` [INFO] [stderr] Compiling rust-auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bson::Document` [INFO] [stdout] --> src/repositories/account.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Collection, Database, bson::Document}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbs::mongo::Connection` [INFO] [stdout] --> src/repositories/account.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{dbs::mongo::Connection, models::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::TryStreamExt` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{StreamExt, stream::TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | async fn get_accounts(mut req: Request) -> tide::Result> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/main.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Err(error) => print!("Cannot get accounts"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `mongo` is never used [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mongo(&self) -> &Connection { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/dbs/mongo.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `client` is never used [INFO] [stdout] --> src/dbs/mongo.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/account.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_id` is never used [INFO] [stdout] --> src/models/account.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, email: String, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "b5f5847b839822a3c829b41320fc2a868e5ea04d65724feada200c9a7137f04d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5f5847b839822a3c829b41320fc2a868e5ea04d65724feada200c9a7137f04d", kill_on_drop: false }` [INFO] [stdout] b5f5847b839822a3c829b41320fc2a868e5ea04d65724feada200c9a7137f04d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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 -Copt-level=3" "-e" "RUSTDOCFLAGS=--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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c9489e5c5fa2aed1a2a29fa7f8a27421de8488324a9671e244c501a1ebdc5d5a [INFO] running `Command { std: "docker" "start" "-a" "c9489e5c5fa2aed1a2a29fa7f8a27421de8488324a9671e244c501a1ebdc5d5a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `bson::Document` [INFO] [stderr] --> src/repositories/account.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use mongodb::{Collection, Database, bson::Document}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `dbs::mongo::Connection` [INFO] [stderr] --> src/repositories/account.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{dbs::mongo::Connection, models::Account}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stderr] --> src/main.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `stream::TryStreamExt` [INFO] [stderr] --> src/main.rs:14:26 [INFO] [stderr] | [INFO] [stderr] 14 | use futures::{StreamExt, stream::TryStreamExt}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:61:23 [INFO] [stderr] | [INFO] [stderr] 61 | async fn get_accounts(mut req: Request) -> tide::Result> { [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error` [INFO] [stderr] --> src/main.rs:74:11 [INFO] [stderr] | [INFO] [stderr] 74 | Err(error) => print!("Cannot get accounts"), [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `mongo` is never used [INFO] [stderr] --> src/main.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn mongo(&self) -> &Connection { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `client` is never read [INFO] [stderr] --> src/dbs/mongo.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Connection { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 5 | client: Client, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `client` is never used [INFO] [stderr] --> src/dbs/mongo.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | pub async fn client(&self) -> Client { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/account.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `get_id` is never used [INFO] [stderr] --> src/models/account.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn get_id(&self) -> ObjectId { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/user.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new(name: String, email: String, password: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-auth-api` (bin "rust-auth-api" test) generated 12 warnings (run `cargo fix --bin "rust-auth-api" --tests` to apply 6 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_auth_api-84c1d349222a1f97) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c9489e5c5fa2aed1a2a29fa7f8a27421de8488324a9671e244c501a1ebdc5d5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9489e5c5fa2aed1a2a29fa7f8a27421de8488324a9671e244c501a1ebdc5d5a", kill_on_drop: false }` [INFO] [stdout] c9489e5c5fa2aed1a2a29fa7f8a27421de8488324a9671e244c501a1ebdc5d5a