[INFO] fetching crate rcc-solana 0.3.1... [INFO] testing rcc-solana-0.3.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate rcc-solana 0.3.1 into /workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rcc-solana 0.3.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64ea089f62111f2d78f8f8d7f69445a4907c38f6cc83e60b7a6e9f50fd8678d9 [INFO] running `Command { std: "docker" "start" "-a" "64ea089f62111f2d78f8f8d7f69445a4907c38f6cc83e60b7a6e9f50fd8678d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64ea089f62111f2d78f8f8d7f69445a4907c38f6cc83e60b7a6e9f50fd8678d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64ea089f62111f2d78f8f8d7f69445a4907c38f6cc83e60b7a6e9f50fd8678d9", kill_on_drop: false }` [INFO] [stdout] 64ea089f62111f2d78f8f8d7f69445a4907c38f6cc83e60b7a6e9f50fd8678d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9555c5875ecf60ce591803e776a2dd323366414a77862b78af6632c384fcb22f [INFO] running `Command { std: "docker" "start" "-a" "9555c5875ecf60ce591803e776a2dd323366414a77862b78af6632c384fcb22f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rcc-trait-chain v0.1.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling uint v0.9.5 [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] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling 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: 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)]` (part of `#[warn(unused)]`) 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 11.77s [INFO] running `Command { std: "docker" "inspect" "9555c5875ecf60ce591803e776a2dd323366414a77862b78af6632c384fcb22f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9555c5875ecf60ce591803e776a2dd323366414a77862b78af6632c384fcb22f", kill_on_drop: false }` [INFO] [stdout] 9555c5875ecf60ce591803e776a2dd323366414a77862b78af6632c384fcb22f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ccebb111e3d4e379bb1d2f072812c0756e3552ef5e42cbf4b78d225e320933e [INFO] running `Command { std: "docker" "start" "-a" "3ccebb111e3d4e379bb1d2f072812c0756e3552ef5e42cbf4b78d225e320933e", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) 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] [stderr] Compiling rcc-solana v0.3.1 (/opt/rustwide/workdir) [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: 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)]` (part of `#[warn(unused)]`) 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 `test` profile [unoptimized + debuginfo] target(s) in 4.83s [INFO] running `Command { std: "docker" "inspect" "3ccebb111e3d4e379bb1d2f072812c0756e3552ef5e42cbf4b78d225e320933e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ccebb111e3d4e379bb1d2f072812c0756e3552ef5e42cbf4b78d225e320933e", kill_on_drop: false }` [INFO] [stdout] 3ccebb111e3d4e379bb1d2f072812c0756e3552ef5e42cbf4b78d225e320933e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2a5695e08a0368cad8772bc1203707ea67208ac573d4df58f96e5824ae695af6 [INFO] running `Command { std: "docker" "start" "-a" "2a5695e08a0368cad8772bc1203707ea67208ac573d4df58f96e5824ae695af6", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/base.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 5 | #[cfg(feature = "fuzz")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:135:16 [INFO] [stderr] | [INFO] [stderr] 135 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:146:16 [INFO] [stderr] | [INFO] [stderr] 146 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:160:16 [INFO] [stderr] | [INFO] [stderr] 160 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:174:16 [INFO] [stderr] | [INFO] [stderr] 174 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzz` [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:186:16 [INFO] [stderr] | [INFO] [stderr] 186 | #[cfg_attr(feature = "fuzz", derive(Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `fuzz` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: struct `Signature` is never constructed [INFO] [stderr] --> src/message.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | struct Signature { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl COption { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn is_some(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn is_none(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn contains(&self, x: &U) -> bool [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 179 | pub fn expect(self, msg: &str) -> T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 211 | pub fn unwrap(self) -> T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 233 | pub fn unwrap_or(self, def: T) -> T { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 250 | pub fn unwrap_or_else T>(self, f: F) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 298 | pub fn map_or U>(self, default: U, f: F) -> U { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 320 | pub fn map_or_else U, F: FnOnce(T) -> U>(self, default: D, f: F) -> U { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 351 | pub fn ok_or(self, err: E) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 377 | pub fn ok_or_else E>(self, err: F) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 412 | pub fn and(self, optb: COption) -> COption { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 438 | pub fn and_then COption>(self, f: F) -> COption { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 472 | pub fn filter bool>(self, predicate: P) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 509 | pub fn or(self, optb: COption) -> COption { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 530 | pub fn or_else COption>(self, f: F) -> COption { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 562 | pub fn xor(self, optb: COption) -> COption { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 594 | pub fn get_or_insert(&mut self, v: T) -> &mut T { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 618 | pub fn get_or_insert_with T>(&mut self, f: F) -> &mut T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 653 | pub fn replace(&mut self, value: T) -> COption { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `copied` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:671:12 [INFO] [stderr] | [INFO] [stderr] 658 | impl COption<&T> { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 671 | pub fn copied(self) -> COption { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `copied` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:689:12 [INFO] [stderr] | [INFO] [stderr] 676 | impl COption<&mut T> { [INFO] [stderr] | ----------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 689 | pub fn copied(self) -> COption { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `cloned` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:707:12 [INFO] [stderr] | [INFO] [stderr] 694 | impl COption<&T> { [INFO] [stderr] | -------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 707 | pub fn cloned(self) -> COption { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `cloned` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:725:12 [INFO] [stderr] | [INFO] [stderr] 712 | impl COption<&mut T> { [INFO] [stderr] | ------------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 725 | pub fn cloned(self) -> COption { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `unwrap_or_default` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:760:12 [INFO] [stderr] | [INFO] [stderr] 730 | impl COption { [INFO] [stderr] | --------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 760 | pub fn unwrap_or_default(self) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_deref` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:787:12 [INFO] [stderr] | [INFO] [stderr] 768 | impl COption { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 787 | pub fn as_deref(&self) -> COption<&T::Target> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_deref_mut` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:809:12 [INFO] [stderr] | [INFO] [stderr] 792 | impl COption { [INFO] [stderr] | ---------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 809 | pub fn as_deref_mut(&mut self) -> COption<&mut T::Target> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `transpose` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:837:12 [INFO] [stderr] | [INFO] [stderr] 814 | impl COption> { [INFO] [stderr] | -------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 837 | pub fn transpose(self) -> Result, E> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `expect_failed` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:849:4 [INFO] [stderr] | [INFO] [stderr] 849 | fn expect_failed(msg: &str) -> ! { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `flatten` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_option.rs:939:12 [INFO] [stderr] | [INFO] [stderr] 915 | impl COption> { [INFO] [stderr] | --------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 939 | pub fn flatten(self) -> COption { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `IsInitialized` is never used [INFO] [stderr] --> src/solana_lib/solana_program/program_pack.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub trait IsInitialized { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `pack_into_slice`, `get_packed_len`, `unpack`, and `pack` are never used [INFO] [stderr] --> src/solana_lib/solana_program/program_pack.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub trait Pack: Sealed { [INFO] [stderr] | ---- associated items in this trait [INFO] [stderr] ... [INFO] [stderr] 19 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | fn get_packed_len() -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | fn unpack(input: &[u8]) -> Result [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | fn pack(src: Self, dst: &mut [u8]) -> Result<(), ProgramError> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BlockTimestamp` is never constructed [INFO] [stderr] --> src/solana_lib/solana_program/vote.rs:38:16 [INFO] [stderr] | [INFO] [stderr] 38 | pub struct BlockTimestamp { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `BankId` is never used [INFO] [stderr] --> src/solana_lib/solana_program/mod.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 12 | pub type BankId = u64; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `SlotIndex` is never used [INFO] [stderr] --> src/solana_lib/solana_program/mod.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | pub type SlotIndex = u64; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `SlotCount` is never used [INFO] [stderr] --> src/solana_lib/solana_program/mod.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | pub type SlotCount = u64; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/solana_lib/solana_program/mod.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 63 | pub enum InstructionError { [INFO] [stderr] | ---------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 67 | GenericError, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | InvalidArgument, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | InvalidAccountData, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | AccountDataTooSmall, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | InsufficientFunds, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | IncorrectProgramId, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | MissingRequiredSignature, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | AccountAlreadyInitialized, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | UninitializedAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | UnbalancedInstruction, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | ModifiedProgramId, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 115 | ExternalAccountLamportSpend, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | ExternalAccountDataModified, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 123 | ReadonlyLamportChange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 127 | ReadonlyDataModified, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 132 | DuplicateAccountIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | ExecutableModified, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | RentEpochModified, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 144 | NotEnoughAccountKeys, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 148 | AccountDataSizeChanged, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 152 | AccountNotExecutable, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 156 | AccountBorrowFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 160 | AccountBorrowOutstanding, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 166 | DuplicateAccountOutOfSync, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 172 | Custom(u32), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 177 | InvalidError, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 181 | ExecutableDataModified, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 185 | ExecutableLamportChange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 189 | ExecutableAccountNotRentExempt, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 193 | UnsupportedProgramId, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 197 | CallDepth, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | MissingAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 205 | ReentrancyNotAllowed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 209 | MaxSeedLengthExceeded, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | InvalidSeeds, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 217 | InvalidRealloc, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 221 | ComputationalBudgetExceeded, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 225 | PrivilegeEscalation, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 229 | ProgramEnvironmentSetupFailure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 233 | ProgramFailedToComplete, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 237 | ProgramFailedToCompile, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 241 | Immutable, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 245 | IncorrectAuthority, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 257 | BorshIoError(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 261 | AccountNotRentExempt, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 265 | InvalidAccountOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 269 | ArithmeticOverflow, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 273 | UnsupportedSysvar, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 277 | IllegalOwner, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 281 | MaxAccountsDataSizeExceeded, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 285 | MaxAccountsExceeded, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `InstructionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/solana_lib/spl/token.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum TokenError { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 11 | NotRentExempt, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | InsufficientFunds, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | InvalidMint, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | MintMismatch, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | OwnerMismatch, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | FixedSupply, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | AlreadyInUse, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | InvalidNumberOfProvidedSigners, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | InvalidNumberOfRequiredSigners, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | UninitializedState, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | NativeNotSupported, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | NonNativeHasBalance, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | InvalidState, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | Overflow, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | AuthorityTypeNotSupported, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | MintCannotFreeze, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | AccountFrozen, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | MintDecimalsMismatch, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | NonNativeNotSupported, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TokenError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `into` is never used [INFO] [stderr] --> src/solana_lib/spl/token.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 104 | impl AuthorityType { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] 105 | fn into(&self) -> u8 { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/solana_lib/spl/token_lending.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum LendingError { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 14 | AlreadyInitialized, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | NotRentExempt, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | InvalidMarketAuthority, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | InvalidMarketOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | InvalidAccountOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | InvalidTokenOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | InvalidTokenAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | InvalidTokenMint, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | InvalidTokenProgram, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | InvalidAmount, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | InvalidConfig, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | InvalidSigner, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | InvalidAccountInput, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | MathOverflow, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | TokenInitializeMintFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | TokenInitializeAccountFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | TokenTransferFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | TokenMintToFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | TokenBurnFailed, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | InsufficientLiquidity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | ReserveCollateralDisabled, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | ReserveStale, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | WithdrawTooSmall, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | WithdrawTooLarge, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 96 | BorrowTooSmall, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | BorrowTooLarge, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 102 | RepayTooSmall, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | LiquidationTooSmall, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 108 | ObligationHealthy, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | ObligationStale, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 116 | ObligationReserveLimit, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | InvalidObligationOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | ObligationDepositsEmpty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 125 | ObligationBorrowsEmpty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 130 | ObligationDepositsZero, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 133 | ObligationBorrowsZero, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | InvalidObligationCollateral, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | InvalidObligationLiquidity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 142 | ObligationCollateralEmpty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | ObligationLiquidityEmpty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 150 | NegativeInterestRate, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 153 | InvalidOracleConfig, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 156 | InvalidFlashLoanReceiverProgram, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | NotEnoughLiquidityAfterFlashLoan, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LendingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `trading_tokens_to_pool_tokens` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_price.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn trading_tokens_to_pool_tokens( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `swap` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn swap( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pool_tokens_to_trading_tokens` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn pool_tokens_to_trading_tokens( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `deposit_single_token_type` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:92:8 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn deposit_single_token_type( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `withdraw_single_token_type_exact_out` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:123:8 [INFO] [stderr] | [INFO] [stderr] 123 | pub fn withdraw_single_token_type_exact_out( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `normalized_value` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/constant_product.rs:154:8 [INFO] [stderr] | [INFO] [stderr] 154 | pub fn normalized_value( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `N_COINS` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | const N_COINS: u8 = 2; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `N_COINS_SQUARED` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:12:7 [INFO] [stderr] | [INFO] [stderr] 12 | const N_COINS_SQUARED: u8 = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ITERATIONS` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:13:7 [INFO] [stderr] | [INFO] [stderr] 13 | const ITERATIONS: u8 = 32; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compute_a` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:25:4 [INFO] [stderr] | [INFO] [stderr] 25 | fn compute_a(amp: u64) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `checked_u8_power` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:30:4 [INFO] [stderr] | [INFO] [stderr] 30 | fn checked_u8_power(a: &U256, b: u8) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `checked_u8_mul` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:39:4 [INFO] [stderr] | [INFO] [stderr] 39 | fn checked_u8_mul(a: &U256, b: u8) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `calculate_step` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:55:4 [INFO] [stderr] | [INFO] [stderr] 55 | fn calculate_step(initial_d: &U256, leverage: u64, sum_x: u128, d_product: &U256) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compute_d` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:72:4 [INFO] [stderr] | [INFO] [stderr] 72 | fn compute_d(leverage: u64, amount_a: u128, amount_b: u128) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compute_new_destination_amount` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/stable.rs:109:4 [INFO] [stderr] | [INFO] [stderr] 109 | fn compute_new_destination_amount( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `INITIAL_SWAP_POOL_AMOUNT` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | pub const INITIAL_SWAP_POOL_AMOUNT: u128 = 1_000_000_000; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TOKENS_IN_POOL` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | pub const TOKENS_IN_POOL: u128 = 2; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `map_zero_to_none` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn map_zero_to_none(x: u128) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `TradeDirection` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 33 | pub enum TradeDirection { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RoundDirection` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | pub enum RoundDirection { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `opposite` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 51 | impl TradeDirection { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 54 | pub fn opposite(&self) -> TradeDirection { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SwapWithoutFeesResult` is never constructed [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 64 | pub struct SwapWithoutFeesResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TradingTokenResult` is never constructed [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct TradingTokenResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `pack_into_slice` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:84:8 [INFO] [stderr] | [INFO] [stderr] 82 | pub trait DynPack { [INFO] [stderr] | ------- method in this trait [INFO] [stderr] 83 | /// Only required function is to pack given a trait object [INFO] [stderr] 84 | fn pack_into_slice(&self, dst: &mut [u8]); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/calculator.rs:91:8 [INFO] [stderr] | [INFO] [stderr] 88 | pub trait CurveCalculator: Debug + DynPack { [INFO] [stderr] | --------------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 91 | fn swap_without_fees( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | fn new_pool_supply(&self) -> u128 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | fn pool_tokens_to_trading_tokens( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 125 | fn deposit_single_token_type( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 144 | fn withdraw_single_token_type_exact_out( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 154 | fn validate(&self) -> Result<(), SwapError>; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | fn validate_supply(&self, token_a_amount: u64, token_b_amount: u64) -> Result<(), SwapError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | fn allows_deposits(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | fn normalized_value( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `CheckedCeilDiv` is never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/mod.rs:22:15 [INFO] [stderr] | [INFO] [stderr] 22 | pub trait CheckedCeilDiv: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/solana_lib/spl/token_swap/curve/mod.rs:158:16 [INFO] [stderr] | [INFO] [stderr] 101 | impl PreciseNumber { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 158 | pub fn almost_eq(&self, rhs: &Self, precision: InnerUint) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 164 | pub fn less_than(&self, rhs: &Self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn greater_than(&self, rhs: &Self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 174 | pub fn less_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 179 | pub fn greater_than_or_equal(&self, rhs: &Self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 190 | pub fn ceiling(&self) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 375 | fn newtonian_root_approximation( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 413 | fn minimum_sqrt_base() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 421 | fn maximum_sqrt_base() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 427 | pub fn sqrt(&self) -> Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/solana_lib/spl/token_swap/mod.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum SwapError { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 13 | AlreadyInUse, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 16 | InvalidProgramAddress, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | InvalidOwner, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | InvalidOutputOwner, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | ExpectedMint, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | ExpectedAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | EmptySupply, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | InvalidSupply, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | InvalidDelegate, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | InvalidInput, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | IncorrectSwapAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | IncorrectPoolMint, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | InvalidOutput, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | CalculationFailure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | RepeatedMint, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | ExceededSlippage, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | InvalidCloseAuthority, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | InvalidFreezeAuthority, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | IncorrectFeeAccount, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 81 | ZeroTradingTokens, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 84 | FeeCalculationFailure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | ConversionFailure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | InvalidFee, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | IncorrectTokenProgramId, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | UnsupportedCurveType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | InvalidCurve, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 106 | UnsupportedCurveOperation, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SwapError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `rcc-solana` (lib) generated 58 warnings [INFO] [stderr] warning: `rcc-solana` (lib test) generated 58 warnings (58 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rcc_solana-84757876d30bc345) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test message::tests::test_transaction_1 ... ok [INFO] [stdout] test message::tests::test_transaction_2 ... ok [INFO] [stdout] test message::tests::test_parse_message ... ok [INFO] [stdout] test message::tests::test_transaction_3 ... ok [INFO] [stdout] test message::tests::test_validate_message ... ok [INFO] [stdout] test message::tests::test_transaction_5 ... ok [INFO] [stdout] test message::tests::test_transaction_6 ... ok [INFO] [stdout] test message::tests::test_transaction_9 ... ok [INFO] [stdout] test message::tests::test_transaction_4 ... ok [INFO] [stdout] test message::tests::test_transaction_7 ... ok [INFO] [stderr] Doc-tests rcc_solana [INFO] [stdout] test message::tests::test_transaction_10 ... ok [INFO] [stdout] test message::tests::test_transaction_8 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 36 tests [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption<&'_T>::cloned (line 700) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption<&'_T>::copied (line 664) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption<&'_mutT>::cloned (line 718) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption<&'_mutT>::copied (line 682) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption>::flatten (line 920) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption>::flatten (line 932) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption>::transpose (line 828) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::and (line 394) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::and_then (line 428) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::as_deref (line 778) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::as_deref_mut (line 800) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::as_mut (line 137) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::as_ref (line 118) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::contains (line 77) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::default (line 887) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::expect (line 169) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::filter (line 458) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::get_or_insert (line 581) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::get_or_insert_with (line 605) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::is_none (line 57) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::is_some (line 35) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::map (line 270) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::map_or (line 290) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::map_or_else (line 310) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::ok_or (line 343) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::ok_or_else (line 369) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::or (line 491) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::or_else (line 521) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::replace (line 641) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap (line 201) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap_or (line 228) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap_or_default (line 744) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap_or_else (line 244) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::xor (line 544) ... ignored [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap (line 206) ... FAILED [INFO] [stdout] test src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::expect (line 174) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap (line 206) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `COption` in this scope [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 3 | let x: COption<&str> = COption::None; [INFO] [stdout] | ^^^^^^^ help: an enum with a similar name exists: `Option` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/option.rs:593:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `COption` [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 3 | let x: COption<&str> = COption::None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `COption` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::expect (line 174) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `COption` in this scope [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 3 | let x: COption<&str> = COption::None; [INFO] [stdout] | ^^^^^^^ help: an enum with a similar name exists: `Option` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/option.rs:593:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `COption` [INFO] [stdout] --> src/solana_lib/solana_program/program_option.rs:175:24 [INFO] [stdout] | [INFO] [stdout] 3 | let x: COption<&str> = COption::None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `COption` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::expect (line 174) [INFO] [stdout] src/solana_lib/solana_program/program_option.rs - solana_lib::solana_program::program_option::COption::unwrap (line 206) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 34 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2a5695e08a0368cad8772bc1203707ea67208ac573d4df58f96e5824ae695af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a5695e08a0368cad8772bc1203707ea67208ac573d4df58f96e5824ae695af6", kill_on_drop: false }` [INFO] [stdout] 2a5695e08a0368cad8772bc1203707ea67208ac573d4df58f96e5824ae695af6