[INFO] cloning repository https://github.com/just-engineer/weather-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/just-engineer/weather-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-engineer%2Fweather-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-engineer%2Fweather-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91fe47f9c654dfa37a3f7d2464b43e92f0c249c9 [INFO] testing just-engineer/weather-bot against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-engineer%2Fweather-bot" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/just-engineer/weather-bot on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/just-engineer/weather-bot [INFO] finished tweaking git repo https://github.com/just-engineer/weather-bot [INFO] tweaked toml for git repo https://github.com/just-engineer/weather-bot written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/just-engineer/weather-bot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc2ae133dd1808f4284f99d058810121b9e4cc48e299a54467bfcebe8ad8a26e [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" "fc2ae133dd1808f4284f99d058810121b9e4cc48e299a54467bfcebe8ad8a26e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc2ae133dd1808f4284f99d058810121b9e4cc48e299a54467bfcebe8ad8a26e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2ae133dd1808f4284f99d058810121b9e4cc48e299a54467bfcebe8ad8a26e", kill_on_drop: false }` [INFO] [stdout] fc2ae133dd1808f4284f99d058810121b9e4cc48e299a54467bfcebe8ad8a26e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77d12a70493c03e2d7ed490a79fc49fb2df5a1b4e3a95bf834ffc5bdb05ab8d5 [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" "77d12a70493c03e2d7ed490a79fc49fb2df5a1b4e3a95bf834ffc5bdb05ab8d5", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling rustversion v1.0.3 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling owned-alloc v0.2.0 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling futures-task v0.3.6 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling lockfree v0.5.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling aho-corasick v0.7.14 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling os_info v2.0.8 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling futures-intrusive v0.3.1 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling backtrace v0.3.53 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rustls v0.18.1 [INFO] [stderr] Compiling webpki-roots v0.19.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling teloxide-macros v0.3.2 [INFO] [stderr] Compiling derivative v2.1.1 [INFO] [stderr] Compiling typed-builder v0.7.0 [INFO] [stderr] Compiling typed-builder v0.3.0 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling serde_with_macros v1.2.2 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling futures-util v0.3.6 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.14.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling futures-executor v0.3.6 [INFO] [stderr] Compiling futures v0.3.6 [INFO] [stderr] Compiling trust-dns-proto v0.19.5 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling serde_with v1.5.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.5 [INFO] [stderr] Compiling bson v1.1.0 [INFO] [stderr] Compiling hyper v0.13.8 [INFO] [stderr] Compiling hyper-rustls v0.21.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling mongodb v1.1.1 [INFO] [stderr] Compiling teloxide v0.3.2 [INFO] [stderr] Compiling weather-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Bson` [INFO] [stdout] --> src/database.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Database, Client, bson::{Document, Bson, oid::ObjectId}, bson}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson::doc` [INFO] [stdout] --> src/database.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bson::doc; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stdout] --> src/database.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::client_message::ClientMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb::bson` [INFO] [stdout] --> src/client_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::bson; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stdout] --> src/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client_message::ClientMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/weather_settings.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DurationRound`, `Duration`, `Utc` [INFO] [stdout] --> src/weather_settings.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{Utc, DurationRound, Duration}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_options` [INFO] [stdout] --> src/database.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let update_options = UpdateOptions::builder().upsert(Some(true)).build(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_options` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/database.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let result = collection [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/handler.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(text) = cx.update.text() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/client_message.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(chat_id: &str, message: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_time` [INFO] [stdout] --> src/weather_settings.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn with_time(self, time: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `datastore` [INFO] [stdout] --> src/scheduler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | datastore: Arc [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hour` [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Time { hour: u8, minute: u8 }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `minute` [INFO] [stdout] --> src/main.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | Time { hour: u8, minute: u8 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 07s [INFO] running `Command { std: "docker" "inspect" "77d12a70493c03e2d7ed490a79fc49fb2df5a1b4e3a95bf834ffc5bdb05ab8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77d12a70493c03e2d7ed490a79fc49fb2df5a1b4e3a95bf834ffc5bdb05ab8d5", kill_on_drop: false }` [INFO] [stdout] 77d12a70493c03e2d7ed490a79fc49fb2df5a1b4e3a95bf834ffc5bdb05ab8d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7783ddda3f1928226c7426dabe66431b4a39753a0e86c02f1837b269ff1371a3 [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" "7783ddda3f1928226c7426dabe66431b4a39753a0e86c02f1837b269ff1371a3", kill_on_drop: false }` [INFO] [stderr] Compiling weather-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Bson` [INFO] [stdout] --> src/database.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Database, Client, bson::{Document, Bson, oid::ObjectId}, bson}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson::doc` [INFO] [stdout] --> src/database.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bson::doc; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stdout] --> src/database.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::client_message::ClientMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stdout] --> src/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client_message::ClientMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_options` [INFO] [stdout] --> src/database.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let update_options = UpdateOptions::builder().upsert(Some(true)).build(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_options` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/database.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let result = collection [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/handler.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(text) = cx.update.text() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instant` [INFO] [stdout] --> src/weather_settings.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let instant = Instant::now(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_time` [INFO] [stdout] --> src/weather_settings.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn with_time(self, time: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `datastore` [INFO] [stdout] --> src/scheduler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | datastore: Arc [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hour` [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Time { hour: u8, minute: u8 }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `minute` [INFO] [stdout] --> src/main.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | Time { hour: u8, minute: u8 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.05s [INFO] running `Command { std: "docker" "inspect" "7783ddda3f1928226c7426dabe66431b4a39753a0e86c02f1837b269ff1371a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7783ddda3f1928226c7426dabe66431b4a39753a0e86c02f1837b269ff1371a3", kill_on_drop: false }` [INFO] [stdout] 7783ddda3f1928226c7426dabe66431b4a39753a0e86c02f1837b269ff1371a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 09055c6fc4ebbd37472e38c9b9309048faa344ec195b43935ee641e9ae1b8ff1 [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" "09055c6fc4ebbd37472e38c9b9309048faa344ec195b43935ee641e9ae1b8ff1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Bson` [INFO] [stderr] --> src/database.rs:1:50 [INFO] [stderr] | [INFO] [stderr] 1 | use mongodb::{Database, Client, bson::{Document, Bson, oid::ObjectId}, bson}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `bson::doc` [INFO] [stderr] --> src/database.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use bson::doc; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stderr] --> src/database.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::client_message::ClientMessage; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::client_message::ClientMessage` [INFO] [stderr] --> src/handler.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::client_message::ClientMessage; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `update_options` [INFO] [stderr] --> src/database.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | let update_options = UpdateOptions::builder().upsert(Some(true)).build(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_options` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/database.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | let result = collection [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `text` [INFO] [stderr] --> src/handler.rs:13:17 [INFO] [stderr] | [INFO] [stderr] 13 | if let Some(text) = cx.update.text() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `instant` [INFO] [stderr] --> src/weather_settings.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | let instant = Instant::now(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instant` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `with_time` [INFO] [stderr] --> src/weather_settings.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn with_time(self, time: DateTime) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `datastore` [INFO] [stderr] --> src/scheduler.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | datastore: Arc [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `hour` [INFO] [stderr] --> src/main.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | Time { hour: u8, minute: u8 }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `minute` [INFO] [stderr] --> src/main.rs:22:22 [INFO] [stderr] | [INFO] [stderr] 22 | Time { hour: u8, minute: u8 }, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `weather-bot` (bin "weather-bot" test) generated 12 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/weather_bot-c4e4aa004b6d8454) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test weather_settings::serialize_small ... ok [INFO] [stdout] test database::update ... ok [INFO] [stdout] test client_message::bson_test ... ok [INFO] [stdout] test weather_settings::serialize_full ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "09055c6fc4ebbd37472e38c9b9309048faa344ec195b43935ee641e9ae1b8ff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09055c6fc4ebbd37472e38c9b9309048faa344ec195b43935ee641e9ae1b8ff1", kill_on_drop: false }` [INFO] [stdout] 09055c6fc4ebbd37472e38c9b9309048faa344ec195b43935ee641e9ae1b8ff1