[INFO] fetching crate hypertask 0.1.2... [INFO] testing hypertask-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate hypertask 0.1.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate hypertask 0.1.2 [INFO] finished tweaking crates.io crate hypertask 0.1.2 [INFO] tweaked toml for crates.io crate hypertask 0.1.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hypertask 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 64 packages to latest compatible versions [INFO] [stderr] Adding ansi_term v0.11.0 (available: v0.12.1) [INFO] [stderr] Adding rand v0.6.5 (available: v0.9.2) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.42) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eee29807973f230d1979a419d49878dea07bc376c011342ad610fc15f950dde6 [INFO] running `Command { std: "docker" "start" "-a" "eee29807973f230d1979a419d49878dea07bc376c011342ad610fc15f950dde6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eee29807973f230d1979a419d49878dea07bc376c011342ad610fc15f950dde6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eee29807973f230d1979a419d49878dea07bc376c011342ad610fc15f950dde6", kill_on_drop: false }` [INFO] [stdout] eee29807973f230d1979a419d49878dea07bc376c011342ad610fc15f950dde6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07d83ff28db7c0a54aabf2dd80ae26047e9fd824dc98dbb452d03c29d954031f [INFO] running `Command { std: "docker" "start" "-a" "07d83ff28db7c0a54aabf2dd80ae26047e9fd824dc98dbb452d03c29d954031f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling hypertask v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/render.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | let hash_map = task.to_renderable_hash_map();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/task.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | (2147483647 - (due.timestamp() as u64)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - (2147483647 - (due.timestamp() as u64)) [INFO] [stdout] 240 + 2147483647 - (due.timestamp() as u64) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:76:27 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn run_cli(_get_now: &Fn() -> DateTime, args: &Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | pub fn run_cli(_get_now: &dyn Fn() -> DateTime, args: &Vec) -> Result<(), String> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::isoywd`: use `from_local_datetime()` with a `NaiveDateTime` instead [INFO] [stdout] --> src/parse_args/mod.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | .isoywd(now_week.year(), now_week.week(), *weekday) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/parse_args/mod.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | .and_hms(0, 0, 0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/parse_args/mod.rs:95:11 [INFO] [stdout] | [INFO] [stdout] 95 | d + Duration::weeks(1) [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/parse_args/mod.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | Utc::now() + increment [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/parse_args/mod.rs:319:28 [INFO] [stdout] | [INFO] [stdout] 319 | Utc::now() + Duration::hours(1), [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/task.rs:185:45 [INFO] [stdout] | [INFO] [stdout] 185 | self.due = Some(due + dt); [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/task.rs:188:47 [INFO] [stdout] | [INFO] [stdout] 188 | self.wait = Some(wait + dt); [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/task.rs:264:38 [INFO] [stdout] | [INFO] [stdout] 264 | return due < (Utc::now() + Duration::days(3)); [INFO] [stdout] | ^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] `chrono::DateTime` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hypertask` (lib) due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "07d83ff28db7c0a54aabf2dd80ae26047e9fd824dc98dbb452d03c29d954031f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07d83ff28db7c0a54aabf2dd80ae26047e9fd824dc98dbb452d03c29d954031f", kill_on_drop: false }` [INFO] [stdout] 07d83ff28db7c0a54aabf2dd80ae26047e9fd824dc98dbb452d03c29d954031f