[INFO] fetching crate rcc-solana 0.3.1... [INFO] checking rcc-solana-0.3.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rcc-solana 0.3.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate rcc-solana 0.3.1 [INFO] finished tweaking crates.io crate rcc-solana 0.3.1 [INFO] tweaked toml for crates.io crate rcc-solana 0.3.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rcc-solana 0.3.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 23 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding bs58 v0.4.0 (available: v0.5.1) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding uint v0.9.5 (available: v0.10.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 371d327d67d11a89f486c647df8729dfa66350825faa690f9cdbcf30495eb299 [INFO] running `Command { std: "docker" "start" "-a" "371d327d67d11a89f486c647df8729dfa66350825faa690f9cdbcf30495eb299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "371d327d67d11a89f486c647df8729dfa66350825faa690f9cdbcf30495eb299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "371d327d67d11a89f486c647df8729dfa66350825faa690f9cdbcf30495eb299", kill_on_drop: false }` [INFO] [stdout] 371d327d67d11a89f486c647df8729dfa66350825faa690f9cdbcf30495eb299 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] abd5e997dded53860b64e85aa0dff726742402fdd4e167cc359eb7480b8368ed [INFO] running `Command { std: "docker" "start" "-a" "abd5e997dded53860b64e85aa0dff726742402fdd4e167cc359eb7480b8368ed", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking rcc-trait-chain v0.1.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking rcc-solana v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/base.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(feature = "fuzz")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:146:16 [INFO] [stdout] | [INFO] [stdout] 146 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/base.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(feature = "fuzz")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:146:16 [INFO] [stdout] | [INFO] [stdout] 146 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Signature` is never constructed [INFO] [stdout] --> src/message.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Signature { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl COption { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_some(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn is_none(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn contains(&self, x: &U) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn expect(self, msg: &str) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn unwrap(self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn unwrap_or(self, def: T) -> T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn unwrap_or_else T>(self, f: F) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn map_or U>(self, default: U, f: F) -> U { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn map_or_else U, F: FnOnce(T) -> U>(self, default: D, f: F) -> U { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn ok_or(self, err: E) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn ok_or_else E>(self, err: F) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn and(self, optb: COption) -> COption { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | pub fn and_then COption>(self, f: F) -> COption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn filter bool>(self, predicate: P) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 509 | pub fn or(self, optb: COption) -> COption { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 530 | pub fn or_else COption>(self, f: F) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 562 | pub fn xor(self, optb: COption) -> COption { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn get_or_insert(&mut self, v: T) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn get_or_insert_with T>(&mut self, f: F) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 653 | pub fn replace(&mut self, value: T) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copied` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:671:12 [INFO] [stdout] | [INFO] [stdout] 658 | impl COption<&T> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 671 | pub fn copied(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copied` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:689:12 [INFO] [stdout] | [INFO] [stdout] 676 | impl COption<&mut T> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 689 | pub fn copied(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cloned` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:707:12 [INFO] [stdout] | [INFO] [stdout] 694 | impl COption<&T> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 707 | pub fn cloned(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cloned` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:725:12 [INFO] [stdout] | [INFO] [stdout] 712 | impl COption<&mut T> { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 725 | pub fn cloned(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unwrap_or_default` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:760:12 [INFO] [stdout] | [INFO] [stdout] 730 | impl COption { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 760 | pub fn unwrap_or_default(self) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_deref` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:787:12 [INFO] [stdout] | [INFO] [stdout] 768 | impl COption { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 787 | pub fn as_deref(&self) -> COption<&T::Target> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_deref_mut` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:809:12 [INFO] [stdout] | [INFO] [stdout] 792 | impl COption { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 809 | pub fn as_deref_mut(&mut self) -> COption<&mut T::Target> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:837:12 [INFO] [stdout] | [INFO] [stdout] 814 | impl COption> { [INFO] [stdout] | -------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 837 | pub fn transpose(self) -> Result, E> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_failed` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:849:4 [INFO] [stdout] | [INFO] [stdout] 849 | fn expect_failed(msg: &str) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `flatten` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:939:12 [INFO] [stdout] | [INFO] [stdout] 915 | impl COption> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 939 | pub fn flatten(self) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsInitialized` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_pack.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait IsInitialized { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `pack_into_slice`, `get_packed_len`, `unpack`, and `pack` are never used [INFO] [stdout] --> src/solana_lib/solana_program/program_pack.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Pack: Sealed { [INFO] [stdout] | ---- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_packed_len() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn unpack(input: &[u8]) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn pack(src: Self, dst: &mut [u8]) -> Result<(), ProgramError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockTimestamp` is never constructed [INFO] [stdout] --> src/solana_lib/solana_program/vote.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct BlockTimestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BankId` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub type BankId = u64; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SlotIndex` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub type SlotIndex = u64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SlotCount` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub type SlotCount = u64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum InstructionError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 67 | GenericError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | InvalidArgument, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | InvalidAccountData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | AccountDataTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | InsufficientFunds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | IncorrectProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | MissingRequiredSignature, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | AccountAlreadyInitialized, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | UninitializedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | UnbalancedInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | ModifiedProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | ExternalAccountLamportSpend, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | ExternalAccountDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | ReadonlyLamportChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | ReadonlyDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | DuplicateAccountIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | ExecutableModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | RentEpochModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | NotEnoughAccountKeys, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | AccountDataSizeChanged, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | AccountNotExecutable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | AccountBorrowFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | AccountBorrowOutstanding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | DuplicateAccountOutOfSync, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | Custom(u32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | InvalidError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | ExecutableDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | ExecutableLamportChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | ExecutableAccountNotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | UnsupportedProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | CallDepth, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | MissingAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | ReentrancyNotAllowed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | MaxSeedLengthExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | InvalidSeeds, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | InvalidRealloc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | ComputationalBudgetExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | PrivilegeEscalation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | ProgramEnvironmentSetupFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | ProgramFailedToComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | ProgramFailedToCompile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | Immutable, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | IncorrectAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | BorshIoError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | AccountNotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | InvalidAccountOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | ArithmeticOverflow, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | UnsupportedSysvar, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | IllegalOwner, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | MaxAccountsDataSizeExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | MaxAccountsExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TokenError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | NotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | InsufficientFunds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | InvalidMint, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | MintMismatch, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | OwnerMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | FixedSupply, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | AlreadyInUse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | InvalidNumberOfProvidedSigners, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidNumberOfRequiredSigners, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | UninitializedState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | NativeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | NonNativeHasBalance, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | InvalidState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | Overflow, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | AuthorityTypeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | MintCannotFreeze, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | AccountFrozen, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | MintDecimalsMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | NonNativeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into` is never used [INFO] [stdout] --> src/solana_lib/spl/token.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl AuthorityType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 105 | fn into(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token_lending.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum LendingError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | AlreadyInitialized, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | NotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | InvalidMarketAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | InvalidMarketOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | InvalidAccountOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | InvalidTokenOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | InvalidTokenAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidTokenMint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | InvalidTokenProgram, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | InvalidAmount, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | InvalidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | InvalidSigner, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | InvalidAccountInput, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | MathOverflow, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | TokenInitializeMintFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | TokenInitializeAccountFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | TokenTransferFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | TokenMintToFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | TokenBurnFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | InsufficientLiquidity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | ReserveCollateralDisabled, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | ReserveStale, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | WithdrawTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | WithdrawTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | BorrowTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | BorrowTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | RepayTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | LiquidationTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | ObligationHealthy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | ObligationStale, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | ObligationReserveLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | InvalidObligationOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | ObligationDepositsEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | ObligationBorrowsEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | ObligationDepositsZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | ObligationBorrowsZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | InvalidObligationCollateral, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | InvalidObligationLiquidity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | ObligationCollateralEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | ObligationLiquidityEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | NegativeInterestRate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | InvalidOracleConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | InvalidFlashLoanReceiverProgram, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | NotEnoughLiquidityAfterFlashLoan, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trading_tokens_to_pool_tokens` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_price.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn trading_tokens_to_pool_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn swap( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pool_tokens_to_trading_tokens` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn pool_tokens_to_trading_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit_single_token_type` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn deposit_single_token_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `withdraw_single_token_type_exact_out` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn withdraw_single_token_type_exact_out( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalized_value` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn normalized_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_COINS` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const N_COINS: u8 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_COINS_SQUARED` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const N_COINS_SQUARED: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ITERATIONS` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ITERATIONS: u8 = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_a` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn compute_a(amp: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checked_u8_power` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn checked_u8_power(a: &U256, b: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checked_u8_mul` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn checked_u8_mul(a: &U256, b: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_step` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn calculate_step(initial_d: &U256, leverage: u64, sum_x: u128, d_product: &U256) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_d` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn compute_d(leverage: u64, amount_a: u128, amount_b: u128) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_new_destination_amount` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn compute_new_destination_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_SWAP_POOL_AMOUNT` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const INITIAL_SWAP_POOL_AMOUNT: u128 = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKENS_IN_POOL` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const TOKENS_IN_POOL: u128 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_zero_to_none` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn map_zero_to_none(x: u128) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TradeDirection` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum TradeDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoundDirection` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum RoundDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opposite` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl TradeDirection { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn opposite(&self) -> TradeDirection { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapWithoutFeesResult` is never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct SwapWithoutFeesResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradingTokenResult` is never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct TradingTokenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pack_into_slice` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait DynPack { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 83 | /// Only required function is to pack given a trait object [INFO] [stdout] 84 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait CurveCalculator: Debug + DynPack { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 91 | fn swap_without_fees( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn new_pool_supply(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn pool_tokens_to_trading_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn deposit_single_token_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn withdraw_single_token_type_exact_out( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn validate(&self) -> Result<(), SwapError>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn validate_supply(&self, token_a_amount: u64, token_b_amount: u64) -> Result<(), SwapError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn allows_deposits(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn normalized_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedCeilDiv` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait CheckedCeilDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/mod.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 101 | impl PreciseNumber { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn almost_eq(&self, rhs: &Self, precision: InnerUint) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn less_than(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn greater_than(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn less_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn greater_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn ceiling(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn newtonian_root_approximation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 413 | fn minimum_sqrt_base() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn maximum_sqrt_base() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 427 | pub fn sqrt(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum SwapError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | AlreadyInUse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | InvalidProgramAddress, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | InvalidOwner, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | InvalidOutputOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | ExpectedMint, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | ExpectedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | EmptySupply, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | InvalidSupply, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | InvalidDelegate, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | InvalidInput, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | IncorrectSwapAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | IncorrectPoolMint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | InvalidOutput, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | CalculationFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | RepeatedMint, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ExceededSlippage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | InvalidCloseAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | InvalidFreezeAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | IncorrectFeeAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | ZeroTradingTokens, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | FeeCalculationFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | ConversionFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | InvalidFee, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | IncorrectTokenProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | UnsupportedCurveType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | InvalidCurve, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | UnsupportedCurveOperation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwapError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Signature` is never constructed [INFO] [stdout] --> src/message.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Signature { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl COption { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_some(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn is_none(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn contains(&self, x: &U) -> bool [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn expect(self, msg: &str) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn unwrap(self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn unwrap_or(self, def: T) -> T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn unwrap_or_else T>(self, f: F) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn map_or U>(self, default: U, f: F) -> U { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn map_or_else U, F: FnOnce(T) -> U>(self, default: D, f: F) -> U { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn ok_or(self, err: E) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn ok_or_else E>(self, err: F) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn and(self, optb: COption) -> COption { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | pub fn and_then COption>(self, f: F) -> COption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn filter bool>(self, predicate: P) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 509 | pub fn or(self, optb: COption) -> COption { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 530 | pub fn or_else COption>(self, f: F) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 562 | pub fn xor(self, optb: COption) -> COption { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn get_or_insert(&mut self, v: T) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn get_or_insert_with T>(&mut self, f: F) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 653 | pub fn replace(&mut self, value: T) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copied` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:671:12 [INFO] [stdout] | [INFO] [stdout] 658 | impl COption<&T> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 671 | pub fn copied(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copied` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:689:12 [INFO] [stdout] | [INFO] [stdout] 676 | impl COption<&mut T> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 689 | pub fn copied(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cloned` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:707:12 [INFO] [stdout] | [INFO] [stdout] 694 | impl COption<&T> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 707 | pub fn cloned(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cloned` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:725:12 [INFO] [stdout] | [INFO] [stdout] 712 | impl COption<&mut T> { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 725 | pub fn cloned(self) -> COption { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unwrap_or_default` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:760:12 [INFO] [stdout] | [INFO] [stdout] 730 | impl COption { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 760 | pub fn unwrap_or_default(self) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_deref` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:787:12 [INFO] [stdout] | [INFO] [stdout] 768 | impl COption { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 787 | pub fn as_deref(&self) -> COption<&T::Target> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_deref_mut` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:809:12 [INFO] [stdout] | [INFO] [stdout] 792 | impl COption { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 809 | pub fn as_deref_mut(&mut self) -> COption<&mut T::Target> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:837:12 [INFO] [stdout] | [INFO] [stdout] 814 | impl COption> { [INFO] [stdout] | -------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 837 | pub fn transpose(self) -> Result, E> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_failed` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:849:4 [INFO] [stdout] | [INFO] [stdout] 849 | fn expect_failed(msg: &str) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `flatten` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:939:12 [INFO] [stdout] | [INFO] [stdout] 915 | impl COption> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 939 | pub fn flatten(self) -> COption { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsInitialized` is never used [INFO] [stdout] --> src/solana_lib/solana_program/program_pack.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait IsInitialized { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `pack_into_slice`, `get_packed_len`, `unpack`, and `pack` are never used [INFO] [stdout] --> src/solana_lib/solana_program/program_pack.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Pack: Sealed { [INFO] [stdout] | ---- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_packed_len() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn unpack(input: &[u8]) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn pack(src: Self, dst: &mut [u8]) -> Result<(), ProgramError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockTimestamp` is never constructed [INFO] [stdout] --> src/solana_lib/solana_program/vote.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct BlockTimestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BankId` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub type BankId = u64; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SlotIndex` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub type SlotIndex = u64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SlotCount` is never used [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub type SlotCount = u64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/solana_program/mod.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum InstructionError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 67 | GenericError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | InvalidArgument, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | InvalidAccountData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | AccountDataTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | InsufficientFunds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | IncorrectProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | MissingRequiredSignature, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | AccountAlreadyInitialized, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | UninitializedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | UnbalancedInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | ModifiedProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | ExternalAccountLamportSpend, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | ExternalAccountDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | ReadonlyLamportChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | ReadonlyDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | DuplicateAccountIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | ExecutableModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | RentEpochModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | NotEnoughAccountKeys, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | AccountDataSizeChanged, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | AccountNotExecutable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | AccountBorrowFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | AccountBorrowOutstanding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | DuplicateAccountOutOfSync, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | Custom(u32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | InvalidError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | ExecutableDataModified, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | ExecutableLamportChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | ExecutableAccountNotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | UnsupportedProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | CallDepth, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | MissingAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | ReentrancyNotAllowed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | MaxSeedLengthExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | InvalidSeeds, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | InvalidRealloc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | ComputationalBudgetExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | PrivilegeEscalation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | ProgramEnvironmentSetupFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | ProgramFailedToComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | ProgramFailedToCompile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | Immutable, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | IncorrectAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | BorshIoError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | AccountNotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | InvalidAccountOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | ArithmeticOverflow, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | UnsupportedSysvar, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | IllegalOwner, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | MaxAccountsDataSizeExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | MaxAccountsExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TokenError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | NotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | InsufficientFunds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | InvalidMint, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | MintMismatch, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | OwnerMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | FixedSupply, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | AlreadyInUse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | InvalidNumberOfProvidedSigners, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidNumberOfRequiredSigners, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | UninitializedState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | NativeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | NonNativeHasBalance, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | InvalidState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | Overflow, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | AuthorityTypeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | MintCannotFreeze, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | AccountFrozen, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | MintDecimalsMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | NonNativeNotSupported, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into` is never used [INFO] [stdout] --> src/solana_lib/spl/token.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl AuthorityType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 105 | fn into(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token_lending.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum LendingError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | AlreadyInitialized, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | NotRentExempt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | InvalidMarketAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | InvalidMarketOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | InvalidAccountOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | InvalidTokenOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | InvalidTokenAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidTokenMint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | InvalidTokenProgram, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | InvalidAmount, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | InvalidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | InvalidSigner, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | InvalidAccountInput, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | MathOverflow, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | TokenInitializeMintFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | TokenInitializeAccountFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | TokenTransferFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | TokenMintToFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | TokenBurnFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | InsufficientLiquidity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | ReserveCollateralDisabled, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | ReserveStale, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | WithdrawTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | WithdrawTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | BorrowTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | BorrowTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | RepayTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | LiquidationTooSmall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | ObligationHealthy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | ObligationStale, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | ObligationReserveLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | InvalidObligationOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | ObligationDepositsEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | ObligationBorrowsEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | ObligationDepositsZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | ObligationBorrowsZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | InvalidObligationCollateral, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | InvalidObligationLiquidity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | ObligationCollateralEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | ObligationLiquidityEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | NegativeInterestRate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | InvalidOracleConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | InvalidFlashLoanReceiverProgram, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | NotEnoughLiquidityAfterFlashLoan, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trading_tokens_to_pool_tokens` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_price.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn trading_tokens_to_pool_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn swap( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pool_tokens_to_trading_tokens` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn pool_tokens_to_trading_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit_single_token_type` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn deposit_single_token_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `withdraw_single_token_type_exact_out` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn withdraw_single_token_type_exact_out( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalized_value` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn normalized_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_COINS` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const N_COINS: u8 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_COINS_SQUARED` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const N_COINS_SQUARED: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ITERATIONS` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ITERATIONS: u8 = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_a` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn compute_a(amp: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checked_u8_power` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn checked_u8_power(a: &U256, b: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checked_u8_mul` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn checked_u8_mul(a: &U256, b: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_step` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn calculate_step(initial_d: &U256, leverage: u64, sum_x: u128, d_product: &U256) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_d` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn compute_d(leverage: u64, amount_a: u128, amount_b: u128) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_new_destination_amount` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/stable.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn compute_new_destination_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_SWAP_POOL_AMOUNT` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const INITIAL_SWAP_POOL_AMOUNT: u128 = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKENS_IN_POOL` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const TOKENS_IN_POOL: u128 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_zero_to_none` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn map_zero_to_none(x: u128) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TradeDirection` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum TradeDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoundDirection` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum RoundDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opposite` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl TradeDirection { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn opposite(&self) -> TradeDirection { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapWithoutFeesResult` is never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct SwapWithoutFeesResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradingTokenResult` is never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct TradingTokenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pack_into_slice` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait DynPack { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 83 | /// Only required function is to pack given a trait object [INFO] [stdout] 84 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/calculator.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait CurveCalculator: Debug + DynPack { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 91 | fn swap_without_fees( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn new_pool_supply(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn pool_tokens_to_trading_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn deposit_single_token_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn withdraw_single_token_type_exact_out( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn validate(&self) -> Result<(), SwapError>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn validate_supply(&self, token_a_amount: u64, token_b_amount: u64) -> Result<(), SwapError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn allows_deposits(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn normalized_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedCeilDiv` is never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait CheckedCeilDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/solana_lib/spl/token_swap/curve/mod.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 101 | impl PreciseNumber { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn almost_eq(&self, rhs: &Self, precision: InnerUint) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn less_than(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn greater_than(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn less_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn greater_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn ceiling(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn newtonian_root_approximation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 413 | fn minimum_sqrt_base() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn maximum_sqrt_base() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 427 | pub fn sqrt(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/solana_lib/spl/token_swap/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum SwapError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | AlreadyInUse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | InvalidProgramAddress, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | InvalidOwner, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | InvalidOutputOwner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | ExpectedMint, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | ExpectedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | EmptySupply, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | InvalidSupply, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | InvalidDelegate, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | InvalidInput, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | IncorrectSwapAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | IncorrectPoolMint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | InvalidOutput, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | CalculationFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | RepeatedMint, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ExceededSlippage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | InvalidCloseAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | InvalidFreezeAuthority, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | IncorrectFeeAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | ZeroTradingTokens, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | FeeCalculationFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | ConversionFailure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | InvalidFee, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | IncorrectTokenProgramId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | UnsupportedCurveType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | InvalidCurve, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | UnsupportedCurveOperation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwapError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.42s [INFO] running `Command { std: "docker" "inspect" "abd5e997dded53860b64e85aa0dff726742402fdd4e167cc359eb7480b8368ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abd5e997dded53860b64e85aa0dff726742402fdd4e167cc359eb7480b8368ed", kill_on_drop: false }` [INFO] [stdout] abd5e997dded53860b64e85aa0dff726742402fdd4e167cc359eb7480b8368ed