[INFO] cloning repository https://github.com/sibkit/xlsx_purchase_monitor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sibkit/xlsx_purchase_monitor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsibkit%2Fxlsx_purchase_monitor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsibkit%2Fxlsx_purchase_monitor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c222c51a177c77f893a5212a49401968135d4be [INFO] building sibkit/xlsx_purchase_monitor against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsibkit%2Fxlsx_purchase_monitor" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sibkit/xlsx_purchase_monitor on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sibkit/xlsx_purchase_monitor [INFO] finished tweaking git repo https://github.com/sibkit/xlsx_purchase_monitor [INFO] tweaked toml for git repo https://github.com/sibkit/xlsx_purchase_monitor written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sibkit/xlsx_purchase_monitor 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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4e049d9fdb1bf979bb211b9048ecd8a3f9d44a40652894212bb62f527998173 [INFO] running `Command { std: "docker" "start" "-a" "d4e049d9fdb1bf979bb211b9048ecd8a3f9d44a40652894212bb62f527998173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4e049d9fdb1bf979bb211b9048ecd8a3f9d44a40652894212bb62f527998173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4e049d9fdb1bf979bb211b9048ecd8a3f9d44a40652894212bb62f527998173", kill_on_drop: false }` [INFO] [stdout] d4e049d9fdb1bf979bb211b9048ecd8a3f9d44a40652894212bb62f527998173 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5831fbe4767bbb8b1ec79536e6f069f3634d3a7ac8d812be709dba4152e0c081 [INFO] running `Command { std: "docker" "start" "-a" "5831fbe4767bbb8b1ec79536e6f069f3634d3a7ac8d812be709dba4152e0c081", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rust_decimal v1.34.3 [INFO] [stderr] Compiling xlsx_purchase_monitor v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] warning: xlsx_purchase_monitor@0.1.0: Os { [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling codepage v0.1.1 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling chrono v0.4.34 [INFO] [stderr] Compiling calamine v0.24.0 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling rust_xlsxwriter v0.63.0 [INFO] [stdout] warning: unused import: `DataType` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use calamine::{DataType, Reader}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use rust_decimal::prelude::{FromPrimitive, ToPrimitive, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeliveryTime`, `PurchaseOrder`, `PurchasePlanItem`, `SpecificationItem`, and `Specification` [INFO] [stdout] --> src/main.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::init_data::{InitialData, DeliveryTime, PurchaseOrder, PurchasePlanItem, Specification, SpecificationItem}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaterialInfo` [INFO] [stdout] --> src/main.rs:18:79 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::orders_plan::{calculate_stocks_plan, calculate_need_for_materials, MaterialInfo}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | if(col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])?){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 199 - if(col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])?){ [INFO] [stdout] 199 + if col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reader` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | use calamine::{DataType, Reader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut items = read_sp_material_names(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut cell = &mut row[col_num]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `date_from` is never read [INFO] [stdout] --> src/init_data.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Specification { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 13 | pub(crate) product_name: String, [INFO] [stdout] 14 | pub(crate) date_from: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Specification` 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 `name` is never read [INFO] [stdout] --> src/init_data.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct PurchaseOrder{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 26 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PurchaseOrder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.08s [INFO] running `Command { std: "docker" "inspect" "5831fbe4767bbb8b1ec79536e6f069f3634d3a7ac8d812be709dba4152e0c081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5831fbe4767bbb8b1ec79536e6f069f3634d3a7ac8d812be709dba4152e0c081", kill_on_drop: false }` [INFO] [stdout] 5831fbe4767bbb8b1ec79536e6f069f3634d3a7ac8d812be709dba4152e0c081 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7bbc31bfb5ba4294169450e21ada9f0ce1428f17e0aa414c81f0d509bb75734 [INFO] running `Command { std: "docker" "start" "-a" "c7bbc31bfb5ba4294169450e21ada9f0ce1428f17e0aa414c81f0d509bb75734", kill_on_drop: false }` [INFO] [stderr] warning: xlsx_purchase_monitor@0.1.0: Os { [INFO] [stderr] Compiling xlsx_purchase_monitor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DataType` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use calamine::{DataType, Reader}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use rust_decimal::prelude::{FromPrimitive, ToPrimitive, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeliveryTime`, `PurchaseOrder`, `PurchasePlanItem`, `SpecificationItem`, and `Specification` [INFO] [stdout] --> src/main.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::init_data::{InitialData, DeliveryTime, PurchaseOrder, PurchasePlanItem, Specification, SpecificationItem}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaterialInfo` [INFO] [stdout] --> src/main.rs:18:79 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::orders_plan::{calculate_stocks_plan, calculate_need_for_materials, MaterialInfo}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | if(col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])?){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 199 - if(col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])?){ [INFO] [stdout] 199 + if col_num<=now_index+init_data.get_delivery_weeks(&materials[row_num-1])? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reader` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | use calamine::{DataType, Reader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut items = read_sp_material_names(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut cell = &mut row[col_num]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `date_from` is never read [INFO] [stdout] --> src/init_data.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Specification { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 13 | pub(crate) product_name: String, [INFO] [stdout] 14 | pub(crate) date_from: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Specification` 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 `name` is never read [INFO] [stdout] --> src/init_data.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct PurchaseOrder{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 26 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PurchaseOrder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "c7bbc31bfb5ba4294169450e21ada9f0ce1428f17e0aa414c81f0d509bb75734", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7bbc31bfb5ba4294169450e21ada9f0ce1428f17e0aa414c81f0d509bb75734", kill_on_drop: false }` [INFO] [stdout] c7bbc31bfb5ba4294169450e21ada9f0ce1428f17e0aa414c81f0d509bb75734