[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] building all-green1/food_agent against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fall-green1%2Ffood_agent" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/all-green1/food_agent on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-macros v0.19.2 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded named_pipe v0.4.1 [INFO] [stderr] Downloaded unindent v0.1.11 [INFO] [stderr] Downloaded pyo3-build-config v0.19.2 [INFO] [stderr] Downloaded saturating v0.1.0 [INFO] [stderr] Downloaded io-enum v1.2.0 [INFO] [stderr] Downloaded bufstream v0.1.4 [INFO] [stderr] Downloaded mysql v26.0.0 [INFO] [stderr] Downloaded hyper-rustls v0.25.0 [INFO] [stderr] Downloaded google-apis-common v6.0.4 [INFO] [stderr] Downloaded google-calendar3 v5.0.5+20240328 [INFO] [stderr] Downloaded btoi v0.4.3 [INFO] [stderr] Downloaded mysql-common-derive v0.32.1 [INFO] [stderr] Downloaded pyo3-ffi v0.19.2 [INFO] [stderr] Downloaded pyo3-macros-backend v0.19.2 [INFO] [stderr] Downloaded pyo3 v0.19.2 [INFO] [stderr] Downloaded mysql_common v0.34.1 [INFO] [stderr] Downloaded yup-oauth2 v9.0.0 [INFO] [stderr] Downloaded libz-sys v1.1.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f49ce83a76c662d7cf6f1403004d02bb029c017ca93199d7726c10fba9a03012 [INFO] running `Command { std: "docker" "start" "-a" "f49ce83a76c662d7cf6f1403004d02bb029c017ca93199d7726c10fba9a03012", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f49ce83a76c662d7cf6f1403004d02bb029c017ca93199d7726c10fba9a03012", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f49ce83a76c662d7cf6f1403004d02bb029c017ca93199d7726c10fba9a03012", kill_on_drop: false }` [INFO] [stdout] f49ce83a76c662d7cf6f1403004d02bb029c017ca93199d7726c10fba9a03012 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4c3025cd30864f9d5450a715661c8898c21d7ebd0bfede18fd0f748ea114e89 [INFO] running `Command { std: "docker" "start" "-a" "a4c3025cd30864f9d5450a715661c8898c21d7ebd0bfede18fd0f748ea114e89", 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 jobserver v0.1.33 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling cc v1.2.21 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling digest v0.10.7 [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 pyo3-ffi v0.19.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling toml_edit v0.22.26 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling mysql_common v0.34.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling mysql-common-derive v0.32.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling btoi v0.4.3 [INFO] [stderr] Compiling derive_utils v0.15.0 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling saturating v0.1.0 [INFO] [stderr] Compiling mysql v26.0.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling io-enum v1.2.0 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper-rustls v0.25.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling yup-oauth2 v9.0.0 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling twox-hash v2.1.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling google-apis-common v6.0.4 [INFO] [stderr] Compiling zstd v0.13.3 [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 2m 30s [INFO] running `Command { std: "docker" "inspect" "a4c3025cd30864f9d5450a715661c8898c21d7ebd0bfede18fd0f748ea114e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c3025cd30864f9d5450a715661c8898c21d7ebd0bfede18fd0f748ea114e89", kill_on_drop: false }` [INFO] [stdout] a4c3025cd30864f9d5450a715661c8898c21d7ebd0bfede18fd0f748ea114e89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb7c61b6b0dbf3ce7227d06f2a87e67ed25ee28f325a4dfb131af50ef505fb1c [INFO] running `Command { std: "docker" "start" "-a" "bb7c61b6b0dbf3ce7227d06f2a87e67ed25ee28f325a4dfb131af50ef505fb1c", 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 11.49s [INFO] running `Command { std: "docker" "inspect" "bb7c61b6b0dbf3ce7227d06f2a87e67ed25ee28f325a4dfb131af50ef505fb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb7c61b6b0dbf3ce7227d06f2a87e67ed25ee28f325a4dfb131af50ef505fb1c", kill_on_drop: false }` [INFO] [stdout] bb7c61b6b0dbf3ce7227d06f2a87e67ed25ee28f325a4dfb131af50ef505fb1c