[INFO] cloning repository https://github.com/davidedelpapa/rocket-tut [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davidedelpapa/rocket-tut" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidedelpapa%2Frocket-tut", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidedelpapa%2Frocket-tut'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b56b5356b4c898559550ab9d1b6a7d710acb56a [INFO] checking davidedelpapa/rocket-tut against try#ff4041081a39fb2e940a03a55f86a4ad0b37d26a for pr-80763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidedelpapa%2Frocket-tut" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davidedelpapa/rocket-tut on toolchain ff4041081a39fb2e940a03a55f86a4ad0b37d26a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff4041081a39fb2e940a03a55f86a4ad0b37d26a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/davidedelpapa/rocket-tut [INFO] finished tweaking git repo https://github.com/davidedelpapa/rocket-tut [INFO] tweaked toml for git repo https://github.com/davidedelpapa/rocket-tut written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/davidedelpapa/rocket-tut already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff4041081a39fb2e940a03a55f86a4ad0b37d26a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocket_contrib v0.4.5 [INFO] [stderr] Downloaded jsonwebtoken v7.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+ff4041081a39fb2e940a03a55f86a4ad0b37d26a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a62cb1d41cc203a4ac4e0dbb326766823d0de742a7e7b16d9fdfc4dcd02807b3 [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" "a62cb1d41cc203a4ac4e0dbb326766823d0de742a7e7b16d9fdfc4dcd02807b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a62cb1d41cc203a4ac4e0dbb326766823d0de742a7e7b16d9fdfc4dcd02807b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a62cb1d41cc203a4ac4e0dbb326766823d0de742a7e7b16d9fdfc4dcd02807b3", kill_on_drop: false }` [INFO] [stdout] a62cb1d41cc203a4ac4e0dbb326766823d0de742a7e7b16d9fdfc4dcd02807b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+ff4041081a39fb2e940a03a55f86a4ad0b37d26a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6505e005048f70f2e28a68cc8205e45b21de8a7aafb38a0cd5065d0cbad23b7c [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" "6505e005048f70f2e28a68cc8205e45b21de8a7aafb38a0cd5065d0cbad23b7c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling zeroize v1.1.1 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking try_from v0.2.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking md5 v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking separator v0.3.1 [INFO] [stderr] Checking data-encoding v2.3.1 [INFO] [stderr] Compiling anyhow v1.0.34 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [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] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling rocket_codegen v0.4.5 [INFO] [stderr] Compiling rocket v0.4.5 [INFO] [stderr] Checking instant v0.1.8 [INFO] [stderr] Checking block-buffer v0.3.3 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking semver v0.8.0 [INFO] [stderr] Compiling typenum v1.12.0 [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] Checking blake2b_simd v0.5.11 [INFO] [stderr] Checking generic-array v0.9.0 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling ring v0.16.18 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Checking digest v0.7.6 [INFO] [stderr] Checking crypto-mac v0.6.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.12 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking aes-soft 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 md-5 v0.7.0 [INFO] [stderr] Checking sha-1 v0.7.0 [INFO] [stderr] Checking hmac v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking pem v0.8.2 [INFO] [stderr] Checking rust-argon2 v0.8.2 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking pbkdf2 v0.2.3 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Checking cookie v0.11.3 [INFO] [stderr] Checking scan_fmt v0.1.3 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Checking rocket_http v0.4.5 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking textnonce v0.6.5 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Checking bson v0.13.0 [INFO] [stderr] Checking jsonwebtoken v7.2.0 [INFO] [stderr] Checking mongodb v0.3.12 [INFO] [stderr] Checking r2d2-mongodb v0.2.2 [INFO] [stderr] Checking rocket_contrib v0.4.5 [INFO] [stderr] Checking rocket-tut v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `bson` [INFO] [stdout] --> src/routes/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bson` [INFO] [stdout] --> src/routes/auth.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:41:67 [INFO] [stdout] | [INFO] [stdout] 41 | ... match user_coll.find_one(Some(doc! { "_id": id }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:87:35 [INFO] [stdout] | [INFO] [stdout] 87 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:117:63 [INFO] [stdout] | [INFO] [stdout] 117 | ... match user_coll.find_one(Some(doc! { "email": &user.email }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:133:45 [INFO] [stdout] | [INFO] [stdout] 133 | ... doc! { "_id": id.clone() }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:179:69 [INFO] [stdout] | [INFO] [stdout] 179 | ... match user_coll.find_one_and_delete(doc! { "_id": id.clone() }, None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:213:43 [INFO] [stdout] | [INFO] [stdout] 213 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:226:53 [INFO] [stdout] | [INFO] [stdout] 226 | ... doc! { "_id": id.clone() }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:255:35 [INFO] [stdout] | [INFO] [stdout] 255 | match user_coll.find_one(Some(doc! { "email": email.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/auth.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | match user_coll.find_one(Some(doc! { "email": login.email.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bson` [INFO] [stdout] --> src/routes/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bson` [INFO] [stdout] --> src/routes/auth.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:41:67 [INFO] [stdout] | [INFO] [stdout] 41 | ... match user_coll.find_one(Some(doc! { "_id": id }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:87:35 [INFO] [stdout] | [INFO] [stdout] 87 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:117:63 [INFO] [stdout] | [INFO] [stdout] 117 | ... match user_coll.find_one(Some(doc! { "email": &user.email }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:133:45 [INFO] [stdout] | [INFO] [stdout] 133 | ... doc! { "_id": id.clone() }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:179:69 [INFO] [stdout] | [INFO] [stdout] 179 | ... match user_coll.find_one_and_delete(doc! { "_id": id.clone() }, None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:213:43 [INFO] [stdout] | [INFO] [stdout] 213 | match user_coll.find_one(Some(doc! { "_id": id.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:226:53 [INFO] [stdout] | [INFO] [stdout] 226 | ... doc! { "_id": id.clone() }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/user.rs:255:35 [INFO] [stdout] | [INFO] [stdout] 255 | match user_coll.find_one(Some(doc! { "email": email.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `doc` [INFO] [stdout] --> src/routes/auth.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | match user_coll.find_one(Some(doc! { "email": login.email.clone() }), None) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/routes/user.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | match bson::to_bson(&User::from_insertable((*user).clone())) { [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/routes/user.rs:45:92 [INFO] [stdout] | [INFO] [stdout] 45 | ... let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:91:59 [INFO] [stdout] | [INFO] [stdout] 91 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:112:59 [INFO] [stdout] | [INFO] [stdout] 112 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | ... 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/routes/user.rs:140:97 [INFO] [stdout] | [INFO] [stdout] 140 | ... let updated_user_doc: Result = bson::from_bson(Bson::Document(updated_user)); [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/routes/user.rs:175:59 [INFO] [stdout] | [INFO] [stdout] 175 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | match bson::to_bson(&User::from_insertable((*user).clone())) { [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/routes/user.rs:183:84 [INFO] [stdout] | [INFO] [stdout] 183 | ... let deleted_doc: Result = bson::from_bson(Bson::Document(deleted_user)); [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/routes/user.rs:217:67 [INFO] [stdout] | [INFO] [stdout] 217 | ... let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:45:92 [INFO] [stdout] | [INFO] [stdout] 45 | ... let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:222:47 [INFO] [stdout] | [INFO] [stdout] 222 | ... 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/routes/user.rs:91:59 [INFO] [stdout] | [INFO] [stdout] 91 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:259:60 [INFO] [stdout] | [INFO] [stdout] 259 | let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/auth.rs:39:60 [INFO] [stdout] | [INFO] [stdout] 39 | let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:112:59 [INFO] [stdout] | [INFO] [stdout] 112 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[get("/users")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[post("/users", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | #[get("/users/")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | #[put("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | #[delete("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | #[patch("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:252:1 [INFO] [stdout] | [INFO] [stdout] 252 | #[get("/users/", rank = 2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[post("/login", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/routes/user.rs:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | ... 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/routes/user.rs:140:97 [INFO] [stdout] | [INFO] [stdout] 140 | ... let updated_user_doc: Result = bson::from_bson(Bson::Document(updated_user)); [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r2d2_mongodb::mongodb::bson as bson` [INFO] [stdout] --> src/routes/user.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use r2d2_mongodb::mongodb::bson as bson; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r2d2_mongodb::mongodb::bson as bson` [INFO] [stdout] --> src/routes/auth.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use r2d2_mongodb::mongodb::bson as bson; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bson` [INFO] [stdout] --> src/routes/user.rs:175:59 [INFO] [stdout] | [INFO] [stdout] 175 | let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:183:84 [INFO] [stdout] | [INFO] [stdout] 183 | ... let deleted_doc: Result = bson::from_bson(Bson::Document(deleted_user)); [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/routes/user.rs:217:67 [INFO] [stdout] | [INFO] [stdout] 217 | ... let found_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/user.rs:222:47 [INFO] [stdout] | [INFO] [stdout] 222 | ... 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/routes/user.rs:259:60 [INFO] [stdout] | [INFO] [stdout] 259 | let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [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/routes/auth.rs:39:60 [INFO] [stdout] | [INFO] [stdout] 39 | let loaded_user_doc: Result = bson::from_bson(Bson::Document(found_user)); [INFO] [stdout] | ^^^^ use of undeclared crate or module `bson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[get("/users")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[post("/users", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | #[get("/users/")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | #[put("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | #[delete("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | #[patch("/users/", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/user.rs:252:1 [INFO] [stdout] | [INFO] [stdout] 252 | #[get("/users/", rank = 2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/user.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `doc` is ambiguous (built-in attribute vs any other name) [INFO] [stdout] --> src/routes/auth.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[post("/login", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: `doc` could refer to a built-in attribute [INFO] [stdout] note: `doc` could also refer to the unresolved item imported here [INFO] [stdout] --> src/routes/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use bson::{doc, Bson}; [INFO] [stdout] | ^^^ [INFO] [stdout] = help: use `self::doc` to refer to this unresolved item unambiguously [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r2d2_mongodb::mongodb::bson as bson` [INFO] [stdout] --> src/routes/user.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use r2d2_mongodb::mongodb::bson as bson; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r2d2_mongodb::mongodb::bson as bson` [INFO] [stdout] --> src/routes/auth.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use r2d2_mongodb::mongodb::bson as bson; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0659. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket-tut` [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: aborting due to 36 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0659. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6505e005048f70f2e28a68cc8205e45b21de8a7aafb38a0cd5065d0cbad23b7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6505e005048f70f2e28a68cc8205e45b21de8a7aafb38a0cd5065d0cbad23b7c", kill_on_drop: false }` [INFO] [stdout] 6505e005048f70f2e28a68cc8205e45b21de8a7aafb38a0cd5065d0cbad23b7c