[INFO] cloning repository https://github.com/all-green1/food_agent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/all-green1/food_agent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fall-green1%2Ffood_agent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fall-green1%2Ffood_agent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08a878b8174ff34d4649ad63b29e3dd59d291720 [INFO] testing all-green1/food_agent against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fall-green1%2Ffood_agent" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/all-green1/food_agent [INFO] finished tweaking git repo https://github.com/all-green1/food_agent [INFO] tweaked toml for git repo https://github.com/all-green1/food_agent written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/all-green1/food_agent on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/all-green1/food_agent already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `5.0.4+20210325` for dependency `google-calendar3` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unindent v0.1.11 [INFO] [stderr] Downloaded pyo3-macros v0.19.2 [INFO] [stderr] Downloaded saturating v0.1.0 [INFO] [stderr] Downloaded btoi v0.4.3 [INFO] [stderr] Downloaded io-enum v1.2.0 [INFO] [stderr] Downloaded google-apis-common v6.0.4 [INFO] [stderr] Downloaded uuid v1.17.0 [INFO] [stderr] Downloaded mysql v26.0.0 [INFO] [stderr] Downloaded icu_normalizer_data v1.5.1 [INFO] [stderr] Downloaded yup-oauth2 v9.0.0 [INFO] [stderr] Downloaded tokio-rustls v0.25.0 [INFO] [stderr] Downloaded icu_properties_data v1.5.1 [INFO] [stderr] Downloaded hyper-rustls v0.25.0 [INFO] [stderr] Downloaded google-calendar3 v5.0.5+20240328 [INFO] [stderr] Downloaded icu_locid_transform_data v1.5.1 [INFO] [stderr] Downloaded pyo3-ffi v0.19.2 [INFO] [stderr] Downloaded mysql_common v0.34.1 [INFO] [stderr] Downloaded pyo3-macros-backend v0.19.2 [INFO] [stderr] Downloaded cmake v0.1.54 [INFO] [stderr] Downloaded pyo3 v0.19.2 [INFO] [stderr] Downloaded mysql-common-derive v0.32.1 [INFO] [stderr] Downloaded rustls v0.22.4 [INFO] [stderr] Downloaded twox-hash v2.1.0 [INFO] [stderr] Downloaded pyo3-build-config v0.19.2 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded libz-sys v1.1.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 150fca42c819becbbd068ecc8daf11da7aac3d255821288b25dfb99be7c1ce8c [INFO] running `Command { std: "docker" "start" "-a" "150fca42c819becbbd068ecc8daf11da7aac3d255821288b25dfb99be7c1ce8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "150fca42c819becbbd068ecc8daf11da7aac3d255821288b25dfb99be7c1ce8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "150fca42c819becbbd068ecc8daf11da7aac3d255821288b25dfb99be7c1ce8c", kill_on_drop: false }` [INFO] [stdout] 150fca42c819becbbd068ecc8daf11da7aac3d255821288b25dfb99be7c1ce8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06fc0b845f37e276d2072dcc003d5d734ba2cd43ea2a3a35b6ea593d3caaa13d [INFO] running `Command { std: "docker" "start" "-a" "06fc0b845f37e276d2072dcc003d5d734ba2cd43ea2a3a35b6ea593d3caaa13d", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `5.0.4+20210325` for dependency `google-calendar3` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling cc v1.2.21 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling toml_edit v0.22.26 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling btoi v0.4.3 [INFO] [stderr] Compiling saturating v0.1.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling mysql v26.0.0 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling mysql_common v0.34.1 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling twox-hash v2.1.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling derive_utils v0.15.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling io-enum v1.2.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling mysql-common-derive v0.32.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.25.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling yup-oauth2 v9.0.0 [INFO] [stderr] Compiling google-apis-common v6.0.4 [INFO] [stderr] Compiling google-calendar3 v5.0.5+20240328 [INFO] [stderr] Compiling food_agent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Breakfast_cereal` should have an upper camel case name [INFO] [stdout] --> src/models.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Breakfast_cereal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BreakfastCereal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Non_dairy` should have an upper camel case name [INFO] [stdout] --> src/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Non_dairy, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NonDairy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Edible_oils` should have an upper camel case name [INFO] [stdout] --> src/models.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Edible_oils, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EdibleOils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Minerals_and_vitamins` should have an upper camel case name [INFO] [stdout] --> src/models.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | Minerals_and_vitamins, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MineralsAndVitamins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoodType` and `StorageType` [INFO] [stdout] --> src/storage.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::{FoodStock, FoodType, StorageType, Unit}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/storage.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/storage.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | ///Create a table if it does not currently exist [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | / conn.exec_drop( [INFO] [stdout] 61 | | r"CREATE TABLE IF NOT EXISTS food_stock ( [INFO] [stdout] 62 | | id INT AUTO_INCREMENT PRIMARY KEY, [INFO] [stdout] 63 | | name VARCHAR(50) NOT NULL, [INFO] [stdout] ... | [INFO] [stdout] 72 | | (), [INFO] [stdout] 73 | | )?; [INFO] [stdout] | |__________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `NaiveDate` [INFO] [stdout] --> src/reminder.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Duration, Utc, TimeZone, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoodType`, `MajorNutrient`, and `StorageType` [INFO] [stdout] --> src/reminder.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{FoodStock, FoodType, StorageType, Unit, MajorNutrient}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/reminder.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | let reminder_date = Utc.from_utc_date(&food.expiry_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_data` [INFO] [stdout] --> src/reminder.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let token_data = match token_data { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/reminder.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | let reminder_datetime = Utc.from_utc_date(&reminder_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Water` is never constructed [INFO] [stdout] --> src/models.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum MajorNutrient { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 73 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MajorNutrient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `estimate_expiry` is never used [INFO] [stdout] --> src/models.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl FoodStock { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn estimate_expiry(&self) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stock_date` and `nutrient` are never read [INFO] [stdout] --> src/storage.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct SearchResult { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 30 | pub name: String, [INFO] [stdout] 31 | pub stock_date: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub food_type: String, [INFO] [stdout] 33 | pub nutrient: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_query_to_date` is never used [INFO] [stdout] --> src/storage.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn parse_query_to_date(query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 28 | impl PyCommandHandler { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | `PyCommandHandler` is not local [INFO] [stdout] | `PyCommandHandler` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "06fc0b845f37e276d2072dcc003d5d734ba2cd43ea2a3a35b6ea593d3caaa13d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06fc0b845f37e276d2072dcc003d5d734ba2cd43ea2a3a35b6ea593d3caaa13d", kill_on_drop: false }` [INFO] [stdout] 06fc0b845f37e276d2072dcc003d5d734ba2cd43ea2a3a35b6ea593d3caaa13d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72eb5cfab76ad65fbd338c679bf0c2714bb7214eadd46e0f7d6dbe404f477d76 [INFO] running `Command { std: "docker" "start" "-a" "72eb5cfab76ad65fbd338c679bf0c2714bb7214eadd46e0f7d6dbe404f477d76", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `5.0.4+20210325` for dependency `google-calendar3` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling food_agent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Breakfast_cereal` should have an upper camel case name [INFO] [stdout] --> src/models.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Breakfast_cereal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BreakfastCereal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Non_dairy` should have an upper camel case name [INFO] [stdout] --> src/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Non_dairy, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NonDairy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Edible_oils` should have an upper camel case name [INFO] [stdout] --> src/models.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Edible_oils, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EdibleOils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Minerals_and_vitamins` should have an upper camel case name [INFO] [stdout] --> src/models.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | Minerals_and_vitamins, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MineralsAndVitamins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoodType` and `StorageType` [INFO] [stdout] --> src/storage.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::{FoodStock, FoodType, StorageType, Unit}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/storage.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/storage.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | ///Create a table if it does not currently exist [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | / conn.exec_drop( [INFO] [stdout] 61 | | r"CREATE TABLE IF NOT EXISTS food_stock ( [INFO] [stdout] 62 | | id INT AUTO_INCREMENT PRIMARY KEY, [INFO] [stdout] 63 | | name VARCHAR(50) NOT NULL, [INFO] [stdout] ... | [INFO] [stdout] 72 | | (), [INFO] [stdout] 73 | | )?; [INFO] [stdout] | |__________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `NaiveDate` [INFO] [stdout] --> src/reminder.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Duration, Utc, TimeZone, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoodType`, `MajorNutrient`, and `StorageType` [INFO] [stdout] --> src/reminder.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{FoodStock, FoodType, StorageType, Unit, MajorNutrient}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/reminder.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | let reminder_date = Utc.from_utc_date(&food.expiry_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_data` [INFO] [stdout] --> src/reminder.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let token_data = match token_data { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/reminder.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | let reminder_datetime = Utc.from_utc_date(&reminder_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Water` is never constructed [INFO] [stdout] --> src/models.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum MajorNutrient { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 73 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MajorNutrient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `estimate_expiry` is never used [INFO] [stdout] --> src/models.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl FoodStock { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn estimate_expiry(&self) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stock_date` and `nutrient` are never read [INFO] [stdout] --> src/storage.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct SearchResult { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 30 | pub name: String, [INFO] [stdout] 31 | pub stock_date: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub food_type: String, [INFO] [stdout] 33 | pub nutrient: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_query_to_date` is never used [INFO] [stdout] --> src/storage.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn parse_query_to_date(query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 28 | impl PyCommandHandler { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | `PyCommandHandler` is not local [INFO] [stdout] | `PyCommandHandler` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.12s [INFO] running `Command { std: "docker" "inspect" "72eb5cfab76ad65fbd338c679bf0c2714bb7214eadd46e0f7d6dbe404f477d76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72eb5cfab76ad65fbd338c679bf0c2714bb7214eadd46e0f7d6dbe404f477d76", kill_on_drop: false }` [INFO] [stdout] 72eb5cfab76ad65fbd338c679bf0c2714bb7214eadd46e0f7d6dbe404f477d76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1ed4bb83a2d66a0f471d4ceee16a4ca4943a962ba3d6752d728343c08107f563 [INFO] running `Command { std: "docker" "start" "-a" "1ed4bb83a2d66a0f471d4ceee16a4ca4943a962ba3d6752d728343c08107f563", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `5.0.4+20210325` for dependency `google-calendar3` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] warning: variant `Breakfast_cereal` should have an upper camel case name [INFO] [stderr] --> src/models.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | Breakfast_cereal, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BreakfastCereal` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variant `Non_dairy` should have an upper camel case name [INFO] [stderr] --> src/models.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | Non_dairy, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NonDairy` [INFO] [stderr] [INFO] [stderr] warning: variant `Edible_oils` should have an upper camel case name [INFO] [stderr] --> src/models.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | Edible_oils, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EdibleOils` [INFO] [stderr] [INFO] [stderr] warning: variant `Minerals_and_vitamins` should have an upper camel case name [INFO] [stderr] --> src/models.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | Minerals_and_vitamins, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MineralsAndVitamins` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/storage.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FoodType` and `StorageType` [INFO] [stderr] --> src/storage.rs:3:32 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::models::{FoodStock, FoodType, StorageType, Unit}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `dotenvy::dotenv` [INFO] [stderr] --> src/storage.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use dotenvy::dotenv; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/storage.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/storage.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | ///Create a table if it does not currently exist [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 60 | / conn.exec_drop( [INFO] [stderr] 61 | | r"CREATE TABLE IF NOT EXISTS food_stock ( [INFO] [stderr] 62 | | id INT AUTO_INCREMENT PRIMARY KEY, [INFO] [stderr] 63 | | name VARCHAR(50) NOT NULL, [INFO] [stderr] ... | [INFO] [stderr] 72 | | (), [INFO] [stderr] 73 | | )?; [INFO] [stderr] | |__________- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime` and `NaiveDate` [INFO] [stderr] --> src/reminder.rs:1:39 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::{Duration, Utc, TimeZone, NaiveDate, DateTime}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FoodType`, `MajorNutrient`, and `StorageType` [INFO] [stderr] --> src/reminder.rs:7:32 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::models::{FoodStock, FoodType, StorageType, Unit, MajorNutrient}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stderr] --> src/reminder.rs:140:29 [INFO] [stderr] | [INFO] [stderr] 140 | let reminder_date = Utc.from_utc_date(&food.expiry_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token_data` [INFO] [stderr] --> src/reminder.rs:90:9 [INFO] [stderr] | [INFO] [stderr] 90 | let token_data = match token_data { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stderr] --> src/reminder.rs:26:33 [INFO] [stderr] | [INFO] [stderr] 26 | let reminder_datetime = Utc.from_utc_date(&reminder_date).and_hms_opt(9, 0, 0).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Water` is never constructed [INFO] [stderr] --> src/models.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 68 | pub enum MajorNutrient { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 73 | Water, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MajorNutrient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `estimate_expiry` is never used [INFO] [stderr] --> src/models.rs:127:12 [INFO] [stderr] | [INFO] [stderr] 104 | impl FoodStock { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 127 | pub fn estimate_expiry(&self) -> NaiveDate { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `stock_date` and `nutrient` are never read [INFO] [stderr] --> src/storage.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct SearchResult { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 30 | pub name: String, [INFO] [stderr] 31 | pub stock_date: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 32 | pub food_type: String, [INFO] [stderr] 33 | pub nutrient: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SearchResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `parse_query_to_date` is never used [INFO] [stderr] --> src/storage.rs:205:12 [INFO] [stderr] | [INFO] [stderr] 205 | pub fn parse_query_to_date(query: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:27:1 [INFO] [stderr] | [INFO] [stderr] 27 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 28 | impl PyCommandHandler { [INFO] [stderr] | ---------------- [INFO] [stderr] | | [INFO] [stderr] | `PyCommandHandler` is not local [INFO] [stderr] | `PyCommandHandler` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `food_agent` (lib test) generated 19 warnings (run `cargo fix --lib -p food_agent --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/food_agent-1da6cfcb83c4f7ea) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/food_agent-70ef239702de7b7c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1ed4bb83a2d66a0f471d4ceee16a4ca4943a962ba3d6752d728343c08107f563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ed4bb83a2d66a0f471d4ceee16a4ca4943a962ba3d6752d728343c08107f563", kill_on_drop: false }` [INFO] [stdout] 1ed4bb83a2d66a0f471d4ceee16a4ca4943a962ba3d6752d728343c08107f563