[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] building mvarble/nutrition against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmvarble%2Fnutrition" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mvarble/nutrition on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "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-3/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: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5794f3db16fcccf4869ed5632983979dcfb183981714b8567d788c079f5bd1d5 [INFO] running `Command { std: "docker" "start" "-a" "5794f3db16fcccf4869ed5632983979dcfb183981714b8567d788c079f5bd1d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5794f3db16fcccf4869ed5632983979dcfb183981714b8567d788c079f5bd1d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5794f3db16fcccf4869ed5632983979dcfb183981714b8567d788c079f5bd1d5", kill_on_drop: false }` [INFO] [stdout] 5794f3db16fcccf4869ed5632983979dcfb183981714b8567d788c079f5bd1d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0fc9e7f3c52df68802bb0782a01af8c2f687974785937e301d56f97eed1c282 [INFO] running `Command { std: "docker" "start" "-a" "b0fc9e7f3c52df68802bb0782a01af8c2f687974785937e301d56f97eed1c282", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.6 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tinyvec v1.4.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling tracing-core v0.1.20 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling socket2 v0.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling tracing v0.1.27 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling uom v0.31.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling hyper v0.14.12 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.4 [INFO] [stderr] Compiling nutrition v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct is never constructed: `PartialEnvironment` [INFO] [stdout] --> src/env.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct PartialEnvironment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get` [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: associated function is never used: `new` [INFO] [stdout] --> src/fdc/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new>(fdc_key: S) -> FDCService { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v1_foods_search` [INFO] [stdout] --> src/fdc/mod.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn v1_foods_search>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v1_foods` [INFO] [stdout] --> src/fdc/mod.rs:49:18 [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: variant is never constructed: `Volume` [INFO] [stdout] --> src/quantities/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Volume(Volume), [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] --> src/quantities/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Mass` [INFO] [stdout] --> src/quantities/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Mass(Mass), [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] --> src/quantities/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nominal` [INFO] [stdout] --> src/quantities/mod.rs:13:5 [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] --> src/quantities/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fraction` [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 is never used: `compound_fraction` [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 is never used: `number` [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 is never used: `unit_word` [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 is never used: `quantity` [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 is never used: `noise` [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 is never used: `quantities` [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 is never used: `Units` [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 is never used: `normalize_unit` [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 is never used: `v` [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 is never used: `m` [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: associated function is never used: `si_quantity` [INFO] [stdout] --> src/quantities/parse.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | fn si_quantity(&self, amount: f32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `si_quantity` [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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "b0fc9e7f3c52df68802bb0782a01af8c2f687974785937e301d56f97eed1c282", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0fc9e7f3c52df68802bb0782a01af8c2f687974785937e301d56f97eed1c282", kill_on_drop: false }` [INFO] [stdout] b0fc9e7f3c52df68802bb0782a01af8c2f687974785937e301d56f97eed1c282 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c08eb4f5669b7c7c59702dc21b71ac737caa6d61b82d5051bb63d75f8bfa24fe [INFO] running `Command { std: "docker" "start" "-a" "c08eb4f5669b7c7c59702dc21b71ac737caa6d61b82d5051bb63d75f8bfa24fe", kill_on_drop: false }` [INFO] [stderr] Compiling nutrition v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `quantities` [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.57s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/nutrition-f911b48f37e7f411) [INFO] running `Command { std: "docker" "inspect" "c08eb4f5669b7c7c59702dc21b71ac737caa6d61b82d5051bb63d75f8bfa24fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c08eb4f5669b7c7c59702dc21b71ac737caa6d61b82d5051bb63d75f8bfa24fe", kill_on_drop: false }` [INFO] [stdout] c08eb4f5669b7c7c59702dc21b71ac737caa6d61b82d5051bb63d75f8bfa24fe