[INFO] cloning repository https://github.com/trivektor/rocket_food_recipes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trivektor/rocket_food_recipes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrivektor%2Frocket_food_recipes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrivektor%2Frocket_food_recipes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec1f999088fe9c1f2bc6d9ee8c7e2126e48ed1d9 [INFO] testing trivektor/rocket_food_recipes against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrivektor%2Frocket_food_recipes" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trivektor/rocket_food_recipes on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trivektor/rocket_food_recipes [INFO] finished tweaking git repo https://github.com/trivektor/rocket_food_recipes [INFO] tweaked toml for git repo https://github.com/trivektor/rocket_food_recipes written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/trivektor/rocket_food_recipes already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95c4c8d16e980139af5a7c27bc40da08311e6967420e371fe58c1ed2186523f8 [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" "95c4c8d16e980139af5a7c27bc40da08311e6967420e371fe58c1ed2186523f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95c4c8d16e980139af5a7c27bc40da08311e6967420e371fe58c1ed2186523f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95c4c8d16e980139af5a7c27bc40da08311e6967420e371fe58c1ed2186523f8", kill_on_drop: false }` [INFO] [stdout] 95c4c8d16e980139af5a7c27bc40da08311e6967420e371fe58c1ed2186523f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ac517bf530f59db049b701ea20dd2c733d6e6ff4c12f014d06e11dc1570b6b5b [INFO] running `Command { std: "docker" "start" "-a" "ac517bf530f59db049b701ea20dd2c733d6e6ff4c12f014d06e11dc1570b6b5b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling tinyvec v0.3.3 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling cc v1.0.57 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling subtle v2.2.3 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling rustversion v1.0.3 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling gimli v0.21.0 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling adler32 v1.1.0 [INFO] [stderr] Compiling bytes v0.5.5 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling zeroize v1.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling state v0.4.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling md5 v0.6.1 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.3 [INFO] [stderr] Compiling proc-macro-error v1.0.3 [INFO] [stderr] Compiling rocket_codegen v0.4.5 [INFO] [stderr] Compiling rocket v0.4.5 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling indexmap v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling os_info v2.0.6 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling addr2line v0.12.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-cipher-trait v0.6.2 [INFO] [stderr] Compiling universal-hash v0.3.0 [INFO] [stderr] Compiling aead v0.2.0 [INFO] [stderr] Compiling futures-intrusive v0.3.1 [INFO] [stderr] Compiling chrono v0.4.12 [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 hmac v0.7.1 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling backtrace v0.3.49 [INFO] [stderr] Compiling aes-soft v0.3.3 [INFO] [stderr] Compiling polyval v0.3.3 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling hkdf v0.8.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling ghash v0.2.3 [INFO] [stderr] Compiling aes v0.3.2 [INFO] [stderr] Compiling aes-gcm v0.5.0 [INFO] [stderr] Compiling cookie v0.11.3 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling typed-builder v0.3.0 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling serde_with_macros v1.1.0 [INFO] [stderr] Compiling derivative v2.1.1 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Compiling rocket_http v0.4.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling trust-dns-proto v0.19.5 [INFO] [stderr] Compiling trust-dns-resolver v0.19.5 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling serde_with v1.4.0 [INFO] [stderr] Compiling bson v1.0.0 [INFO] [stderr] Compiling mongodb v1.0.0 [INFO] [stderr] Compiling rocket_food_recipes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/models/recipe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb` [INFO] [stdout] --> src/models/recipe.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mongodb; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongo` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use lib::{mongo}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipe` [INFO] [stdout] --> src/routes/recipes.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn create(recipe: Form) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Recipe` [INFO] [stdout] --> src/models/recipe.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Recipe { [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: `save` [INFO] [stdout] --> src/models/recipe.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn save(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `establish_connection` [INFO] [stdout] --> src/lib/mongo.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn establish_connection() -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/routes/recipes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `description` [INFO] [stdout] --> src/routes/recipes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | description: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/models/recipe.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / collection.insert_one( [INFO] [stdout] 18 | | bson::doc! {"name": &self.name, "description": &self.description}, [INFO] [stdout] 19 | | None [INFO] [stdout] 20 | | ).await; [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: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 11s [INFO] running `Command { std: "docker" "inspect" "ac517bf530f59db049b701ea20dd2c733d6e6ff4c12f014d06e11dc1570b6b5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac517bf530f59db049b701ea20dd2c733d6e6ff4c12f014d06e11dc1570b6b5b", kill_on_drop: false }` [INFO] [stdout] ac517bf530f59db049b701ea20dd2c733d6e6ff4c12f014d06e11dc1570b6b5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43e1e8e7918d925aabf05216f3b1a960233871eb58d3f7845e53a87768e779fa [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" "43e1e8e7918d925aabf05216f3b1a960233871eb58d3f7845e53a87768e779fa", kill_on_drop: false }` [INFO] [stderr] Compiling rocket_food_recipes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/models/recipe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb` [INFO] [stdout] --> src/models/recipe.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mongodb; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongo` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use lib::{mongo}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipe` [INFO] [stdout] --> src/routes/recipes.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn create(recipe: Form) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Recipe` [INFO] [stdout] --> src/models/recipe.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Recipe { [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: `save` [INFO] [stdout] --> src/models/recipe.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn save(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `establish_connection` [INFO] [stdout] --> src/lib/mongo.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn establish_connection() -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/routes/recipes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `description` [INFO] [stdout] --> src/routes/recipes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | description: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/models/recipe.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / collection.insert_one( [INFO] [stdout] 18 | | bson::doc! {"name": &self.name, "description": &self.description}, [INFO] [stdout] 19 | | None [INFO] [stdout] 20 | | ).await; [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: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.75s [INFO] running `Command { std: "docker" "inspect" "43e1e8e7918d925aabf05216f3b1a960233871eb58d3f7845e53a87768e779fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43e1e8e7918d925aabf05216f3b1a960233871eb58d3f7845e53a87768e779fa", kill_on_drop: false }` [INFO] [stdout] 43e1e8e7918d925aabf05216f3b1a960233871eb58d3f7845e53a87768e779fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1e235d2328c4cd2ec07fe262e2a96f2f76b471e392d70f8c72169ca5bb6436e9 [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" "1e235d2328c4cd2ec07fe262e2a96f2f76b471e392d70f8c72169ca5bb6436e9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/models/recipe.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `mongodb` [INFO] [stderr] --> src/models/recipe.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use mongodb; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mongo` [INFO] [stderr] --> src/main.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | use lib::{mongo}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `recipe` [INFO] [stderr] --> src/routes/recipes.rs:15:15 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn create(recipe: Form) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipe` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Recipe` [INFO] [stderr] --> src/models/recipe.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Recipe { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `save` [INFO] [stderr] --> src/models/recipe.rs:13:18 [INFO] [stderr] | [INFO] [stderr] 13 | pub async fn save(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `establish_connection` [INFO] [stderr] --> src/lib/mongo.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | pub async fn establish_connection() -> std::result::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/routes/recipes.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `description` [INFO] [stderr] --> src/routes/recipes.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | description: String [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/models/recipe.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | / collection.insert_one( [INFO] [stderr] 18 | | bson::doc! {"name": &self.name, "description": &self.description}, [INFO] [stderr] 19 | | None [INFO] [stderr] 20 | | ).await; [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: 10 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/rocket_food_recipes-d2cf672f00eb4c76 [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1e235d2328c4cd2ec07fe262e2a96f2f76b471e392d70f8c72169ca5bb6436e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e235d2328c4cd2ec07fe262e2a96f2f76b471e392d70f8c72169ca5bb6436e9", kill_on_drop: false }` [INFO] [stdout] 1e235d2328c4cd2ec07fe262e2a96f2f76b471e392d70f8c72169ca5bb6436e9