[INFO] cloning repository https://github.com/MD-grushaparmar/crud_api_mongodb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MD-grushaparmar/crud_api_mongodb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMD-grushaparmar%2Fcrud_api_mongodb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMD-grushaparmar%2Fcrud_api_mongodb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d03059431ff35094c18c54302aae5f38c404e717 [INFO] testing MD-grushaparmar/crud_api_mongodb against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMD-grushaparmar%2Fcrud_api_mongodb" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MD-grushaparmar/crud_api_mongodb on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MD-grushaparmar/crud_api_mongodb [INFO] finished tweaking git repo https://github.com/MD-grushaparmar/crud_api_mongodb [INFO] tweaked toml for git repo https://github.com/MD-grushaparmar/crud_api_mongodb written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MD-grushaparmar/crud_api_mongodb 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" "+1.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded futures-macro v0.3.26 [INFO] [stderr] Downloaded data-encoding v2.3.3 [INFO] [stderr] Downloaded pretty_env_logger v0.4.0 [INFO] [stderr] Downloaded ipconfig v0.3.1 [INFO] [stderr] Downloaded tungstenite v0.17.3 [INFO] [stderr] Downloaded time-macros v0.2.7 [INFO] [stderr] Downloaded futures-executor v0.3.26 [INFO] [stderr] Downloaded time v0.3.19 [INFO] [stderr] Downloaded bson v2.5.0 [INFO] [stderr] Downloaded os_info v3.6.0 [INFO] [stderr] Downloaded pbkdf2 v0.10.1 [INFO] [stderr] Downloaded rustls-pemfile v0.3.0 [INFO] [stderr] Downloaded serde_bytes v0.11.9 [INFO] [stderr] Downloaded multipart v0.18.0 [INFO] [stderr] Downloaded mongodb v2.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edd8148e5fb1d9d5494b5e69c5d075bb723d0b64f96891bcb1e5e5b0b56f6d31 [INFO] running `Command { std: "docker" "start" "-a" "edd8148e5fb1d9d5494b5e69c5d075bb723d0b64f96891bcb1e5e5b0b56f6d31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edd8148e5fb1d9d5494b5e69c5d075bb723d0b64f96891bcb1e5e5b0b56f6d31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edd8148e5fb1d9d5494b5e69c5d075bb723d0b64f96891bcb1e5e5b0b56f6d31", kill_on_drop: false }` [INFO] [stdout] edd8148e5fb1d9d5494b5e69c5d075bb723d0b64f96891bcb1e5e5b0b56f6d31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 899f5cb1e65332bbf3519a3b04ec1e84044093176badbff3fd616572b017bc8a [INFO] running `Command { std: "docker" "start" "-a" "899f5cb1e65332bbf3519a3b04ec1e84044093176badbff3fd616572b017bc8a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-macro v0.3.26 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling async-trait v0.1.64 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling time-macros v0.2.7 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling data-encoding v2.3.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling tungstenite v0.17.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling serde_bytes v0.11.9 [INFO] [stderr] Compiling uuid v1.3.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling headers v0.3.8 [INFO] [stderr] Compiling time v0.3.19 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling pbkdf2 v0.10.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling rustls-pemfile v0.3.0 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling os_info v3.6.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling futures-executor v0.3.26 [INFO] [stderr] Compiling bson v2.5.0 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling trust-dns-proto v0.21.2 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling tokio-stream v0.1.12 [INFO] [stderr] Compiling tokio-tungstenite v0.17.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling trust-dns-resolver v0.21.2 [INFO] [stderr] Compiling mongodb v2.3.1 [INFO] [stderr] Compiling hyper v0.14.24 [INFO] [stderr] Compiling warp v0.3.3 [INFO] [stderr] Compiling mongo_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FindOptions` [INFO] [stdout] --> src/db.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::options::{FindOneAndUpdateOptions, FindOptions, IndexOptions,ReturnDocument}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warp::query` [INFO] [stdout] --> src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use warp::query; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/model.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::bson::{self,oid::ObjectId}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut client_options= ClientOptions::parse("mongodb://localhost:27017").await?; [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: field `id` is never read [INFO] [stdout] --> src/schema.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ParamOptions{ [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Student_collection` should have a snake case name [INFO] [stdout] --> src/db.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub Student_collection: Collection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Student_collection` should have a snake case name [INFO] [stdout] --> src/db.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let Student_collection:Collection = database.collection("Student"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "899f5cb1e65332bbf3519a3b04ec1e84044093176badbff3fd616572b017bc8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "899f5cb1e65332bbf3519a3b04ec1e84044093176badbff3fd616572b017bc8a", kill_on_drop: false }` [INFO] [stdout] 899f5cb1e65332bbf3519a3b04ec1e84044093176badbff3fd616572b017bc8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57ac5aa3dcfd5d768a1f2d00370c48761cd5d1c2da86978f5387d544ef3ca09b [INFO] running `Command { std: "docker" "start" "-a" "57ac5aa3dcfd5d768a1f2d00370c48761cd5d1c2da86978f5387d544ef3ca09b", kill_on_drop: false }` [INFO] [stderr] Compiling mongo_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FindOptions` [INFO] [stdout] --> src/db.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::options::{FindOneAndUpdateOptions, FindOptions, IndexOptions,ReturnDocument}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warp::query` [INFO] [stdout] --> src/db.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use warp::query; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/model.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::bson::{self,oid::ObjectId}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut client_options= ClientOptions::parse("mongodb://localhost:27017").await?; [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: field `id` is never read [INFO] [stdout] --> src/schema.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ParamOptions{ [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Student_collection` should have a snake case name [INFO] [stdout] --> src/db.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub Student_collection: Collection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Student_collection` should have a snake case name [INFO] [stdout] --> src/db.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let Student_collection:Collection = database.collection("Student"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.32s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "57ac5aa3dcfd5d768a1f2d00370c48761cd5d1c2da86978f5387d544ef3ca09b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57ac5aa3dcfd5d768a1f2d00370c48761cd5d1c2da86978f5387d544ef3ca09b", kill_on_drop: false }` [INFO] [stdout] 57ac5aa3dcfd5d768a1f2d00370c48761cd5d1c2da86978f5387d544ef3ca09b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 519e22e6941311f50a780d35ec456305d50c6375acbaa3a58d21f04fedfe4d25 [INFO] running `Command { std: "docker" "start" "-a" "519e22e6941311f50a780d35ec456305d50c6375acbaa3a58d21f04fedfe4d25", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `FindOptions` [INFO] [stderr] --> src/db.rs:7:49 [INFO] [stderr] | [INFO] [stderr] 7 | use mongodb::options::{FindOneAndUpdateOptions, FindOptions, IndexOptions,ReturnDocument}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `warp::query` [INFO] [stderr] --> src/db.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use warp::query; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/model.rs:1:21 [INFO] [stderr] | [INFO] [stderr] 1 | use mongodb::bson::{self,oid::ObjectId}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/db.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | let mut client_options= ClientOptions::parse("mongodb://localhost:27017").await?; [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: field `id` is never read [INFO] [stderr] --> src/schema.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct ParamOptions{ [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 5 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `ParamOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `Student_collection` should have a snake case name [INFO] [stderr] --> src/db.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub Student_collection: Collection, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `Student_collection` should have a snake case name [INFO] [stderr] --> src/db.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | let Student_collection:Collection = database.collection("Student"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `student_collection` [INFO] [stderr] [INFO] [stderr] warning: `mongo_api` (bin "mongo_api" test) generated 7 warnings (run `cargo fix --bin "mongo_api" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mongo_api-3f5be7404305a840) [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" "519e22e6941311f50a780d35ec456305d50c6375acbaa3a58d21f04fedfe4d25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "519e22e6941311f50a780d35ec456305d50c6375acbaa3a58d21f04fedfe4d25", kill_on_drop: false }` [INFO] [stdout] 519e22e6941311f50a780d35ec456305d50c6375acbaa3a58d21f04fedfe4d25