[INFO] cloning repository https://github.com/mvarble/nutrition [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mvarble/nutrition" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmvarble%2Fnutrition", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmvarble%2Fnutrition'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a0003a0b7588395cf6db8eaaf067cae54770f4c3 [INFO] checking mvarble/nutrition against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmvarble%2Fnutrition" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mvarble/nutrition on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mvarble/nutrition [INFO] finished tweaking git repo https://github.com/mvarble/nutrition [INFO] tweaked toml for git repo https://github.com/mvarble/nutrition written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mvarble/nutrition 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v1.3.0 [INFO] [stderr] Downloaded pin-project-lite v0.2.7 [INFO] [stderr] Downloaded futures-sink v0.3.17 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.27 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.77 [INFO] [stderr] Downloaded slab v0.4.4 [INFO] [stderr] Downloaded futures-core v0.3.17 [INFO] [stderr] Downloaded pkg-config v0.3.19 [INFO] [stderr] Downloaded futures-channel v0.3.17 [INFO] [stderr] Downloaded socket2 v0.4.1 [INFO] [stderr] Downloaded indexmap v1.7.0 [INFO] [stderr] Downloaded uom v0.31.1 [INFO] [stderr] Downloaded minimal-lexical v0.1.3 [INFO] [stderr] Downloaded nom v7.0.0 [INFO] [stderr] Downloaded futures-util v0.3.17 [INFO] [stderr] Downloaded h2 v0.3.4 [INFO] [stderr] Downloaded hyper v0.14.12 [INFO] [stderr] Downloaded syn v1.0.76 [INFO] [stderr] Downloaded openssl v0.10.36 [INFO] [stderr] Downloaded wasm-bindgen v0.2.77 [INFO] [stderr] Downloaded bumpalo v3.7.0 [INFO] [stderr] Downloaded tokio-util v0.6.8 [INFO] [stderr] Downloaded reqwest v0.11.4 [INFO] [stderr] Downloaded tracing v0.1.27 [INFO] [stderr] Downloaded openssl-sys v0.9.66 [INFO] [stderr] Downloaded security-framework v2.4.2 [INFO] [stderr] Downloaded rand v0.8.4 [INFO] [stderr] Downloaded tinyvec v1.4.0 [INFO] [stderr] Downloaded js-sys v0.3.54 [INFO] [stderr] Downloaded tracing-core v0.1.20 [INFO] [stderr] Downloaded ipnet v2.3.1 [INFO] [stderr] Downloaded getrandom v0.2.3 [INFO] [stderr] Downloaded native-tls v0.2.8 [INFO] [stderr] Downloaded tokio v1.11.0 [INFO] [stderr] Downloaded libc v0.2.101 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.77 [INFO] [stderr] Downloaded serde_json v1.0.67 [INFO] [stderr] Downloaded futures-task v0.3.17 [INFO] [stderr] Downloaded http-body v0.4.3 [INFO] [stderr] Downloaded httparse v1.5.1 [INFO] [stderr] Downloaded httpdate v1.0.1 [INFO] [stderr] Downloaded unicode-bidi v0.3.6 [INFO] [stderr] Downloaded rand_hc v0.3.1 [INFO] [stderr] Downloaded web-sys v0.3.54 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.77 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.77 [INFO] [stderr] Downloaded openssl-probe v0.1.4 [INFO] [stderr] Downloaded security-framework-sys v2.4.2 [INFO] [stderr] Downloaded encoding_rs v0.8.28 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2cdbe4ef174635fb204f83aee3f78442a625437b4b0125f945bad98c6742c11a [INFO] running `Command { std: "docker" "start" "-a" "2cdbe4ef174635fb204f83aee3f78442a625437b4b0125f945bad98c6742c11a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2cdbe4ef174635fb204f83aee3f78442a625437b4b0125f945bad98c6742c11a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cdbe4ef174635fb204f83aee3f78442a625437b4b0125f945bad98c6742c11a", kill_on_drop: false }` [INFO] [stdout] 2cdbe4ef174635fb204f83aee3f78442a625437b4b0125f945bad98c6742c11a [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4bf09ef3e478074b5930104a68c3388655be7533984984421ca6dbbd6210d21 [INFO] running `Command { std: "docker" "start" "-a" "f4bf09ef3e478074b5930104a68c3388655be7533984984421ca6dbbd6210d21", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking tracing-core v0.1.20 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking tinyvec v1.4.0 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking slab v0.4.4 [INFO] [stderr] Checking tracing v0.1.27 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking minimal-lexical v0.1.3 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking socket2 v0.4.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking uom v0.31.1 [INFO] [stderr] Checking http-body v0.4.3 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Checking tokio-util v0.6.8 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.4 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking hyper v0.14.12 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.4 [INFO] [stderr] Checking nutrition v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/env.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartialEnvironment` is never constructed [INFO] [stdout] --> src/env.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct PartialEnvironment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/env.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FDCService` is never constructed [INFO] [stdout] --> src/fdc/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct FDCService { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FDCService` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `v1_foods_search`, and `v1_foods` are never used [INFO] [stdout] --> src/fdc/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FDCService { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | /// generate a new FDCService [INFO] [stdout] 19 | pub fn new>(fdc_key: S) -> FDCService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn v1_foods_search>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn v1_foods(&self, client: &Client, fdc_ids: &[i32]) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fdc_id`, `data_type`, `description`, and `food_nutrients` are never read [INFO] [stdout] --> src/fdc/api.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AbridgedFoodItem { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 7 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub data_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub food_nutrients: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nutrient_id`, `nutrient_name`, `unit_name`, and `value` are never read [INFO] [stdout] --> src/fdc/api.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AbridgedFoodNutrient { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 17 | pub nutrient_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub nutrient_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub unit_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BrandedFoodItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub brand_owner: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub brand_name: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub gtin_upc: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub household_serving_full_text: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub ingredients: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | pub serving_size: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub serving_size_unit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub label_nutrients: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrandedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LabelNutrients { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pub fat: LabelNutrient, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | pub saturated_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub trans_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 45 | pub cholesterol: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 46 | pub sodium: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub carbohydrates: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub fiber: LabelNutrient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub sugars: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub protein: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub calcium: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub iron: LabelNutrient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub potassium: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 54 | pub calories: LabelNutrient, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrients` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/fdc/api.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct LabelNutrient { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 61 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fdc_id`, `food_attributes`, and `food_portions` are never read [INFO] [stdout] --> src/fdc/api.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct APFoodItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 68 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 69 | pub food_attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | pub food_portions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `APFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `sequence_number`, `value`, and `food_attribute_type` are never read [INFO] [stdout] --> src/fdc/api.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct FoodAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 77 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 78 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub food_attribute_type: FoodAttributeType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttribute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/fdc/api.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FoodAttributeType { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 87 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 88 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttributeType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct FoodPortion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 96 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 97 | pub amount: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | pub data_points: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub gram_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub modifier: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | pub portion_description: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodPortion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/fdc/api.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | Branded(BrandedFoodItem), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FDCMeta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 109 | Branded(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/fdc/api.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | Other(APFoodItem), [INFO] [stdout] | ----- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FDCMeta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 110 | Other(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Volume`, `Mass`, and `Nominal` are never constructed [INFO] [stdout] --> src/quantities/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Quantity { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Volume(Volume), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Mass(Mass), [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Nominal(f32, String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quantity` 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 `fraction` is never used [INFO] [stdout] --> src/quantities/parse.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn fraction(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compound_fraction` is never used [INFO] [stdout] --> src/quantities/parse.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn compound_fraction(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number` is never used [INFO] [stdout] --> src/quantities/parse.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn number(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unit_word` is never used [INFO] [stdout] --> src/quantities/parse.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn unit_word<'a>(input: &'a str) -> IResult<&'a str, &'a str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn quantity<'a>(input: &'a str) -> IResult<&'a str, Quantity> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise` is never used [INFO] [stdout] --> src/quantities/parse.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn noise<'a>(input: &'a str) -> IResult<&'a str, ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantities` is never used [INFO] [stdout] --> src/quantities/parse.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn quantities<'a>(input: &'a str) -> IResult<&'a str, Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Units` is never used [INFO] [stdout] --> src/quantities/parse.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | enum Units { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_unit` is never used [INFO] [stdout] --> src/quantities/parse.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn normalize_unit<'a>(input: &'a str) -> Units { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `v` is never used [INFO] [stdout] --> src/quantities/parse.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | fn v(amount: f32) -> Quantity [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m` is never used [INFO] [stdout] --> src/quantities/parse.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn m(amount: f32) -> Quantity [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `si_quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl Units { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 234 | /// helper function which creates quantities [INFO] [stdout] 235 | fn si_quantity(&self, amount: f32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `si_quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn si_quantity(amount: f32, input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `database_url` and `database_name` are never read [INFO] [stdout] --> src/env.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Environment { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub database_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | pub database_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `food_nutrients` is never read [INFO] [stdout] --> src/fdc/api.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AbridgedFoodItem { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub food_nutrients: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nutrient_id`, `nutrient_name`, `unit_name`, and `value` are never read [INFO] [stdout] --> src/fdc/api.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AbridgedFoodNutrient { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 17 | pub nutrient_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub nutrient_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub unit_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BrandedFoodItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub fdc_id: i32, [INFO] [stdout] 28 | pub brand_owner: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub brand_name: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub gtin_upc: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub household_serving_full_text: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub ingredients: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | pub serving_size: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub serving_size_unit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrandedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LabelNutrients { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pub fat: LabelNutrient, [INFO] [stdout] 43 | pub saturated_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub trans_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 45 | pub cholesterol: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 46 | pub sodium: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub carbohydrates: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub fiber: LabelNutrient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub sugars: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub protein: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub calcium: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub iron: LabelNutrient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub potassium: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 54 | pub calories: LabelNutrient, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrients` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sequence_number`, `value`, and `food_attribute_type` are never read [INFO] [stdout] --> src/fdc/api.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct FoodAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 77 | pub id: i32, [INFO] [stdout] 78 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub food_attribute_type: FoodAttributeType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttribute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/fdc/api.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FoodAttributeType { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 87 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 88 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttributeType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `data_points`, `gram_weight`, `modifier`, `portion_description`, and `sequence_number` are never read [INFO] [stdout] --> src/fdc/api.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct FoodPortion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 96 | pub id: i32, [INFO] [stdout] 97 | pub amount: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | pub data_points: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub gram_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub modifier: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | pub portion_description: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodPortion` 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 `quantities` is never used [INFO] [stdout] --> src/quantities/parse.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn quantities<'a>(input: &'a str) -> IResult<&'a str, Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.41s [INFO] running `Command { std: "docker" "inspect" "f4bf09ef3e478074b5930104a68c3388655be7533984984421ca6dbbd6210d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4bf09ef3e478074b5930104a68c3388655be7533984984421ca6dbbd6210d21", kill_on_drop: false }` [INFO] [stdout] f4bf09ef3e478074b5930104a68c3388655be7533984984421ca6dbbd6210d21 [INFO] checking mvarble/nutrition against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmvarble%2Fnutrition" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mvarble/nutrition on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mvarble/nutrition [INFO] finished tweaking git repo https://github.com/mvarble/nutrition [INFO] tweaked toml for git repo https://github.com/mvarble/nutrition written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mvarble/nutrition 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f32c49ad07c6944f5e18c4263f2aef5a739f1719fb52b6131c15c9eafdb45654 [INFO] running `Command { std: "docker" "start" "-a" "f32c49ad07c6944f5e18c4263f2aef5a739f1719fb52b6131c15c9eafdb45654", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f32c49ad07c6944f5e18c4263f2aef5a739f1719fb52b6131c15c9eafdb45654", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f32c49ad07c6944f5e18c4263f2aef5a739f1719fb52b6131c15c9eafdb45654", kill_on_drop: false }` [INFO] [stdout] f32c49ad07c6944f5e18c4263f2aef5a739f1719fb52b6131c15c9eafdb45654 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 048831487ec51ffc5575ed3952b680205f57b03be56b01ad96ae3f9d60389247 [INFO] running `Command { std: "docker" "start" "-a" "048831487ec51ffc5575ed3952b680205f57b03be56b01ad96ae3f9d60389247", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking tracing-core v0.1.20 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking tinyvec v1.4.0 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking slab v0.4.4 [INFO] [stderr] Checking tracing v0.1.27 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Checking minimal-lexical v0.1.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking socket2 v0.4.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking http-body v0.4.3 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking uom v0.31.1 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Checking tokio-util v0.6.8 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.4 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking hyper v0.14.12 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.4 [INFO] [stderr] Checking nutrition v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/env.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartialEnvironment` is never constructed [INFO] [stdout] --> src/env.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct PartialEnvironment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/env.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FDCService` is never constructed [INFO] [stdout] --> src/fdc/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct FDCService { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FDCService` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `v1_foods_search`, and `v1_foods` are never used [INFO] [stdout] --> src/fdc/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FDCService { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | /// generate a new FDCService [INFO] [stdout] 19 | pub fn new>(fdc_key: S) -> FDCService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn v1_foods_search>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn v1_foods(&self, client: &Client, fdc_ids: &[i32]) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fdc_id`, `data_type`, `description`, and `food_nutrients` are never read [INFO] [stdout] --> src/fdc/api.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AbridgedFoodItem { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 7 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub data_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub food_nutrients: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nutrient_id`, `nutrient_name`, `unit_name`, and `value` are never read [INFO] [stdout] --> src/fdc/api.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AbridgedFoodNutrient { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 17 | pub nutrient_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub nutrient_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub unit_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BrandedFoodItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub brand_owner: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub brand_name: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub gtin_upc: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub household_serving_full_text: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub ingredients: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | pub serving_size: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub serving_size_unit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub label_nutrients: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrandedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LabelNutrients { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pub fat: LabelNutrient, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | pub saturated_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub trans_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 45 | pub cholesterol: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 46 | pub sodium: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub carbohydrates: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub fiber: LabelNutrient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub sugars: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub protein: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub calcium: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub iron: LabelNutrient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub potassium: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 54 | pub calories: LabelNutrient, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrients` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/fdc/api.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct LabelNutrient { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 61 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fdc_id`, `food_attributes`, and `food_portions` are never read [INFO] [stdout] --> src/fdc/api.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct APFoodItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 68 | pub fdc_id: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 69 | pub food_attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | pub food_portions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `APFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `sequence_number`, `value`, and `food_attribute_type` are never read [INFO] [stdout] --> src/fdc/api.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct FoodAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 77 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 78 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub food_attribute_type: FoodAttributeType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttribute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/fdc/api.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FoodAttributeType { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 87 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 88 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttributeType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct FoodPortion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 96 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 97 | pub amount: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | pub data_points: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub gram_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub modifier: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | pub portion_description: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodPortion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/fdc/api.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | Branded(BrandedFoodItem), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FDCMeta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 109 | Branded(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/fdc/api.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | Other(APFoodItem), [INFO] [stdout] | ----- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FDCMeta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 110 | Other(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Volume`, `Mass`, and `Nominal` are never constructed [INFO] [stdout] --> src/quantities/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Quantity { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Volume(Volume), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Mass(Mass), [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Nominal(f32, String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quantity` 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 `fraction` is never used [INFO] [stdout] --> src/quantities/parse.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn fraction(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compound_fraction` is never used [INFO] [stdout] --> src/quantities/parse.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn compound_fraction(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number` is never used [INFO] [stdout] --> src/quantities/parse.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn number(input: &str) -> IResult<&str, f32> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unit_word` is never used [INFO] [stdout] --> src/quantities/parse.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn unit_word<'a>(input: &'a str) -> IResult<&'a str, &'a str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn quantity<'a>(input: &'a str) -> IResult<&'a str, Quantity> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise` is never used [INFO] [stdout] --> src/quantities/parse.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn noise<'a>(input: &'a str) -> IResult<&'a str, ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantities` is never used [INFO] [stdout] --> src/quantities/parse.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn quantities<'a>(input: &'a str) -> IResult<&'a str, Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Units` is never used [INFO] [stdout] --> src/quantities/parse.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | enum Units { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_unit` is never used [INFO] [stdout] --> src/quantities/parse.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn normalize_unit<'a>(input: &'a str) -> Units { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `v` is never used [INFO] [stdout] --> src/quantities/parse.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | fn v(amount: f32) -> Quantity [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m` is never used [INFO] [stdout] --> src/quantities/parse.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn m(amount: f32) -> Quantity [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `si_quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl Units { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 234 | /// helper function which creates quantities [INFO] [stdout] 235 | fn si_quantity(&self, amount: f32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `si_quantity` is never used [INFO] [stdout] --> src/quantities/parse.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn si_quantity(amount: f32, input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/quantities/parse.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | let digit_pair = tuple(( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 22 | / map_opt(digit_pair, |(str0, _, str1): (&str, char, &str)| { [INFO] [stdout] 23 | | let num0 = str0.parse::().ok()?; [INFO] [stdout] 24 | | let num1 = str1.parse::().ok()?; [INFO] [stdout] 25 | | Some(num0 / num1) [INFO] [stdout] 26 | | })(input) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nutrition` (bin "nutrition") due to 2 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `database_url` and `database_name` are never read [INFO] [stdout] --> src/env.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Environment { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub database_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | pub database_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `food_nutrients` is never read [INFO] [stdout] --> src/fdc/api.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AbridgedFoodItem { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub food_nutrients: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nutrient_id`, `nutrient_name`, `unit_name`, and `value` are never read [INFO] [stdout] --> src/fdc/api.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AbridgedFoodNutrient { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 17 | pub nutrient_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub nutrient_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub unit_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub value: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbridgedFoodNutrient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BrandedFoodItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub fdc_id: i32, [INFO] [stdout] 28 | pub brand_owner: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub brand_name: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub gtin_upc: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub household_serving_full_text: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub ingredients: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 33 | pub serving_size: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub serving_size_unit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrandedFoodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/fdc/api.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LabelNutrients { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pub fat: LabelNutrient, [INFO] [stdout] 43 | pub saturated_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub trans_fat: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 45 | pub cholesterol: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 46 | pub sodium: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | pub carbohydrates: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub fiber: LabelNutrient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub sugars: LabelNutrient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub protein: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub calcium: LabelNutrient, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub iron: LabelNutrient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub potassium: LabelNutrient, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 54 | pub calories: LabelNutrient, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LabelNutrients` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sequence_number`, `value`, and `food_attribute_type` are never read [INFO] [stdout] --> src/fdc/api.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct FoodAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 77 | pub id: i32, [INFO] [stdout] 78 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | pub food_attribute_type: FoodAttributeType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttribute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `description` are never read [INFO] [stdout] --> src/fdc/api.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FoodAttributeType { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 87 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 88 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodAttributeType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `data_points`, `gram_weight`, `modifier`, `portion_description`, and `sequence_number` are never read [INFO] [stdout] --> src/fdc/api.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct FoodPortion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 96 | pub id: i32, [INFO] [stdout] 97 | pub amount: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | pub data_points: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub gram_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 100 | pub modifier: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | pub portion_description: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | pub sequence_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FoodPortion` 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 `quantities` is never used [INFO] [stdout] --> src/quantities/parse.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn quantities<'a>(input: &'a str) -> IResult<&'a str, Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/quantities/parse.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | let digit_pair = tuple(( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 22 | / map_opt(digit_pair, |(str0, _, str1): (&str, char, &str)| { [INFO] [stdout] 23 | | let num0 = str0.parse::().ok()?; [INFO] [stdout] 24 | | let num1 = str1.parse::().ok()?; [INFO] [stdout] 25 | | Some(num0 / num1) [INFO] [stdout] 26 | | })(input) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nutrition` (bin "nutrition" test) due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "048831487ec51ffc5575ed3952b680205f57b03be56b01ad96ae3f9d60389247", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "048831487ec51ffc5575ed3952b680205f57b03be56b01ad96ae3f9d60389247", kill_on_drop: false }` [INFO] [stdout] 048831487ec51ffc5575ed3952b680205f57b03be56b01ad96ae3f9d60389247