[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#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [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 f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6afd29aae92cbcd9161b2fdd6e35fc8ecd540ee2ebde492882f72304828cbf9b [INFO] running `Command { std: "docker" "start" "-a" "6afd29aae92cbcd9161b2fdd6e35fc8ecd540ee2ebde492882f72304828cbf9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6afd29aae92cbcd9161b2fdd6e35fc8ecd540ee2ebde492882f72304828cbf9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6afd29aae92cbcd9161b2fdd6e35fc8ecd540ee2ebde492882f72304828cbf9b", kill_on_drop: false }` [INFO] [stdout] 6afd29aae92cbcd9161b2fdd6e35fc8ecd540ee2ebde492882f72304828cbf9b [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=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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e895121843edf1e1225c51052fa8ad85e54f7b469e6fd55e9c35778fcb90bf03 [INFO] running `Command { std: "docker" "start" "-a" "e895121843edf1e1225c51052fa8ad85e54f7b469e6fd55e9c35778fcb90bf03", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.19 [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: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: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[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[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[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 `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[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[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[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[E0277]: `&Vec` is not an iterator [INFO] [stdout] --> src/main.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | for produto in &produtos { [INFO] [stdout] | ^^^^^^^^^ `&Vec` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `IntoIterator` is not implemented for `&Vec` [INFO] [stdout] = help: the following other types implement trait `IntoIterator`: [INFO] [stdout] &'a Vec [INFO] [stdout] &'a mut Vec [INFO] [stdout] Vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `&Vec` is not an iterator [INFO] [stdout] --> src/main.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | for produto in &produtos { [INFO] [stdout] | ^^^^^^^^^ `&Vec` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `IntoIterator` is not implemented for `&Vec` [INFO] [stdout] = help: the following other types implement trait `IntoIterator`: [INFO] [stdout] &'a Vec [INFO] [stdout] &'a mut Vec [INFO] [stdout] Vec [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] 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] error[E0277]: `Vec` is not an iterator [INFO] [stdout] --> src/main.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | for pedido in pedidos_compra { [INFO] [stdout] | ^^^^^^^^^^^^^^ `Vec` is not an iterator; try calling `.into_iter()` or `.iter()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `IntoIterator` is not implemented for `Vec` [INFO] [stdout] = help: the following other types implement trait `IntoIterator`: [INFO] [stdout] &'a Vec [INFO] [stdout] &'a mut Vec [INFO] [stdout] Vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Vec` is not an iterator [INFO] [stdout] --> src/main.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | for pedido in pedidos_compra { [INFO] [stdout] | ^^^^^^^^^^^^^^ `Vec` is not an iterator; try calling `.into_iter()` or `.iter()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `IntoIterator` is not implemented for `Vec` [INFO] [stdout] = help: the following other types implement trait `IntoIterator`: [INFO] [stdout] &'a Vec [INFO] [stdout] &'a mut Vec [INFO] [stdout] Vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pcp_system` (bin "pcp_system") due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `pcp_system` (bin "pcp_system" test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "e895121843edf1e1225c51052fa8ad85e54f7b469e6fd55e9c35778fcb90bf03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e895121843edf1e1225c51052fa8ad85e54f7b469e6fd55e9c35778fcb90bf03", kill_on_drop: false }` [INFO] [stdout] e895121843edf1e1225c51052fa8ad85e54f7b469e6fd55e9c35778fcb90bf03