[INFO] cloning repository https://github.com/puttarawut/test-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/puttarawut/test-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fputtarawut%2Ftest-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fputtarawut%2Ftest-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b9a55864e9e884061501b6a9639facdd182f78b [INFO] checking puttarawut/test-rust against try#4a04890980766cc79878135f5ade8c0c4321e943 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fputtarawut%2Ftest-rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/puttarawut/test-rust on toolchain 4a04890980766cc79878135f5ade8c0c4321e943 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/puttarawut/test-rust [INFO] finished tweaking git repo https://github.com/puttarawut/test-rust [INFO] tweaked toml for git repo https://github.com/puttarawut/test-rust written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/puttarawut/test-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bson v0.13.0 [INFO] [stderr] Downloaded scan_fmt v0.1.3 [INFO] [stderr] Downloaded separator v0.3.1 [INFO] [stderr] Downloaded r2d2-mongodb v0.2.2 [INFO] [stderr] Downloaded md-5 v0.7.0 [INFO] [stderr] Downloaded textnonce v0.6.5 [INFO] [stderr] Downloaded mongodb v0.3.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5caf6e4bbc5156e7a51cff430d4fe8046ad3ad2dd084e0fa368f23529656046 [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" "a5caf6e4bbc5156e7a51cff430d4fe8046ad3ad2dd084e0fa368f23529656046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5caf6e4bbc5156e7a51cff430d4fe8046ad3ad2dd084e0fa368f23529656046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5caf6e4bbc5156e7a51cff430d4fe8046ad3ad2dd084e0fa368f23529656046", kill_on_drop: false }` [INFO] [stdout] a5caf6e4bbc5156e7a51cff430d4fe8046ad3ad2dd084e0fa368f23529656046 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "RUSTUP_TOOLCHAIN=4a04890980766cc79878135f5ade8c0c4321e943" "-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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/tmp/crater-runner-fifo/jobserver-crater-fwd" "/opt/rustwide/cargo-home/bin/cargo" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1776f537c77c872c7281953e9706743e84781feb0fa4b5cc0f9976c0e60e885 [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" "b1776f537c77c872c7281953e9706743e84781feb0fa4b5cc0f9976c0e60e885", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling log v0.4.13 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.120 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.120 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking try_from v0.2.2 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking data-encoding v2.3.1 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Checking separator v0.3.1 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking thread_local v1.1.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling rocket_codegen v0.4.6 [INFO] [stderr] Compiling rocket v0.4.6 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Checking block-buffer v0.3.3 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking semver v0.8.0 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking filetime v0.2.13 [INFO] [stderr] Checking generic-array v0.9.0 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking digest v0.7.6 [INFO] [stderr] Checking crypto-mac v0.6.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking sha2 v0.7.1 [INFO] [stderr] Checking sha-1 v0.7.0 [INFO] [stderr] Checking md-5 v0.7.0 [INFO] [stderr] Checking hmac v0.6.3 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking scan_fmt v0.1.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking pbkdf2 v0.2.3 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking cookie v0.11.3 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking dotenv v0.13.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling rocket_http v0.4.6 [INFO] [stderr] Checking bstr v0.2.14 [INFO] [stderr] Checking textnonce v0.6.5 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking bson v0.13.0 [INFO] [stderr] Checking tinytemplate v1.2.0 [INFO] [stderr] Checking csv v1.1.5 [INFO] [stderr] Checking mongodb v0.3.12 [INFO] [stderr] Checking criterion v0.3.3 [INFO] [stderr] Checking rocket_contrib v0.4.6 [INFO] [stderr] Checking r2d2-mongodb v0.2.2 [INFO] [stderr] Checking rustlang-rocket-mongodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(doc) => match bson::from_bson(bson::Bson::Document(doc)) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 29 | Some(result_doc) => match bson::from_bson(bson::Bson::Document(result_doc)) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | match bson::to_bson(&insertable) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | bson::Bson::Document(model_doc) => { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | Some(res) => match bson::from_bson(res) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:71:11 [INFO] [stdout] | [INFO] [stdout] 71 | match bson::to_bson(&new_cat) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | bson::Bson::Document(model_doc) => { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | pub id: Option, [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(doc) => match bson::from_bson(bson::Bson::Document(doc)) { [INFO] [stdout] | ^^^^ not found in `bson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::Bson; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:29:61 [INFO] [stdout] | [INFO] [stdout] 29 | Some(result_doc) => match bson::from_bson(bson::Bson::Document(result_doc)) { [INFO] [stdout] | ^^^^ not found in `bson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::Bson; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb::bson` [INFO] [stdout] --> src/cats/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::bson; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/mongo_connection.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustlang-rocket-mongodb` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(doc) => match bson::from_bson(bson::Bson::Document(doc)) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 29 | Some(result_doc) => match bson::from_bson(bson::Bson::Document(result_doc)) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | match bson::to_bson(&insertable) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | bson::Bson::Document(model_doc) => { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | Some(res) => match bson::from_bson(res) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:71:11 [INFO] [stdout] | [INFO] [stdout] 71 | match bson::to_bson(&new_cat) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | bson::Bson::Document(model_doc) => { [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | pub id: Option, [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(doc) => match bson::from_bson(bson::Bson::Document(doc)) { [INFO] [stdout] | ^^^^ not found in `bson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::Bson; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/cats/repository.rs:29:61 [INFO] [stdout] | [INFO] [stdout] 29 | Some(result_doc) => match bson::from_bson(bson::Bson::Document(result_doc)) { [INFO] [stdout] | ^^^^ not found in `bson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::Bson; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb::bson` [INFO] [stdout] --> src/cats/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::bson; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/mongo_connection.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b1776f537c77c872c7281953e9706743e84781feb0fa4b5cc0f9976c0e60e885", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1776f537c77c872c7281953e9706743e84781feb0fa4b5cc0f9976c0e60e885", kill_on_drop: false }` [INFO] [stdout] b1776f537c77c872c7281953e9706743e84781feb0fa4b5cc0f9976c0e60e885