[INFO] cloning repository https://github.com/harshkpatel2002/receipt-processor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harshkpatel2002/receipt-processor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharshkpatel2002%2Freceipt-processor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharshkpatel2002%2Freceipt-processor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cebf80531fed6240b1c96dcaa6b0a9502b2807b1 [INFO] testing harshkpatel2002/receipt-processor against try#311784882baa42a9638298cb325fa01a062c9d0f+cargoflags=-Zbuild-dir-new-layout for pr-149852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharshkpatel2002%2Freceipt-processor" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/harshkpatel2002/receipt-processor [INFO] finished tweaking git repo https://github.com/harshkpatel2002/receipt-processor [INFO] tweaked toml for git repo https://github.com/harshkpatel2002/receipt-processor written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/harshkpatel2002/receipt-processor on toolchain 311784882baa42a9638298cb325fa01a062c9d0f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/harshkpatel2002/receipt-processor 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" "+311784882baa42a9638298cb325fa01a062c9d0f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 515ca5b2b80eeeb64fe4ecb655aff3c8250fdedfd577ca6848e540dfed024a5b [INFO] running `Command { std: "docker" "start" "-a" "515ca5b2b80eeeb64fe4ecb655aff3c8250fdedfd577ca6848e540dfed024a5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "515ca5b2b80eeeb64fe4ecb655aff3c8250fdedfd577ca6848e540dfed024a5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "515ca5b2b80eeeb64fe4ecb655aff3c8250fdedfd577ca6848e540dfed024a5b", kill_on_drop: false }` [INFO] [stdout] 515ca5b2b80eeeb64fe4ecb655aff3c8250fdedfd577ca6848e540dfed024a5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 7ae66cc2c8c3365bbc34b113b8cd91cb54cebbc17d39a6f2b5da32f6663f03d5 [INFO] running `Command { std: "docker" "start" "-a" "7ae66cc2c8c3365bbc34b113b8cd91cb54cebbc17d39a6f2b5da32f6663f03d5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling http v1.0.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling syn v2.0.51 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling indexmap v2.2.3 [INFO] [stderr] Compiling axum v0.7.4 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Compiling http-body-util v0.1.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling pin-project v1.1.4 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.2 [INFO] [stderr] Compiling serde_path_to_error v0.1.15 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.2.0 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling receipt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | if let Ok(mut id_map) = ID_MAP.write() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut map = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:113:35 [INFO] [stdout] | [INFO] [stdout] 113 | return (hour == 14 && minute >= 0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:114:35 [INFO] [stdout] | [INFO] [stdout] 114 | || (hour == 15 && minute >= 0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.31s [INFO] running `Command { std: "docker" "inspect" "7ae66cc2c8c3365bbc34b113b8cd91cb54cebbc17d39a6f2b5da32f6663f03d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ae66cc2c8c3365bbc34b113b8cd91cb54cebbc17d39a6f2b5da32f6663f03d5", kill_on_drop: false }` [INFO] [stdout] 7ae66cc2c8c3365bbc34b113b8cd91cb54cebbc17d39a6f2b5da32f6663f03d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 5160a0645c90cf33ef6ff94e1a5ee36b4d738264972299fd2094c75413d3512d [INFO] running `Command { std: "docker" "start" "-a" "5160a0645c90cf33ef6ff94e1a5ee36b4d738264972299fd2094c75413d3512d", kill_on_drop: false }` [INFO] [stderr] Compiling receipt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | if let Ok(mut id_map) = ID_MAP.write() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut map = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:113:35 [INFO] [stdout] | [INFO] [stdout] 113 | return (hour == 14 && minute >= 0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:114:35 [INFO] [stdout] | [INFO] [stdout] 114 | || (hour == 15 && minute >= 0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "5160a0645c90cf33ef6ff94e1a5ee36b4d738264972299fd2094c75413d3512d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5160a0645c90cf33ef6ff94e1a5ee36b4d738264972299fd2094c75413d3512d", kill_on_drop: false }` [INFO] [stdout] 5160a0645c90cf33ef6ff94e1a5ee36b4d738264972299fd2094c75413d3512d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 4f0abf44de76ea497ef668b161810f1278b80da01a8274ca1864af42ad582e44 [INFO] running `Command { std: "docker" "start" "-a" "4f0abf44de76ea497ef668b161810f1278b80da01a8274ca1864af42ad582e44", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:124:15 [INFO] [stderr] | [INFO] [stderr] 124 | if let Ok(mut id_map) = ID_MAP.write() { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | let mut map = HashMap::new(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:113:35 [INFO] [stderr] | [INFO] [stderr] 113 | return (hour == 14 && minute >= 0) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:114:35 [INFO] [stderr] | [INFO] [stderr] 114 | || (hour == 15 && minute >= 0) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `receipt` (bin "receipt" test) generated 4 warnings (run `cargo fix --bin "receipt" -p receipt --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/receipt/f4e9e9987bc015de/deps/receipt-f4e9e9987bc015de) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f0abf44de76ea497ef668b161810f1278b80da01a8274ca1864af42ad582e44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f0abf44de76ea497ef668b161810f1278b80da01a8274ca1864af42ad582e44", kill_on_drop: false }` [INFO] [stdout] 4f0abf44de76ea497ef668b161810f1278b80da01a8274ca1864af42ad582e44