[INFO] cloning repository https://github.com/Pedrohgsc/exercicio [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pedrohgsc/exercicio" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPedrohgsc%2Fexercicio", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPedrohgsc%2Fexercicio'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91e248e6a67b3398084a2b94b3cc7f94ddb82812 [INFO] checking Pedrohgsc/exercicio/91e248e6a67b3398084a2b94b3cc7f94ddb82812 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPedrohgsc%2Fexercicio" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Pedrohgsc/exercicio on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Pedrohgsc/exercicio [INFO] finished tweaking git repo https://github.com/Pedrohgsc/exercicio [INFO] tweaked toml for git repo https://github.com/Pedrohgsc/exercicio written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Pedrohgsc/exercicio 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a99d950c1d2051a92f3ceb6d92bf28ffc6d9879d67e405a431f7fde9b6b02fd [INFO] running `Command { std: "docker" "start" "-a" "3a99d950c1d2051a92f3ceb6d92bf28ffc6d9879d67e405a431f7fde9b6b02fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a99d950c1d2051a92f3ceb6d92bf28ffc6d9879d67e405a431f7fde9b6b02fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a99d950c1d2051a92f3ceb6d92bf28ffc6d9879d67e405a431f7fde9b6b02fd", kill_on_drop: false }` [INFO] [stdout] 3a99d950c1d2051a92f3ceb6d92bf28ffc6d9879d67e405a431f7fde9b6b02fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84b0311ff1f5fbca35051f09b69d79a779fb6ef8075f2979b32018559923bea1 [INFO] running `Command { std: "docker" "start" "-a" "84b0311ff1f5fbca35051f09b69d79a779fb6ef8075f2979b32018559923bea1", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking pcp_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | data_entrega: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | data_pedido: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | fn calcular_data_pedido(data_entrega: NaiveDate, intervalo_pedido: i64) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:17:76 [INFO] [stdout] | [INFO] [stdout] 17 | fn calcular_data_pedido(data_entrega: NaiveDate, intervalo_pedido: i64) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/main.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | data_entrega - Duration::days(intervalo_pedido) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NaiveDate` [INFO] [stdout] --> src/main.rs:24:57 [INFO] [stdout] | [INFO] [stdout] 24 | Produto { id: 1, quantidade: 100, data_entrega: NaiveDate::from_ymd(2024, 6, 10) }, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NaiveDate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NaiveDate` [INFO] [stdout] --> src/main.rs:25:56 [INFO] [stdout] | [INFO] [stdout] 25 | Produto { id: 2, quantidade: 50, data_entrega: NaiveDate::from_ymd(2024, 6, 12) }, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NaiveDate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | let mut necessidades_materias_primas: HashMap<&str, Vec<(u32, NaiveDate)>> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | data_entrega: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | data_pedido: NaiveDate, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | fn calcular_data_pedido(data_entrega: NaiveDate, intervalo_pedido: i64) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:17:76 [INFO] [stdout] | [INFO] [stdout] 17 | fn calcular_data_pedido(data_entrega: NaiveDate, intervalo_pedido: i64) -> NaiveDate { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/main.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | data_entrega - Duration::days(intervalo_pedido) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NaiveDate` [INFO] [stdout] --> src/main.rs:24:57 [INFO] [stdout] | [INFO] [stdout] 24 | Produto { id: 1, quantidade: 100, data_entrega: NaiveDate::from_ymd(2024, 6, 10) }, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NaiveDate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NaiveDate` [INFO] [stdout] --> src/main.rs:25:56 [INFO] [stdout] | [INFO] [stdout] 25 | Produto { id: 2, quantidade: 50, data_entrega: NaiveDate::from_ymd(2024, 6, 12) }, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NaiveDate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NaiveDate` in this scope [INFO] [stdout] --> src/main.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | let mut necessidades_materias_primas: HashMap<&str, Vec<(u32, NaiveDate)>> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::NaiveDate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | materia_prima: materia_prima.to_string(), [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type parameter `Q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pcp_system` (bin "pcp_system") due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | materia_prima: materia_prima.to_string(), [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type parameter `Q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pcp_system` (bin "pcp_system" test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "84b0311ff1f5fbca35051f09b69d79a779fb6ef8075f2979b32018559923bea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84b0311ff1f5fbca35051f09b69d79a779fb6ef8075f2979b32018559923bea1", kill_on_drop: false }` [INFO] [stdout] 84b0311ff1f5fbca35051f09b69d79a779fb6ef8075f2979b32018559923bea1