[INFO] fetching crate sl_time_convert 0.4.0... [INFO] checking sl_time_convert-0.4.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate sl_time_convert 0.4.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate sl_time_convert 0.4.0 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] started tweaking crates.io crate sl_time_convert 0.4.0 [INFO] finished tweaking crates.io crate sl_time_convert 0.4.0 [INFO] tweaked toml for crates.io crate sl_time_convert 0.4.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 40 packages to latest compatible versions [INFO] [stderr] Adding time v0.1.45 (available: v0.3.36) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b1e3d205e7fabeec4697eef43329e9bfcbd34b40291147f4626699de9d9472d [INFO] running `Command { std: "docker" "start" "-a" "5b1e3d205e7fabeec4697eef43329e9bfcbd34b40291147f4626699de9d9472d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b1e3d205e7fabeec4697eef43329e9bfcbd34b40291147f4626699de9d9472d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b1e3d205e7fabeec4697eef43329e9bfcbd34b40291147f4626699de9d9472d", kill_on_drop: false }` [INFO] [stdout] 5b1e3d205e7fabeec4697eef43329e9bfcbd34b40291147f4626699de9d9472d [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d6587174ca88e0c295a18cf53cb409ce0e0d1ac32c74c802116966098e40386 [INFO] running `Command { std: "docker" "start" "-a" "4d6587174ca88e0c295a18cf53cb409ce0e0d1ac32c74c802116966098e40386", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking sl_time_convert v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/main.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let epoch: Date = Utc.ymd(2013, 1, 1); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/main.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let epoch: Date = Utc.ymd(2013, 1, 1); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let time: Date = Utc.ymd(year, month as u32, day as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let time: Date = Utc.ymd(year, month as u32, day as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead [INFO] [stdout] --> src/main.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 39 | let epoch: Date = Utc.ymd(2013, 1, 1); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead [INFO] [stdout] --> src/main.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 39 | let epoch: Date = Utc.ymd(2013, 1, 1); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead [INFO] [stdout] --> src/main.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | let time: Date = Utc.ymd(year, month as u32, day as u32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead [INFO] [stdout] --> src/main.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | let time: Date = Utc.ymd(year, month as u32, day as u32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let duration: Duration = time.signed_duration_since(epoch); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Duration`, found `TimeDelta` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let duration: Duration = time.signed_duration_since(epoch); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Duration`, found `TimeDelta` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | let converted = epoch + new_duration; [INFO] [stdout] | ^^^^^^^^^^^^ expected `TimeDelta`, found `Duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | let max = (converted + Duration::days(99)).format(FORMAT).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `TimeDelta`, found `Duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | let converted = epoch + new_duration; [INFO] [stdout] | ^^^^^^^^^^^^ expected `TimeDelta`, found `Duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | let max = (converted + Duration::days(99)).format(FORMAT).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `TimeDelta`, found `Duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sl_time_convert` (bin "sl_time_convert") due to 4 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sl_time_convert` (bin "sl_time_convert" test) due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4d6587174ca88e0c295a18cf53cb409ce0e0d1ac32c74c802116966098e40386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d6587174ca88e0c295a18cf53cb409ce0e0d1ac32c74c802116966098e40386", kill_on_drop: false }` [INFO] [stdout] 4d6587174ca88e0c295a18cf53cb409ce0e0d1ac32c74c802116966098e40386