[INFO] cloning repository https://github.com/psobczak/sun_time_calculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psobczak/sun_time_calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsobczak%2Fsun_time_calculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsobczak%2Fsun_time_calculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e385552b8be20eeb63863ea8440dfc3b0c11e628 [INFO] checking psobczak/sun_time_calculator against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsobczak%2Fsun_time_calculator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psobczak/sun_time_calculator on toolchain 8cf44c88fc5805dc578c5c987397615b47d2e2b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psobczak/sun_time_calculator [INFO] finished tweaking git repo https://github.com/psobczak/sun_time_calculator [INFO] tweaked toml for git repo https://github.com/psobczak/sun_time_calculator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/psobczak/sun_time_calculator 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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test-case v1.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00d446778c13f49db388fcca4af07df879e7643a90853f7554f954e091fb0a20 [INFO] running `Command { std: "docker" "start" "-a" "00d446778c13f49db388fcca4af07df879e7643a90853f7554f954e091fb0a20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00d446778c13f49db388fcca4af07df879e7643a90853f7554f954e091fb0a20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00d446778c13f49db388fcca4af07df879e7643a90853f7554f954e091fb0a20", kill_on_drop: false }` [INFO] [stdout] 00d446778c13f49db388fcca4af07df879e7643a90853f7554f954e091fb0a20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb16eb9b4fb40540e66ae7fe85e19bf6734b1fe1514350b1df2cf55f245afdb2 [INFO] running `Command { std: "docker" "start" "-a" "fb16eb9b4fb40540e66ae7fe85e19bf6734b1fe1514350b1df2cf55f245afdb2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.77 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling test-case v1.2.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking sun_time_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/time_calculator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/time_calculator.rs:38:61 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn sun_time_diff(&self, coordinate: &Coordinate) -> DateTime { [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `DateTime`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `DateTime` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: consider returning the local binding `dt` [INFO] [stdout] | [INFO] [stdout] 58 ~ self.time.sub(dt); [INFO] [stdout] 59 + dt [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/time_calculator.rs:38:61 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn sun_time_diff(&self, coordinate: &Coordinate) -> DateTime { [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `DateTime`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `chrono::DateTime` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: consider returning the local binding `dt` [INFO] [stdout] | [INFO] [stdout] 58 ~ self.time.sub(dt); [INFO] [stdout] 59 + dt [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/time_calculator.rs:97:28 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(actual, DateTime::from_str("2021-09-01:02:16:00")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `DateTime<_>`, found `Result, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `chrono::DateTime<_>` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result, _>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(actual, DateTime::from_str("2021-09-01:02:16:00").expect("REASON")) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let actual = SunTimeCalculator::new(first_longitude, Utc::now()) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let actual = SunTimeCalculator::new(first_longitude, Utc::now()) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sun_time_calculator` (bin "sun_time_calculator") due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sun_time_calculator` (bin "sun_time_calculator" test) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fb16eb9b4fb40540e66ae7fe85e19bf6734b1fe1514350b1df2cf55f245afdb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb16eb9b4fb40540e66ae7fe85e19bf6734b1fe1514350b1df2cf55f245afdb2", kill_on_drop: false }` [INFO] [stdout] fb16eb9b4fb40540e66ae7fe85e19bf6734b1fe1514350b1df2cf55f245afdb2