[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] testing Pedrohgsc/exercicio against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPedrohgsc%2Fexercicio" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Pedrohgsc/exercicio on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d2365cba34209b37ba9053d1d743be14b4b89501e18d45d95085d2f3a21a554 [INFO] running `Command { std: "docker" "start" "-a" "8d2365cba34209b37ba9053d1d743be14b4b89501e18d45d95085d2f3a21a554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d2365cba34209b37ba9053d1d743be14b4b89501e18d45d95085d2f3a21a554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d2365cba34209b37ba9053d1d743be14b4b89501e18d45d95085d2f3a21a554", kill_on_drop: false }` [INFO] [stdout] 8d2365cba34209b37ba9053d1d743be14b4b89501e18d45d95085d2f3a21a554 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4589c6d0859e8ca3fe53f3f801bd970c1c48baa67bf4e06e4a755533c3ea0a06 [INFO] running `Command { std: "docker" "start" "-a" "4589c6d0859e8ca3fe53f3f801bd970c1c48baa67bf4e06e4a755533c3ea0a06", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling 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[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] running `Command { std: "docker" "inspect" "4589c6d0859e8ca3fe53f3f801bd970c1c48baa67bf4e06e4a755533c3ea0a06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4589c6d0859e8ca3fe53f3f801bd970c1c48baa67bf4e06e4a755533c3ea0a06", kill_on_drop: false }` [INFO] [stdout] 4589c6d0859e8ca3fe53f3f801bd970c1c48baa67bf4e06e4a755533c3ea0a06