[INFO] cloning repository https://github.com/Xerxes-zhz/rust-calendar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xerxes-zhz/rust-calendar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXerxes-zhz%2Frust-calendar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXerxes-zhz%2Frust-calendar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c025372654b430f806909b4405e596257bd820a0 [INFO] checking Xerxes-zhz/rust-calendar against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXerxes-zhz%2Frust-calendar" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Xerxes-zhz/rust-calendar on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Xerxes-zhz/rust-calendar [INFO] finished tweaking git repo https://github.com/Xerxes-zhz/rust-calendar [INFO] tweaked toml for git repo https://github.com/Xerxes-zhz/rust-calendar written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Xerxes-zhz/rust-calendar already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded connection-string v0.2.0 [INFO] [stderr] Downloaded pretty-hex v0.3.0 [INFO] [stderr] Downloaded async-native-tls v0.4.0 [INFO] [stderr] Downloaded md5 v0.6.1 [INFO] [stderr] Downloaded serde v1.0.175 [INFO] [stderr] Downloaded winauth v0.0.4 [INFO] [stderr] Downloaded tiberius v0.12.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54b8130cfbb33004bdfc2bad73d2d30e41797216a4a284820b7b4cb4a2f1e302 [INFO] running `Command { std: "docker" "start" "-a" "54b8130cfbb33004bdfc2bad73d2d30e41797216a4a284820b7b4cb4a2f1e302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54b8130cfbb33004bdfc2bad73d2d30e41797216a4a284820b7b4cb4a2f1e302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54b8130cfbb33004bdfc2bad73d2d30e41797216a4a284820b7b4cb4a2f1e302", kill_on_drop: false }` [INFO] [stdout] 54b8130cfbb33004bdfc2bad73d2d30e41797216a4a284820b7b4cb4a2f1e302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1757c8fad9665726ed0e251085d7ad2f053ff823a8e4a200fa420132fe84ce2e [INFO] running `Command { std: "docker" "start" "-a" "1757c8fad9665726ed0e251085d7ad2f053ff823a8e4a200fa420132fe84ce2e", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.72 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Checking connection-string v0.2.0 [INFO] [stderr] Checking pretty-hex v0.3.0 [INFO] [stderr] Compiling time-macros v0.2.10 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking uuid v1.4.1 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking time v0.3.23 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.7 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Checking enumflags2 v0.7.7 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking asynchronous-codec v0.6.2 [INFO] [stderr] Checking async-native-tls v0.4.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tiberius v0.12.2 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking rust-calendar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::Error` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Error; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/calendar/mod.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | for _ in (day..*val as usize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - for _ in (day..*val as usize) { [INFO] [stdout] 22 + for _ in day..*val as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/database/mod.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use tiberius::{AuthMethod, Client, Config,Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `calendar::dates::DATE_FORMAT` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use calendar::dates::DATE_FORMAT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Error` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Error; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/calendar/mod.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | for _ in (day..*val as usize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - for _ in (day..*val as usize) { [INFO] [stdout] 22 + for _ in day..*val as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/database/mod.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use tiberius::{AuthMethod, Client, Config,Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `calendar::dates::DATE_FORMAT` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use calendar::dates::DATE_FORMAT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last` is never read [INFO] [stdout] --> src/calendar/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TradingList { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | last: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev` is never used [INFO] [stdout] --> src/calendar/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TradingList { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_prev(&self, date: Date, nth: i32) -> Date { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn next_day>(dates: T) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prev_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn prev_day>(dates: T) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_n_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn next_n_day>(dates: T, n: i32) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prev_n_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn prev_n_day>(dates: T, n: i32) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/calendar/dates.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | CalculationError(String), [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | CalculationError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidDate` is never constructed [INFO] [stdout] --> src/calendar/dates.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum DateError{ [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 7 | InvalidDate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_nth_day` and `prev_nth_day` are never used [INFO] [stdout] --> src/calendar/dates.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Dates { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 12 | type OutputDate; [INFO] [stdout] 13 | fn next_nth_day(self, n: i32) -> Self::OutputDate; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | fn prev_nth_day(self, n: i32) -> Self::OutputDate; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last` is never read [INFO] [stdout] --> src/calendar/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TradingList { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | last: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev` is never used [INFO] [stdout] --> src/calendar/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TradingList { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_prev(&self, date: Date, nth: i32) -> Date { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn next_day>(dates: T) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prev_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn prev_day>(dates: T) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_n_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn next_n_day>(dates: T, n: i32) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prev_n_day` is never used [INFO] [stdout] --> src/calendar/mod.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn prev_n_day>(dates: T, n: i32) -> T::OutputDate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/calendar/dates.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | CalculationError(String), [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | CalculationError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidDate` is never constructed [INFO] [stdout] --> src/calendar/dates.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum DateError{ [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 7 | InvalidDate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_nth_day` and `prev_nth_day` are never used [INFO] [stdout] --> src/calendar/dates.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Dates { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 12 | type OutputDate; [INFO] [stdout] 13 | fn next_nth_day(self, n: i32) -> Self::OutputDate; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | fn prev_nth_day(self, n: i32) -> Self::OutputDate; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.35s [INFO] running `Command { std: "docker" "inspect" "1757c8fad9665726ed0e251085d7ad2f053ff823a8e4a200fa420132fe84ce2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1757c8fad9665726ed0e251085d7ad2f053ff823a8e4a200fa420132fe84ce2e", kill_on_drop: false }` [INFO] [stdout] 1757c8fad9665726ed0e251085d7ad2f053ff823a8e4a200fa420132fe84ce2e