[INFO] cloning repository https://github.com/LordFoom/rust-rough-stockchecker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LordFoom/rust-rough-stockchecker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLordFoom%2Frust-rough-stockchecker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLordFoom%2Frust-rough-stockchecker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f65efc1f4612dbd8edac98395ed6f3d166f04d9d [INFO] testing LordFoom/rust-rough-stockchecker against try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLordFoom%2Frust-rough-stockchecker" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LordFoom/rust-rough-stockchecker on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LordFoom/rust-rough-stockchecker [INFO] finished tweaking git repo https://github.com/LordFoom/rust-rough-stockchecker [INFO] tweaked toml for git repo https://github.com/LordFoom/rust-rough-stockchecker written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/LordFoom/rust-rough-stockchecker already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded select v0.5.0 [INFO] [stderr] Downloaded markup5ever_rcdom v0.1.0 [INFO] [stderr] Downloaded os_str_bytes v2.3.2 [INFO] [stderr] Downloaded named_pipe v0.4.1 [INFO] [stderr] Downloaded rust_decimal v1.8.1 [INFO] [stderr] Downloaded lru v0.6.0 [INFO] [stderr] Downloaded lexical v5.2.0 [INFO] [stderr] Downloaded derive_utils v0.10.0 [INFO] [stderr] Downloaded io-enum v0.2.3 [INFO] [stderr] Downloaded bigdecimal v0.1.2 [INFO] [stderr] Downloaded mysql v19.0.1 [INFO] [stderr] Downloaded time v0.2.21 [INFO] [stderr] Downloaded mysql_common v0.22.2 [INFO] [stderr] Downloaded syn v1.0.40 [INFO] [stderr] Downloaded xml5ever v0.16.1 [INFO] [stderr] Downloaded strum_macros v0.20.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b6302061617ceb36a587759bee1c0c43e84deaa0d0d9700bc3aeac390ae6882 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1b6302061617ceb36a587759bee1c0c43e84deaa0d0d9700bc3aeac390ae6882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b6302061617ceb36a587759bee1c0c43e84deaa0d0d9700bc3aeac390ae6882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b6302061617ceb36a587759bee1c0c43e84deaa0d0d9700bc3aeac390ae6882", kill_on_drop: false }` [INFO] [stdout] 1b6302061617ceb36a587759bee1c0c43e84deaa0d0d9700bc3aeac390ae6882 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fc08bb61b66d4847e08317ee4e08ec17b75ed0e96f1fb6b59fe44cfdbc6a924 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1fc08bb61b66d4847e08317ee4e08ec17b75ed0e96f1fb6b59fe44cfdbc6a924", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling cc v1.0.59 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling hashbrown v0.9.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling futures-sink v0.3.5 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling io-enum v0.2.3 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling ahash v0.3.8 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling mysql v19.0.1 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling bit-vec v0.6.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling os_str_bytes v2.3.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling encode_unicode v0.3.6 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling strum v0.19.5 [INFO] [stderr] Compiling tracing-core v0.1.15 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling futf v0.1.4 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.12 [INFO] [stderr] Compiling proc-macro-error v0.4.12 [INFO] [stderr] Compiling time v0.2.21 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling miniz_oxide v0.4.2 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling tendril v0.4.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling tracing v0.1.19 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling lru v0.6.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.2.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling backtrace v0.3.50 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling flate2 v1.0.17 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling lexical v5.2.0 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling derive_utils v0.10.0 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling strum_macros v0.20.1 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.1 [INFO] [stderr] Compiling pin-project v0.4.23 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling clap v3.0.0-beta.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling string_cache v0.8.0 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling bstr v0.2.13 [INFO] [stderr] Compiling rust_decimal v1.8.1 [INFO] [stderr] Compiling chrono v0.4.15 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling hyper v0.13.7 [INFO] [stderr] Compiling csv v1.1.3 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Compiling mysql_common v0.22.2 [INFO] [stderr] Compiling prettytable-rs v0.8.0 [INFO] [stderr] Compiling xml5ever v0.16.1 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling markup5ever_rcdom v0.1.0 [INFO] [stderr] Compiling select v0.5.0 [INFO] [stderr] Compiling stockchecker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suffix_select` [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let suffix_select: String = String::from("- INTERVAL {} DAY ORDER BY id DESC"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_suffix_select` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_curr_price` [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let str_curr_price = share_timeline.share.pretty_price(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_curr_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dec_curr_price` [INFO] [stdout] --> src/main.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | let dec_curr_price = share_timeline.share.price_as_decimal(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dec_curr_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_share` [INFO] [stdout] --> src/main.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_share` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `share_history` [INFO] [stdout] --> src/main.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_share_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut company_prices = get_company_prices(company_codes).await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Current` [INFO] [stdout] --> src/share_price_model.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Current, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DaysAgo` [INFO] [stdout] --> src/share_price_model.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | DaysAgo(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LastYear` [INFO] [stdout] --> src/share_price_model.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | LastYear, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_share_at_moment` [INFO] [stdout] --> src/share_price_model.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_share_at_moment(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Option<&Share> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_price_at_moment_or_zero` [INFO] [stdout] --> src/share_price_model.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_price_at_moment_or_zero(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pretty_price_at_moment_or_filler` [INFO] [stdout] --> src/share_price_model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_pretty_price_at_moment_or_filler(&self, moment: &ShareMoment) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ShareComparison` [INFO] [stdout] --> src/share_price_model.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ShareComparison{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `code` [INFO] [stdout] --> src/share_price_model.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn code(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `price` [INFO] [stdout] --> src/share_price_model.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn price(&self)->String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `latest_date` [INFO] [stdout] --> src/share_price_model.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn latest_date(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `historic_price` [INFO] [stdout] --> src/share_price_model.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn historic_price(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `historic_date` [INFO] [stdout] --> src/share_price_model.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn historic_date(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_price_cells` [INFO] [stdout] --> src/main.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 08s [INFO] running `Command { std: "docker" "inspect" "1fc08bb61b66d4847e08317ee4e08ec17b75ed0e96f1fb6b59fe44cfdbc6a924", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fc08bb61b66d4847e08317ee4e08ec17b75ed0e96f1fb6b59fe44cfdbc6a924", kill_on_drop: false }` [INFO] [stdout] 1fc08bb61b66d4847e08317ee4e08ec17b75ed0e96f1fb6b59fe44cfdbc6a924 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a50b66874689c58b36db1606d0095ec2f596d89bfb5fa75882af1fcffc91daf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3a50b66874689c58b36db1606d0095ec2f596d89bfb5fa75882af1fcffc91daf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling stockchecker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suffix_select` [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let suffix_select: String = String::from("- INTERVAL {} DAY ORDER BY id DESC"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_suffix_select` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_curr_price` [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let str_curr_price = share_timeline.share.pretty_price(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_curr_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dec_curr_price` [INFO] [stdout] --> src/main.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | let dec_curr_price = share_timeline.share.price_as_decimal(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dec_curr_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_share` [INFO] [stdout] --> src/main.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_share` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `share_history` [INFO] [stdout] --> src/main.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_share_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut company_prices = get_company_prices(company_codes).await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Current` [INFO] [stdout] --> src/share_price_model.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Current, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DaysAgo` [INFO] [stdout] --> src/share_price_model.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | DaysAgo(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LastYear` [INFO] [stdout] --> src/share_price_model.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | LastYear, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_share_at_moment` [INFO] [stdout] --> src/share_price_model.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_share_at_moment(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Option<&Share> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_price_at_moment_or_zero` [INFO] [stdout] --> src/share_price_model.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_price_at_moment_or_zero(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pretty_price_at_moment_or_filler` [INFO] [stdout] --> src/share_price_model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_pretty_price_at_moment_or_filler(&self, moment: &ShareMoment) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ShareComparison` [INFO] [stdout] --> src/share_price_model.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ShareComparison{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `code` [INFO] [stdout] --> src/share_price_model.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn code(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `price` [INFO] [stdout] --> src/share_price_model.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn price(&self)->String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `latest_date` [INFO] [stdout] --> src/share_price_model.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn latest_date(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `historic_price` [INFO] [stdout] --> src/share_price_model.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn historic_price(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `historic_date` [INFO] [stdout] --> src/share_price_model.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn historic_date(&self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_price_cells` [INFO] [stdout] --> src/main.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.11s [INFO] running `Command { std: "docker" "inspect" "3a50b66874689c58b36db1606d0095ec2f596d89bfb5fa75882af1fcffc91daf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a50b66874689c58b36db1606d0095ec2f596d89bfb5fa75882af1fcffc91daf", kill_on_drop: false }` [INFO] [stdout] 3a50b66874689c58b36db1606d0095ec2f596d89bfb5fa75882af1fcffc91daf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3f009a2c2bafd04bdb40ceb3687d7ddd5e24bb15ce3a04f858e0dd430c3a2f37 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3f009a2c2bafd04bdb40ceb3687d7ddd5e24bb15ce3a04f858e0dd430c3a2f37", kill_on_drop: false }` [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::FromStr` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::str::FromStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `suffix_select` [INFO] [stderr] --> src/main.rs:134:9 [INFO] [stderr] | [INFO] [stderr] 134 | let suffix_select: String = String::from("- INTERVAL {} DAY ORDER BY id DESC"); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_suffix_select` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `str_curr_price` [INFO] [stderr] --> src/main.rs:186:13 [INFO] [stderr] | [INFO] [stderr] 186 | let str_curr_price = share_timeline.share.pretty_price(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_curr_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dec_curr_price` [INFO] [stderr] --> src/main.rs:187:13 [INFO] [stderr] | [INFO] [stderr] 187 | let dec_curr_price = share_timeline.share.price_as_decimal(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dec_curr_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current_share` [INFO] [stderr] --> src/main.rs:242:26 [INFO] [stderr] | [INFO] [stderr] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_share` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `share_history` [INFO] [stderr] --> src/main.rs:242:48 [INFO] [stderr] | [INFO] [stderr] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_share_history` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | let mut company_prices = get_company_prices(company_codes).await?; [INFO] [stderr] | ----^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Current` [INFO] [stderr] --> src/share_price_model.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | Current, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DaysAgo` [INFO] [stderr] --> src/share_price_model.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | DaysAgo(i32), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `LastYear` [INFO] [stderr] --> src/share_price_model.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | LastYear, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_share_at_moment` [INFO] [stderr] --> src/share_price_model.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn get_share_at_moment(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Option<&Share> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_price_at_moment_or_zero` [INFO] [stderr] --> src/share_price_model.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn get_price_at_moment_or_zero(&self, share_hst_pnt: &share_price_model::ShareMoment) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_pretty_price_at_moment_or_filler` [INFO] [stderr] --> src/share_price_model.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn get_pretty_price_at_moment_or_filler(&self, moment: &ShareMoment) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `ShareComparison` [INFO] [stderr] --> src/share_price_model.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 64 | pub struct ShareComparison{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `code` [INFO] [stderr] --> src/share_price_model.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn code(&self) -> String { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `price` [INFO] [stderr] --> src/share_price_model.rs:74:12 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn price(&self)->String { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `latest_date` [INFO] [stderr] --> src/share_price_model.rs:78:12 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn latest_date(&self)->String{ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `historic_price` [INFO] [stderr] --> src/share_price_model.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn historic_price(&self)->String{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `historic_date` [INFO] [stderr] --> src/share_price_model.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn historic_date(&self)->String{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `construct_price_cells` [INFO] [stderr] --> src/main.rs:242:4 [INFO] [stderr] | [INFO] [stderr] 242 | fn construct_price_cells(current_share: Share, share_history: (ShareMoment, Share)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 21 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/stockchecker-b86707259975d2d7 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3f009a2c2bafd04bdb40ceb3687d7ddd5e24bb15ce3a04f858e0dd430c3a2f37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f009a2c2bafd04bdb40ceb3687d7ddd5e24bb15ce3a04f858e0dd430c3a2f37", kill_on_drop: false }` [INFO] [stdout] 3f009a2c2bafd04bdb40ceb3687d7ddd5e24bb15ce3a04f858e0dd430c3a2f37