[INFO] fetching crate baseunits-rs 0.1.0... [INFO] checking baseunits-rs-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate baseunits-rs 0.1.0 into /workspace/builds/worker-7-tc2/source [INFO] removed /workspace/builds/worker-7-tc2/source/rust-toolchain [INFO] started tweaking crates.io crate baseunits-rs 0.1.0 [INFO] finished tweaking crates.io crate baseunits-rs 0.1.0 [INFO] tweaked toml for crates.io crate baseunits-rs 0.1.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate baseunits-rs 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 137 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.7.0) [INFO] [stderr] Adding num v0.3.1 (available: v0.4.3) [INFO] [stderr] Adding num-bigint v0.3.3 (available: v0.4.6) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.41) [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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94c243a232de1ef9fbf1347ccff499500cdd5de2a9704a4b0c3e7c7e98f9dc7e [INFO] running `Command { std: "docker" "start" "-a" "94c243a232de1ef9fbf1347ccff499500cdd5de2a9704a4b0c3e7c7e98f9dc7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94c243a232de1ef9fbf1347ccff499500cdd5de2a9704a4b0c3e7c7e98f9dc7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c243a232de1ef9fbf1347ccff499500cdd5de2a9704a4b0c3e7c7e98f9dc7e", kill_on_drop: false }` [INFO] [stdout] 94c243a232de1ef9fbf1347ccff499500cdd5de2a9704a4b0c3e7c7e98f9dc7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bf0493b5472e2a57cddfad75e325e6a3ecf2b530aae7f26dfc3f9f9ae1557f9 [INFO] running `Command { std: "docker" "start" "-a" "8bf0493b5472e2a57cddfad75e325e6a3ecf2b530aae7f26dfc3f9f9ae1557f9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking iso-4217 v0.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking rust-fp-categories v0.0.5 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking baseunits-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/calendar_date.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Datelike, DateTime, TimeZone, Utc}; [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/time/calendar_date.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | impl From> for CalendarDate [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/calendar_date.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | fn from(value: Date) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/calendar_year_month.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Datelike, Date, TimeZone, Utc, ParseError}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/calendar_year_month.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | impl From> for CalendarYearMonth { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/calendar_year_month.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | fn from(date: Date) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/time_point.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | impl From> for TimePoint [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/time_point.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | fn from(date: Date) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/time_point.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn to_date_utc(&self) -> Date { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/time/time_point.rs:156:45 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn to_date(&self, time_zone: T) -> Date [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms_milli`: Use and_hms_milli_opt() instead [INFO] [stdout] --> src/time/calendar_date.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | let dt: DateTime = value.and_hms_milli(0, 0, 0, 0); [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/time/calendar_date.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | .ymd( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms_milli`: Use and_hms_milli_opt() instead [INFO] [stdout] --> src/time/calendar_date.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | .and_hms_milli(0, 0, 0, 0) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/time/calendar_date.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | .date() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/time/calendar_date.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | let new_date_time = date_time.add(OldDuration::days(days)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `chrono::DateTime + time::Duration` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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 subtract `time::Duration` from `chrono::DateTime` [INFO] [stdout] --> src/time/calendar_date.rs:133:39 [INFO] [stdout] | [INFO] [stdout] 133 | let new_date_time = date_time.sub(OldDuration::days(days)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `chrono::DateTime - time::Duration` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `chrono::DateTime` implements `Sub<&chrono::DateTime>` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `time::Duration` from `chrono::DateTime` [INFO] [stdout] --> src/time/calendar_date.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | let new_date_time = date_time - OldDuration::days(30 * months); [INFO] [stdout] | ^ no implementation for `chrono::DateTime - time::Duration` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `chrono::DateTime` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `chrono::DateTime` implements `Sub<&chrono::DateTime>` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] `chrono::DateTime` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `time::Duration` to `chrono::DateTime` [INFO] [stdout] --> src/time/calendar_date.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | let new_date_time = date_time + OldDuration::days(30 * months); [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] warning: use of deprecated associated function `chrono::Utc::today`: use `Utc::now()` instead, potentially with `.date_naive()` [INFO] [stdout] --> src/time/month_of_year.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | if self.value == Month::February && is_leap_year(Utc::today().year()) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms_milli`: Use and_hms_milli_opt() instead [INFO] [stdout] --> src/time/time_point.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | TimePoint::new(date.and_hms_milli(0, 0, 0, 0).timestamp_millis()) [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/time/time_point.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | .ymd(year, month, day) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms_milli`: Use and_hms_milli_opt() instead [INFO] [stdout] --> src/time/time_point.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | .and_hms_milli(hour, minute, second, millisecond) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::timestamp_millis`: use `timestamp_millis_opt()` instead [INFO] [stdout] --> src/time/time_point.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 149 | time_zone.timestamp_millis(self.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/time/time_point.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | self.to_date_time(time_zone).date() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms_milli`: use `from_hms_milli_opt()` instead [INFO] [stdout] --> src/time/time_point.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | NaiveTime::from_hms_milli( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/time/time_point.rs:202:16 [INFO] [stdout] | [INFO] [stdout] 202 | NaiveDate::from_ymd(date.year(), date.month(), date.day()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::prelude::Zero` [INFO] [stdout] --> src/util/ratio.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::prelude::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `baseunits-rs` (lib) due to 4 previous errors; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8bf0493b5472e2a57cddfad75e325e6a3ecf2b530aae7f26dfc3f9f9ae1557f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bf0493b5472e2a57cddfad75e325e6a3ecf2b530aae7f26dfc3f9f9ae1557f9", kill_on_drop: false }` [INFO] [stdout] 8bf0493b5472e2a57cddfad75e325e6a3ecf2b530aae7f26dfc3f9f9ae1557f9