[INFO] fetching crate smartcalc-tauri 0.0.3... [INFO] checking smartcalc-tauri-0.0.3 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate smartcalc-tauri 0.0.3 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate smartcalc-tauri 0.0.3 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate smartcalc-tauri 0.0.3 [INFO] finished tweaking crates.io crate smartcalc-tauri 0.0.3 [INFO] tweaked toml for crates.io crate smartcalc-tauri 0.0.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 72 packages to latest compatible versions [INFO] [stderr] Adding chrono-tz v0.6.3 (latest: v0.9.0) [INFO] [stderr] Adding chrono-tz-build v0.0.3 (latest: v0.3.0) [INFO] [stderr] Adding getrandom v0.1.16 (latest: v0.2.15) [INFO] [stderr] Adding rand v0.7.3 (latest: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.2.2 (latest: v0.3.1) [INFO] [stderr] Adding rand_core v0.5.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_hc v0.2.0 (latest: v0.3.2) [INFO] [stderr] Adding siphasher v0.3.11 (latest: v1.0.1) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.58.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chrono-tz-build v0.0.3 [INFO] [stderr] Downloaded libc-print v0.1.23 [INFO] [stderr] Downloaded chrono-tz v0.6.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ee63005a3ced6455deefa650e94f1d283936f0116e3477ca3368ee8483dac8f [INFO] running `Command { std: "docker" "start" "-a" "8ee63005a3ced6455deefa650e94f1d283936f0116e3477ca3368ee8483dac8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ee63005a3ced6455deefa650e94f1d283936f0116e3477ca3368ee8483dac8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ee63005a3ced6455deefa650e94f1d283936f0116e3477ca3368ee8483dac8f", kill_on_drop: false }` [INFO] [stdout] 8ee63005a3ced6455deefa650e94f1d283936f0116e3477ca3368ee8483dac8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 274e8aefc801ed5c1003932895f97b7bee73e8c38eeb79178c3074b2c84e882b [INFO] running `Command { std: "docker" "start" "-a" "274e8aefc801ed5c1003932895f97b7bee73e8c38eeb79178c3074b2c84e882b", kill_on_drop: false }` [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling smartcalc-tauri v0.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking libc-print v0.1.23 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling chrono-tz-build v0.0.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling chrono-tz v0.6.3 [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/time.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | let tz_offset = FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/compiler/duration.rs:99:39 [INFO] [stdout] | [INFO] [stdout] 99 | let time = chrono::NaiveTime::from_hms(hours as u32, minutes as u32, seconds as u32); [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/compiler/date.rs:69:47 [INFO] [stdout] | [INFO] [stdout] 69 | date = NaiveDate::from_ymd(years_diff as i32, date.month() as u32, date.day()); [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/compiler/date.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | date = NaiveDate::from_ymd(date.year() + years_diff as i32, month as u32, date.day()); [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/compiler/date.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 91 | date = NaiveDate::from_ymd(years_diff as i32, date.month() as u32, date.day()); [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/compiler/date.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | date = NaiveDate::from_ymd(years as i32, months as u32, date.day()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/compiler/date.rs:132:61 [INFO] [stdout] | [INFO] [stdout] 132 | let date_format = match self.0.year() == Utc::now().date().year() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/date.rs:137:46 [INFO] [stdout] | [INFO] [stdout] 137 | let tz_offset = chrono::FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/compiler/date.rs:138:34 [INFO] [stdout] | [INFO] [stdout] 138 | let datetime = tz_offset.from_utc_date(&self.0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:80:46 [INFO] [stdout] | [INFO] [stdout] 80 | let tz_offset = chrono::FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/compiler/date_time.rs:83:63 [INFO] [stdout] | [INFO] [stdout] 83 | let date_format = match datetime.year() == Utc::now().date().year() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/time.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | let tz_offset = FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [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/compiler/time.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()).print(&config, &session), "15:25:... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/compiler/time.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()).print(&config, &session), "15:25:... [INFO] [stdout] | ^^^^^^^ [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/compiler/time.rs:102:38 [INFO] [stdout] | [INFO] [stdout] 102 | let left = TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/compiler/time.rs:102:46 [INFO] [stdout] | [INFO] [stdout] 102 | let left = TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^ [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/compiler/time.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | let right = TimeItem(chrono::Utc::today().and_hms(1, 25, 1).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/compiler/time.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | let right = TimeItem(chrono::Utc::today().and_hms(1, 25, 1).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^ [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/compiler/time.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | let left = TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/compiler/time.rs:109:46 [INFO] [stdout] | [INFO] [stdout] 109 | let left = TimeItem(chrono::Utc::today().and_hms(15, 25, 35).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^ [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/compiler/time.rs:110:39 [INFO] [stdout] | [INFO] [stdout] 110 | let right = TimeItem(chrono::Utc::today().and_hms(1, 25, 1).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/compiler/time.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | let right = TimeItem(chrono::Utc::today().and_hms(1, 25, 1).naive_utc(), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/compiler/duration.rs:99:39 [INFO] [stdout] | [INFO] [stdout] 99 | let time = chrono::NaiveTime::from_hms(hours as u32, minutes as u32, seconds as u32); [INFO] [stdout] | ^^^^^^^^ [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/tokinizer/regex_tokinizer/text.rs:26:78 [INFO] [stdout] | [INFO] [stdout] 26 | ConstantType::Today => Some(TokenType::Date(Utc::today().naive_utc(), config.get_time_offset())), [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:27:78 [INFO] [stdout] | [INFO] [stdout] 27 | ... ConstantType::Tomorrow => Some(TokenType::Date(Utc::today().naive_utc() + Duration::days(1), config.get_time_offset())), [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:28:78 [INFO] [stdout] | [INFO] [stdout] 28 | ... ConstantType::Yesterday => Some(TokenType::Date(Utc::today().naive_utc() + Duration::days(-1), config.get_time_offset())), [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/compiler/date.rs:69:47 [INFO] [stdout] | [INFO] [stdout] 69 | date = NaiveDate::from_ymd(years_diff as i32, date.month() as u32, date.day()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_num_seconds_from_midnight`: use `from_num_seconds_from_midnight_opt()` instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/atom.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | let time = NaiveTime::from_num_seconds_from_midnight(seconds, 0); [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/compiler/date.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | date = NaiveDate::from_ymd(date.year() + years_diff as i32, month as u32, date.day()); [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/compiler/date.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 91 | date = NaiveDate::from_ymd(years_diff as i32, date.month() as u32, date.day()); [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/compiler/date.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | date = NaiveDate::from_ymd(years as i32, months as u32, date.day()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/compiler/date.rs:132:61 [INFO] [stdout] | [INFO] [stdout] 132 | let date_format = match self.0.year() == Utc::now().date().year() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/date.rs:137:46 [INFO] [stdout] | [INFO] [stdout] 137 | let tz_offset = chrono::FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/compiler/date.rs:138:34 [INFO] [stdout] | [INFO] [stdout] 138 | let datetime = tz_offset.from_utc_date(&self.0); [INFO] [stdout] | ^^^^^^^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | let date = Utc::today().naive_utc(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:52:41 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [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/compiler/date.rs:173:36 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(DateItem(NaiveDate::from_ymd(2020, 1, 1), config.get_time_offset()).print(&config, &session), "1 Jan 2020".to_string()); [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/tokinizer/regex_tokinizer/time.rs:52:71 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [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/compiler/date.rs:175:36 [INFO] [stdout] | [INFO] [stdout] 175 | let left = DateItem(NaiveDate::from_ymd(2020, 1, 1), config.get_time_offset()); [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/compiler/date.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | let right = DateItem(NaiveDate::from_ymd(2020, 1, 1), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:52:114 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [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/compiler/date.rs:181:36 [INFO] [stdout] | [INFO] [stdout] 181 | let left = DateItem(NaiveDate::from_ymd(2020, 1, 1), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:80:46 [INFO] [stdout] | [INFO] [stdout] 80 | let tz_offset = chrono::FixedOffset::east(self.1.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/compiler/date_time.rs:83:63 [INFO] [stdout] | [INFO] [stdout] 83 | let date_format = match datetime.year() == Utc::now().date().year() { [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/compiler/date_time.rs:129:40 [INFO] [stdout] | [INFO] [stdout] 129 | assert_eq!(DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 12, 13), config.get_time_offset()).print(&config, &session), "1 Ja... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:129:61 [INFO] [stdout] | [INFO] [stdout] 129 | assert_eq!(DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 12, 13), config.get_time_offset()).print(&config, &session), "1 Ja... [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/compiler/date_time.rs:131:40 [INFO] [stdout] | [INFO] [stdout] 131 | let left = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 1, 1), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:131:61 [INFO] [stdout] | [INFO] [stdout] 131 | let left = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 1, 1), config.get_time_offset()); [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/compiler/date_time.rs:132:41 [INFO] [stdout] | [INFO] [stdout] 132 | let right = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(0, 0, 0), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:132:62 [INFO] [stdout] | [INFO] [stdout] 132 | let right = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(0, 0, 0), config.get_time_offset()); [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/compiler/date_time.rs:137:40 [INFO] [stdout] | [INFO] [stdout] 137 | let left = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 0, 0), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/compiler/date_time.rs:137:61 [INFO] [stdout] | [INFO] [stdout] 137 | let left = DateTimeItem(NaiveDate::from_ymd(2020, 1, 1).and_hms(1, 0, 0), config.get_time_offset()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | let timezone_offset = FixedOffset::east(current_offset.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | let timezone_offset = FixedOffset::east(target_offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | Some((time, _)) => time.timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:56:41 [INFO] [stdout] | [INFO] [stdout] 56 | Some((date, _)) => date.and_hms(0,0,0).timestamp(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:56:56 [INFO] [stdout] | [INFO] [stdout] 56 | Some((date, _)) => date.and_hms(0,0,0).timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:58:55 [INFO] [stdout] | [INFO] [stdout] 58 | Some((date_time, _)) => date_time.timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | let date = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_rules.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Utc::now().date().year() as i32 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_rules.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | return Ok(TokenType::DateTime(date.and_hms(time.hour(), time.minute(), time.second()), date_tz)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/tools.rs:198:43 [INFO] [stdout] | [INFO] [stdout] 198 | let time = chrono::NaiveTime::from_hms(number as u32, 0, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:230:54 [INFO] [stdout] | [INFO] [stdout] 230 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:235:54 [INFO] [stdout] | [INFO] [stdout] 235 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/types.rs:236:42 [INFO] [stdout] | [INFO] [stdout] 236 | let datetime = tz_offset.from_utc_date(date); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:240:54 [INFO] [stdout] | [INFO] [stdout] 240 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [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/formatter/mod.rs:153:110 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(format_result(&config, &session, Rc::new(SmartCalcAstType::Item(Rc::new(TimeItem(chrono::Utc::today().and_hms(11, 30, 0).n... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/formatter/mod.rs:153:118 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(format_result(&config, &session, Rc::new(SmartCalcAstType::Item(Rc::new(TimeItem(chrono::Utc::today().and_hms(11, 30, 0).n... [INFO] [stdout] | ^^^^^^^ [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/formatter/mod.rs:154:110 [INFO] [stdout] | [INFO] [stdout] 154 | assert_eq!(format_result(&config, &session, Rc::new(SmartCalcAstType::Item(Rc::new(TimeItem(chrono::Utc::today().and_hms(0, 0, 0).nai... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/formatter/mod.rs:154:118 [INFO] [stdout] | [INFO] [stdout] 154 | assert_eq!(format_result(&config, &session, Rc::new(SmartCalcAstType::Item(Rc::new(TimeItem(chrono::Utc::today().and_hms(0, 0, 0).nai... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/text.rs:26:78 [INFO] [stdout] | [INFO] [stdout] 26 | ConstantType::Today => Some(TokenType::Date(Utc::today().naive_utc(), config.get_time_offset())), [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:27:78 [INFO] [stdout] | [INFO] [stdout] 27 | ... ConstantType::Tomorrow => Some(TokenType::Date(Utc::today().naive_utc() + Duration::days(1), config.get_time_offset())), [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:28:78 [INFO] [stdout] | [INFO] [stdout] 28 | ... ConstantType::Yesterday => Some(TokenType::Date(Utc::today().naive_utc() + Duration::days(-1), config.get_time_offset())), [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 101 | let today = Utc::today().naive_utc(); [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | let tomorrow = Utc::today().naive_utc() + Duration::days(1); [INFO] [stdout] | ^^^^^ [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/tokinizer/regex_tokinizer/text.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 103 | let yesterday = Utc::today().naive_utc() + Duration::days(-1); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_num_seconds_from_midnight`: use `from_num_seconds_from_midnight_opt()` instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/atom.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | let time = NaiveTime::from_num_seconds_from_midnight(seconds, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/tokinizer/regex_tokinizer/atom.rs:102:90 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(tokens[2].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 15, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/atom.rs:102:98 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(tokens[2].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 15, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | let date = Utc::today().naive_utc(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:52:41 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [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/tokinizer/regex_tokinizer/time.rs:52:71 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:52:114 [INFO] [stdout] | [INFO] [stdout] 52 | ... let datetime = FixedOffset::east(time_offset.offset * 60).ymd(date.year(), date.month(), date.day()).and_hms(hour as u32, minute as... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:82:90 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(11, 30, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:82:98 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(11, 30, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:86:90 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(tokens[1].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 00, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:86:98 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(tokens[1].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 00, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:90:90 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(tokens[2].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(1, 20, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:90:98 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(tokens[2].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(1, 20, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:94:90 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(tokens[3].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(15, 30, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:94:98 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(tokens[3].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(15, 30, 0).naive_utc(), config.g... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:98:90 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(tokens[4].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(9, 1, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:98:98 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(tokens[4].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(9, 1, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:102:90 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(tokens[5].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(13, 0, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:102:98 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(tokens[5].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(13, 0, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:106:90 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(tokens[6].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(1, 0, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:106:98 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(tokens[6].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(1, 0, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:110:90 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(tokens[7].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 0, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:110:98 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(tokens[7].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 0, 0).naive_utc(), config.ge... [INFO] [stdout] | ^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:114:90 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(tokens[8].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(0, 0, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:114:98 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(tokens[8].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(0, 0, 0).naive_utc(), config.get... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:122:44 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(time.time(), NaiveTime::from_hms(1, 0, 0)); [INFO] [stdout] | ^^^^^^^^ [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/tokinizer/regex_tokinizer/time.rs:137:91 [INFO] [stdout] | [INFO] [stdout] 137 | assert_eq!(tokens[11].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 34, 0).naive_utc(), config.... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tokinizer/regex_tokinizer/time.rs:137:99 [INFO] [stdout] | [INFO] [stdout] 137 | assert_eq!(tokens[11].token_type.borrow().deref(), &Some(TokenType::Time(chrono::Utc::today().and_hms(12, 34, 0).naive_utc(), config.... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | let timezone_offset = FixedOffset::east(current_offset.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | let timezone_offset = FixedOffset::east(target_offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | Some((time, _)) => time.timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:56:41 [INFO] [stdout] | [INFO] [stdout] 56 | Some((date, _)) => date.and_hms(0,0,0).timestamp(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:56:56 [INFO] [stdout] | [INFO] [stdout] 56 | Some((date, _)) => date.and_hms(0,0,0).timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:58:55 [INFO] [stdout] | [INFO] [stdout] 58 | Some((date_time, _)) => date_time.timestamp(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_time_rules.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | let date = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_rules.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Utc::now().date().year() as i32 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_rules.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | return Ok(TokenType::DateTime(date.and_hms(time.hour(), time.minute(), time.second()), date_tz)); [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/tokinizer/rule_tokinizer/rules/date_rules.rs:78:88 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Date(NaiveDate::from_ymd(Utc::now().date().year(), 1, 12), config.... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tokinizer/rule_tokinizer/rules/date_rules.rs:78:108 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Date(NaiveDate::from_ymd(Utc::now().date().year(), 1, 12), config.... [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/tokinizer/rule_tokinizer/rules/date_rules.rs:104:88 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Date(NaiveDate::from_ymd(1985, 12, 22), config.get_time_offset()))); [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/tokinizer/rule_tokinizer/rules/date_rules.rs:116:88 [INFO] [stdout] | [INFO] [stdout] 116 | assert_eq!(tokens[0].token_type.borrow().deref(), &Some(TokenType::Date(NaiveDate::from_ymd(1985, 12, 22), config.get_time_offset()))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/tokinizer/tools.rs:198:43 [INFO] [stdout] | [INFO] [stdout] 198 | let time = chrono::NaiveTime::from_hms(number as u32, 0, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:230:54 [INFO] [stdout] | [INFO] [stdout] 230 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:235:54 [INFO] [stdout] | [INFO] [stdout] 235 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::from_utc_date`: use `from_utc_datetime()` instead [INFO] [stdout] --> src/types.rs:236:42 [INFO] [stdout] | [INFO] [stdout] 236 | let datetime = tz_offset.from_utc_date(date); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/types.rs:240:54 [INFO] [stdout] | [INFO] [stdout] 240 | let tz_offset = chrono::FixedOffset::east(tz.offset * 60); [INFO] [stdout] | ^^^^ [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/tests/executer_test.rs:161:127 [INFO] [stdout] | [INFO] [stdout] 161 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:161:135 [INFO] [stdout] | [INFO] [stdout] 161 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(11, 30, 0).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:165:127 [INFO] [stdout] | [INFO] [stdout] 165 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:165:135 [INFO] [stdout] | [INFO] [stdout] 165 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(23, 30, 0).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:179:127 [INFO] [stdout] | [INFO] [stdout] 179 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:179:135 [INFO] [stdout] | [INFO] [stdout] 179 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(11, 30, 0).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:183:127 [INFO] [stdout] | [INFO] [stdout] 183 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:183:135 [INFO] [stdout] | [INFO] [stdout] 183 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(10, 30, 0).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:254:127 [INFO] [stdout] | [INFO] [stdout] 254 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:254:135 [INFO] [stdout] | [INFO] [stdout] 254 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(11, 30, 0).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:258:127 [INFO] [stdout] | [INFO] [stdout] 258 | ... SmartCalcAstType::Item(item) => assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_h... [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:258:135 [INFO] [stdout] | [INFO] [stdout] 258 | ...st_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(12, 31, 30).naive_utc()), [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:321:99 [INFO] [stdout] | [INFO] [stdout] 321 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(11, 30, 00).naive_utc()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:321:107 [INFO] [stdout] | [INFO] [stdout] 321 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(11, 30, 00).naive_utc()); [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:336:99 [INFO] [stdout] | [INFO] [stdout] 336 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(12, 40, 01).naive_utc()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:336:107 [INFO] [stdout] | [INFO] [stdout] 336 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(12, 40, 01).naive_utc()); [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:351:99 [INFO] [stdout] | [INFO] [stdout] 351 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(10, 50, 0).naive_utc()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:351:107 [INFO] [stdout] | [INFO] [stdout] 351 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_time(), chrono::Utc::today().and_hms(10, 50, 0).naive_utc()); [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/tests/executer_test.rs:366:97 [INFO] [stdout] | [INFO] [stdout] 366 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(Utc::now().date().year(), 7, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tests/executer_test.rs:366:117 [INFO] [stdout] | [INFO] [stdout] 366 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(Utc::now().date().year(), 7, 1)); [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/tests/executer_test.rs:381:97 [INFO] [stdout] | [INFO] [stdout] 381 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2018, 12, 27)); [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/tests/executer_test.rs:396:97 [INFO] [stdout] | [INFO] [stdout] 396 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2019, 3, 1)); [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/tests/executer_test.rs:411:97 [INFO] [stdout] | [INFO] [stdout] 411 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2018, 11, 28)); [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/tests/executer_test.rs:426:97 [INFO] [stdout] | [INFO] [stdout] 426 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2018, 11, 18)); [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/tests/executer_test.rs:441:97 [INFO] [stdout] | [INFO] [stdout] 441 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2018, 10, 25)); [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/tests/executer_test.rs:456:97 [INFO] [stdout] | [INFO] [stdout] 456 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(2020, 02, 12)); [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/tests/executer_test.rs:471:97 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(1988, 02, 12)); [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/tests/executer_test.rs:486:97 [INFO] [stdout] | [INFO] [stdout] 486 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), NaiveDate::from_ymd(1988, 02, 12)); [INFO] [stdout] | ^^^^^^^^ [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/tests/executer_test.rs:531:91 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), Utc::today().naive_utc() + Duration::weeks(3)); [INFO] [stdout] | ^^^^^ [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/tests/executer_test.rs:546:92 [INFO] [stdout] | [INFO] [stdout] 546 | ... assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), (Utc::today().naive_utc() + Duration::weeks(3)) - Duratio... [INFO] [stdout] | ^^^^^ [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/tests/executer_test.rs:561:91 [INFO] [stdout] | [INFO] [stdout] 561 | ... assert_eq!(item.as_any().downcast_ref::().unwrap().get_date(), Utc::today().naive_utc() + Duration::weeks(3) + Duration:... [INFO] [stdout] | ^^^^^ [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/tests/executer_test.rs:620:67 [INFO] [stdout] | [INFO] [stdout] 620 | assert_eq!(time_item.get_time(), chrono::Utc::today().and_hms(16, 0, 0).naive_utc()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:620:75 [INFO] [stdout] | [INFO] [stdout] 620 | assert_eq!(time_item.get_time(), chrono::Utc::today().and_hms(16, 0, 0).naive_utc()); [INFO] [stdout] | ^^^^^^^ [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/tests/executer_test.rs:642:67 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(time_item.get_time(), chrono::Utc::today().and_hms(16, 0, 0).naive_utc()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::Date::::and_hms`: Use and_hms_opt() instead [INFO] [stdout] --> src/tests/executer_test.rs:642:75 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(time_item.get_time(), chrono::Utc::today().and_hms(16, 0, 0).naive_utc()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `column`, `iter`, `index`, `indexer`, and `total` are never read [INFO] [stdout] --> src/tokinizer/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Tokinizer<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 41 | pub column: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub iter: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub data: String, [INFO] [stdout] 44 | pub index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | pub indexer: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pub total: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_new_line` and `is_whitespace` are never used [INFO] [stdout] --> src/types.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 485 | pub trait CharTraits { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 486 | fn is_new_line(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 487 | fn is_whitespace(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/smartcalc.rs:421:34 [INFO] [stdout] | [INFO] [stdout] 421 | session.set_language("en".borrow().to_string()); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `column`, `iter`, `index`, `indexer`, and `total` are never read [INFO] [stdout] --> src/tokinizer/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Tokinizer<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 41 | pub column: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub iter: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub data: String, [INFO] [stdout] 44 | pub index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | pub indexer: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pub total: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_new_line` and `is_whitespace` are never used [INFO] [stdout] --> src/types.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 485 | pub trait CharTraits { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 486 | fn is_new_line(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 487 | fn is_whitespace(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/smartcalc.rs:421:34 [INFO] [stdout] | [INFO] [stdout] 421 | session.set_language("en".borrow().to_string()); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 127 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.94s [INFO] running `Command { std: "docker" "inspect" "274e8aefc801ed5c1003932895f97b7bee73e8c38eeb79178c3074b2c84e882b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "274e8aefc801ed5c1003932895f97b7bee73e8c38eeb79178c3074b2c84e882b", kill_on_drop: false }` [INFO] [stdout] 274e8aefc801ed5c1003932895f97b7bee73e8c38eeb79178c3074b2c84e882b