[INFO] cloning repository https://github.com/SLMT/crypto-sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SLMT/crypto-sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSLMT%2Fcrypto-sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSLMT%2Fcrypto-sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 616240526b3f94e181241838249fcc7465069adc [INFO] checking SLMT/crypto-sim against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSLMT%2Fcrypto-sim" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SLMT/crypto-sim [INFO] finished tweaking git repo https://github.com/SLMT/crypto-sim [INFO] tweaked toml for git repo https://github.com/SLMT/crypto-sim written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SLMT/crypto-sim on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SLMT/crypto-sim 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rkyv_derive v0.7.42 [INFO] [stderr] Downloaded bytecheck v0.6.11 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded rend v0.4.1 [INFO] [stderr] Downloaded uuid v1.4.1 [INFO] [stderr] Downloaded errno v0.3.5 [INFO] [stderr] Downloaded bytecheck_derive v0.6.11 [INFO] [stderr] Downloaded ahash v0.8.3 [INFO] [stderr] Downloaded ahash v0.7.6 [INFO] [stderr] Downloaded rkyv v0.7.42 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded rust_decimal v1.32.0 [INFO] [stderr] Downloaded rustix v0.38.19 [INFO] [stderr] Downloaded linux-raw-sys v0.4.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 659ec9fc369af624b28fff0c374b8d4257334c20bf0d157bd5e91a963ffdce9d [INFO] running `Command { std: "docker" "start" "-a" "659ec9fc369af624b28fff0c374b8d4257334c20bf0d157bd5e91a963ffdce9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "659ec9fc369af624b28fff0c374b8d4257334c20bf0d157bd5e91a963ffdce9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "659ec9fc369af624b28fff0c374b8d4257334c20bf0d157bd5e91a963ffdce9d", kill_on_drop: false }` [INFO] [stdout] 659ec9fc369af624b28fff0c374b8d4257334c20bf0d157bd5e91a963ffdce9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe853a7489e3781453f623bf33b378335b8bc06505fbd93d0f504fce7ebda1e9 [INFO] running `Command { std: "docker" "start" "-a" "fe853a7489e3781453f623bf33b378335b8bc06505fbd93d0f504fce7ebda1e9", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.19 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking crypto-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/option.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/option.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/cli.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let action = self.select_action(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_portfolio` is never used [INFO] [stdout] --> src/cli.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Cli { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn create_portfolio(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SimResult` is never used [INFO] [stdout] --> src/error.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type SimResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SimError` is never used [INFO] [stdout] --> src/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum SimError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `option_field_not_set` is never used [INFO] [stdout] --> src/error.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl SimError { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn option_field_not_set(field_name: &str) -> SimError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptionType` is never used [INFO] [stdout] --> src/option.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum OptionType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CryptoOption` is never constructed [INFO] [stdout] --> src/option.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CryptoOption { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CryptoOptionBuilder` is never constructed [INFO] [stdout] --> src/option.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct CryptoOptionBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `base_coin`, `expiration_date`, `strike_price`, `option_type`, and `build` are never used [INFO] [stdout] --> src/option.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CryptoOptionBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 31 | pub fn new() -> CryptoOptionBuilder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn base_coin(mut self, base_coin: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn expiration_date(mut self, expiration_date: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn strike_price(mut self, strike_price: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn option_type(mut self, option_type: OptionType) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn build(self) -> SimResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Holding` is never constructed [INFO] [stdout] --> src/portofolio.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Holding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Portofolio` is never constructed [INFO] [stdout] --> src/portofolio.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Portofolio { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_options` is never used [INFO] [stdout] --> src/portofolio.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Portofolio { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 18 | pub fn get_options(&self) -> Vec<&CryptoOption> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortofolioBuilder` is never constructed [INFO] [stdout] --> src/portofolio.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct PortofolioBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, and `build` are never used [INFO] [stdout] --> src/portofolio.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl PortofolioBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new() -> PortofolioBuilder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn add( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn build(self) -> Portofolio { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/cli.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let action = self.select_action(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_portfolio` is never used [INFO] [stdout] --> src/cli.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Cli { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn create_portfolio(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount` and `cost` are never read [INFO] [stdout] --> src/portofolio.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Holding { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | amount: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | cost: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Holding` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.52s [INFO] running `Command { std: "docker" "inspect" "fe853a7489e3781453f623bf33b378335b8bc06505fbd93d0f504fce7ebda1e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe853a7489e3781453f623bf33b378335b8bc06505fbd93d0f504fce7ebda1e9", kill_on_drop: false }` [INFO] [stdout] fe853a7489e3781453f623bf33b378335b8bc06505fbd93d0f504fce7ebda1e9