[INFO] cloning repository https://github.com/mithraiclabs/serum-remote [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mithraiclabs/serum-remote" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmithraiclabs%2Fserum-remote", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmithraiclabs%2Fserum-remote'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 347f1dd272715d00bbbe9ab185676b6b2ea0ab53 [INFO] testing mithraiclabs/serum-remote against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmithraiclabs%2Fserum-remote" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mithraiclabs/serum-remote on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mithraiclabs/serum-remote [INFO] finished tweaking git repo https://github.com/mithraiclabs/serum-remote [INFO] tweaked toml for git repo https://github.com/mithraiclabs/serum-remote written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mithraiclabs/serum-remote already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded solana-sdk-macro v1.14.13 [INFO] [stderr] Downloaded solana-logger v1.14.13 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.14.13 [INFO] [stderr] Downloaded solana-frozen-abi v1.14.13 [INFO] [stderr] Downloaded anchor-spl v0.26.0 [INFO] [stderr] Downloaded solana-sdk v1.14.13 [INFO] [stderr] Downloaded solana-program v1.14.13 [INFO] [stderr] Downloaded solana-zk-token-sdk v1.14.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a46bb40e90de0e6acf32ca02c0fd4606ffec3222db4f1f171d49faaa4a2646a [INFO] running `Command { std: "docker" "start" "-a" "2a46bb40e90de0e6acf32ca02c0fd4606ffec3222db4f1f171d49faaa4a2646a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a46bb40e90de0e6acf32ca02c0fd4606ffec3222db4f1f171d49faaa4a2646a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a46bb40e90de0e6acf32ca02c0fd4606ffec3222db4f1f171d49faaa4a2646a", kill_on_drop: false }` [INFO] [stdout] 2a46bb40e90de0e6acf32ca02c0fd4606ffec3222db4f1f171d49faaa4a2646a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac371db4de511f4389f896feb7835999e81b1430f90da70cf9035b02202351ba [INFO] running `Command { std: "docker" "start" "-a" "ac371db4de511f4389f896feb7835999e81b1430f90da70cf9035b02202351ba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling semver v1.0.7 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.83 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.14.13 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling solana-frozen-abi v1.14.13 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.83 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling ed25519 v1.5.3 [INFO] [stderr] Compiling solana-sdk v1.14.13 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling memmap2 v0.5.3 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling assert_matches v1.5.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling alloc-traits v0.1.1 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling safe-transmute v0.11.2 [INFO] [stderr] Compiling without-alloc v0.2.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling solana-program v1.14.13 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling field-offset v0.3.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling solana-logger v1.14.13 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.83 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling zeroize_derive v1.3.3 [INFO] [stderr] Compiling bytemuck_derive v1.3.0 [INFO] [stderr] Compiling solana-sdk-macro v1.14.13 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling enumflags2_derive v0.6.4 [INFO] [stderr] Compiling enum_dispatch v0.3.9 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.83 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling enumflags2 v0.6.4 [INFO] [stderr] Compiling bytemuck v1.12.3 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.83 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling pbkdf2 v0.4.0 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling anchor-syn v0.26.0 [INFO] [stderr] Compiling tiny-bip39 v0.8.2 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling aes-gcm-siv v0.10.3 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Compiling anchor-attribute-state v0.26.0 [INFO] [stderr] Compiling anchor-attribute-error v0.26.0 [INFO] [stderr] Compiling anchor-attribute-program v0.26.0 [INFO] [stderr] Compiling anchor-attribute-interface v0.26.0 [INFO] [stderr] Compiling anchor-attribute-event v0.26.0 [INFO] [stderr] Compiling anchor-attribute-account v0.26.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.26.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.26.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.26.0 [INFO] [stderr] Compiling spl-token v3.5.0 [INFO] [stderr] Compiling spl-memo v3.0.1 [INFO] [stderr] Compiling anchor-lang v0.26.0 [INFO] [stderr] Compiling serum_dex v0.4.0 [INFO] [stderr] Compiling solana-zk-token-sdk v1.14.13 [INFO] [stderr] Compiling spl-token-2022 v0.5.0 [INFO] [stderr] Compiling spl-associated-token-account v1.1.2 [INFO] [stderr] Compiling anchor-spl v0.26.0 [INFO] [stderr] Compiling poseidon v0.1.0 (/opt/rustwide/workdir/programs/poseidon) [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fees::*` [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use fees::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the most public imported item is `pub(crate)` [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leg::*` [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assertion_error` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serum_dex-0.4.0/src/error.rs:137:22 [INFO] [stdout] | [INFO] [stdout] 137 | macro_rules! assertion_error { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade_v2.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy_v2.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim_v2.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/settle_funds.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> programs/poseidon/src/instructions/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use bounded_trade::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 15 | pub use settle_funds::*; [INFO] [stdout] | --------------- but the name `handler` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stable` is never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/dex.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum CurveType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 42 | ConstantProduct, [INFO] [stdout] 43 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurveType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) enum AmmInstruction { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 88 | Initialize(InitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | Reserved0, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | Deposit(DepositInstruction), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | Withdraw(WithdrawInstruction), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 134 | [INFO] [stdout] 135 | Reserved1, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | Reserved2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | [INFO] [stdout] 139 | Reserved3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 140 | [INFO] [stdout] 141 | Reserved4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | PreInitialize(PreInitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | SwapBaseOut(SwapInstructionBaseOut), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | [INFO] [stdout] 189 | Reserved5, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AmmInstruction` 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: associated functions `unpack`, `unpack_u8`, and `unpack_u64` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl AmmInstruction { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 193 | /// Unpacks a byte buffer into a [AmmInstruction](enum.AmmInstruction.html). [INFO] [stdout] 194 | pub fn unpack(input: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn unpack_u64(input: &[u8]) -> Result<(u64, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pre_initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | pub fn pre_initialize( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn initialize( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:429:8 [INFO] [stdout] | [INFO] [stdout] 429 | pub fn deposit( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `withdraw` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:483:8 [INFO] [stdout] | [INFO] [stdout] 483 | pub fn withdraw( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap_base_out` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 612 | pub fn swap_base_out( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `quantity` is never read [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OrderBookItem { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub quantity: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookItem` 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: associated function `simple_debug` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl OrderBookItem { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn simple_debug(items: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `order_id`, `set_quantity`, `owner`, `owner_slot`, and `client_order_id` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/slab.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl LeafNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 56 | #[inline] [INFO] [stdout] 57 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn order_id(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn set_quantity(&mut self, quantity: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn owner(&self) -> [u64; 4] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn owner_slot(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn client_order_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ONE`, `add`, `sub`, `div`, `from_int`, and `to_int` are never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 59 | impl U64F64 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 60 | const ONE: Self = U64F64(1 << 64); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub const fn add(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub const fn sub(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub const fn div(self, other: U64F64) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub const fn from_int(n: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn to_int(self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum FeeTier { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 111 | Base, [INFO] [stdout] 112 | SRM2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | SRM3, [INFO] [stdout] | ^^^^ [INFO] [stdout] 114 | SRM4, [INFO] [stdout] | ^^^^ [INFO] [stdout] 115 | SRM5, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | SRM6, [INFO] [stdout] | ^^^^ [INFO] [stdout] 117 | MSRM, [INFO] [stdout] | ^^^^ [INFO] [stdout] 118 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeeTier` 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 `remove_taker_fee` is never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl FeeTier { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn remove_taker_fee(self, pc_qty_incl_fee: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.83 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ac371db4de511f4389f896feb7835999e81b1430f90da70cf9035b02202351ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac371db4de511f4389f896feb7835999e81b1430f90da70cf9035b02202351ba", kill_on_drop: false }` [INFO] [stdout] ac371db4de511f4389f896feb7835999e81b1430f90da70cf9035b02202351ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b42089c86b84abca12b394b009cdd9d4154f3f42171f1e5729b9cef286d699e7 [INFO] running `Command { std: "docker" "start" "-a" "b42089c86b84abca12b394b009cdd9d4154f3f42171f1e5729b9cef286d699e7", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fees::*` [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use fees::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the most public imported item is `pub(crate)` [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leg::*` [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assertion_error` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serum_dex-0.4.0/src/error.rs:137:22 [INFO] [stdout] | [INFO] [stdout] 137 | macro_rules! assertion_error { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade_v2.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy_v2.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim_v2.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/settle_funds.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> programs/poseidon/src/instructions/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use bounded_trade::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 15 | pub use settle_funds::*; [INFO] [stdout] | --------------- but the name `handler` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stable` is never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/dex.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum CurveType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 42 | ConstantProduct, [INFO] [stdout] 43 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurveType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) enum AmmInstruction { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 88 | Initialize(InitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | Reserved0, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | Deposit(DepositInstruction), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | Withdraw(WithdrawInstruction), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 134 | [INFO] [stdout] 135 | Reserved1, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | Reserved2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | [INFO] [stdout] 139 | Reserved3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 140 | [INFO] [stdout] 141 | Reserved4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | PreInitialize(PreInitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | SwapBaseOut(SwapInstructionBaseOut), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | [INFO] [stdout] 189 | Reserved5, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AmmInstruction` 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: associated functions `unpack`, `unpack_u8`, and `unpack_u64` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl AmmInstruction { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 193 | /// Unpacks a byte buffer into a [AmmInstruction](enum.AmmInstruction.html). [INFO] [stdout] 194 | pub fn unpack(input: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn unpack_u64(input: &[u8]) -> Result<(u64, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pre_initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | pub fn pre_initialize( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn initialize( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:429:8 [INFO] [stdout] | [INFO] [stdout] 429 | pub fn deposit( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `withdraw` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:483:8 [INFO] [stdout] | [INFO] [stdout] 483 | pub fn withdraw( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap_base_out` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 612 | pub fn swap_base_out( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `quantity` is never read [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OrderBookItem { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub quantity: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookItem` 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: associated function `simple_debug` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl OrderBookItem { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn simple_debug(items: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `order_id`, `set_quantity`, `owner`, `owner_slot`, and `client_order_id` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/slab.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl LeafNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 56 | #[inline] [INFO] [stdout] 57 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn order_id(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn set_quantity(&mut self, quantity: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn owner(&self) -> [u64; 4] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn owner_slot(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn client_order_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ONE`, `add`, `sub`, `div`, `from_int`, and `to_int` are never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 59 | impl U64F64 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 60 | const ONE: Self = U64F64(1 << 64); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub const fn add(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub const fn sub(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub const fn div(self, other: U64F64) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub const fn from_int(n: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn to_int(self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum FeeTier { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 111 | Base, [INFO] [stdout] 112 | SRM2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | SRM3, [INFO] [stdout] | ^^^^ [INFO] [stdout] 114 | SRM4, [INFO] [stdout] | ^^^^ [INFO] [stdout] 115 | SRM5, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | SRM6, [INFO] [stdout] | ^^^^ [INFO] [stdout] 117 | MSRM, [INFO] [stdout] | ^^^^ [INFO] [stdout] 118 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeeTier` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling poseidon v0.1.0 (/opt/rustwide/workdir/programs/poseidon) [INFO] [stdout] warning: method `remove_taker_fee` is never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl FeeTier { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn remove_taker_fee(self, pc_qty_incl_fee: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fees::*` [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use fees::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the most public imported item is `pub(crate)` [INFO] [stdout] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leg::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assertion_error` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serum_dex-0.4.0/src/error.rs:137:22 [INFO] [stdout] | [INFO] [stdout] 137 | macro_rules! assertion_error { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/bounded_trade_v2.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/init_bounded_strategy_v2.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/reclaim_v2.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/instructions/settle_funds.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> programs/poseidon/src/instructions/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use bounded_trade::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 15 | pub use settle_funds::*; [INFO] [stdout] | --------------- but the name `handler` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stable` is never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/dex.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum CurveType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 42 | ConstantProduct, [INFO] [stdout] 43 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurveType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) enum AmmInstruction { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 88 | Initialize(InitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | Reserved0, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | Deposit(DepositInstruction), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | Withdraw(WithdrawInstruction), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 134 | [INFO] [stdout] 135 | Reserved1, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | Reserved2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | [INFO] [stdout] 139 | Reserved3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 140 | [INFO] [stdout] 141 | Reserved4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | PreInitialize(PreInitializeInstruction), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | SwapBaseOut(SwapInstructionBaseOut), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | [INFO] [stdout] 189 | Reserved5, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AmmInstruction` 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: associated functions `unpack`, `unpack_u8`, and `unpack_u64` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl AmmInstruction { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 193 | /// Unpacks a byte buffer into a [AmmInstruction](enum.AmmInstruction.html). [INFO] [stdout] 194 | pub fn unpack(input: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn unpack_u64(input: &[u8]) -> Result<(u64, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pre_initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | pub fn pre_initialize( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn initialize( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:429:8 [INFO] [stdout] | [INFO] [stdout] 429 | pub fn deposit( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `withdraw` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:483:8 [INFO] [stdout] | [INFO] [stdout] 483 | pub fn withdraw( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap_base_out` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 612 | pub fn swap_base_out( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `quantity` is never read [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OrderBookItem { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub quantity: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookItem` 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: associated function `simple_debug` is never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl OrderBookItem { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn simple_debug(items: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `order_id`, `set_quantity`, `owner`, `owner_slot`, and `client_order_id` are never used [INFO] [stdout] --> programs/poseidon/src/dexes/serum_v3/slab.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl LeafNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 56 | #[inline] [INFO] [stdout] 57 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn order_id(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn set_quantity(&mut self, quantity: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn owner(&self) -> [u64; 4] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn owner_slot(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn client_order_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ONE`, `add`, `sub`, `div`, `from_int`, and `to_int` are never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 59 | impl U64F64 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 60 | const ONE: Self = U64F64(1 << 64); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub const fn add(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub const fn sub(self, other: U64F64) -> U64F64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub const fn div(self, other: U64F64) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub const fn from_int(n: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn to_int(self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum FeeTier { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 111 | Base, [INFO] [stdout] 112 | SRM2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | SRM3, [INFO] [stdout] | ^^^^ [INFO] [stdout] 114 | SRM4, [INFO] [stdout] | ^^^^ [INFO] [stdout] 115 | SRM5, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | SRM6, [INFO] [stdout] | ^^^^ [INFO] [stdout] 117 | MSRM, [INFO] [stdout] | ^^^^ [INFO] [stdout] 118 | Stable, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeeTier` 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 `remove_taker_fee` is never used [INFO] [stdout] --> programs/poseidon/src/serum_utils.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl FeeTier { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn remove_taker_fee(self, pc_qty_incl_fee: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.63s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.83 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "b42089c86b84abca12b394b009cdd9d4154f3f42171f1e5729b9cef286d699e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b42089c86b84abca12b394b009cdd9d4154f3f42171f1e5729b9cef286d699e7", kill_on_drop: false }` [INFO] [stdout] b42089c86b84abca12b394b009cdd9d4154f3f42171f1e5729b9cef286d699e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 82d559097ccc0b9da8f791be1be1ddce8f923dccbf3487fce71b8089a3e3316c [INFO] running `Command { std: "docker" "start" "-a" "82d559097ccc0b9da8f791be1be1ddce8f923dccbf3487fce71b8089a3e3316c", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stderr] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `solana` [INFO] [stderr] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stderr] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `solana` [INFO] [stderr] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `fees::*` [INFO] [stderr] --> programs/poseidon/src/dexes/serum_v3/mod.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub use fees::*; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough [INFO] [stderr] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub use leg::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the most public imported item is `pub(crate)` [INFO] [stderr] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub use leg::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] = help: reduce the glob import's visibility or increase visibility of imported items [INFO] [stderr] [INFO] [stderr] warning: unused import: `leg::*` [INFO] [stderr] --> programs/poseidon/src/dexes/mod.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub use leg::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/bounded_trade.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `assertion_error` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serum_dex-0.4.0/src/error.rs:137:22 [INFO] [stderr] | [INFO] [stderr] 137 | macro_rules! assertion_error { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/bounded_trade_v2.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/init_bounded_strategy.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/init_bounded_strategy_v2.rs:10:10 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/reclaim.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/reclaim_v2.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/instructions/settle_funds.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> programs/poseidon/src/instructions/mod.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use bounded_trade::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here [INFO] [stderr] ... [INFO] [stderr] 15 | pub use settle_funds::*; [INFO] [stderr] | --------------- but the name `handler` in the value namespace is also re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/poseidon/src/lib.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `devnet`, `localnet`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant `Stable` is never constructed [INFO] [stderr] --> programs/poseidon/src/dexes/dex.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 41 | pub enum CurveType { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 42 | ConstantProduct, [INFO] [stderr] 43 | Stable, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CurveType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 71 | pub(crate) enum AmmInstruction { [INFO] [stderr] | -------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 88 | Initialize(InitializeInstruction), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 89 | [INFO] [stderr] 90 | Reserved, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 91 | [INFO] [stderr] 92 | Reserved0, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | Deposit(DepositInstruction), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 133 | Withdraw(WithdrawInstruction), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 134 | [INFO] [stderr] 135 | Reserved1, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 136 | [INFO] [stderr] 137 | Reserved2, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 138 | [INFO] [stderr] 139 | Reserved3, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 140 | [INFO] [stderr] 141 | Reserved4, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | PreInitialize(PreInitializeInstruction), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 187 | SwapBaseOut(SwapInstructionBaseOut), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 188 | [INFO] [stderr] 189 | Reserved5, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AmmInstruction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `unpack`, `unpack_u8`, and `unpack_u64` are never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:194:12 [INFO] [stderr] | [INFO] [stderr] 192 | impl AmmInstruction { [INFO] [stderr] | ------------------- associated functions in this implementation [INFO] [stderr] 193 | /// Unpacks a byte buffer into a [AmmInstruction](enum.AmmInstruction.html). [INFO] [stderr] 194 | pub fn unpack(input: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 245 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 259 | fn unpack_u64(input: &[u8]) -> Result<(u64, &[u8]), ProgramError> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pre_initialize` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:324:8 [INFO] [stderr] | [INFO] [stderr] 324 | pub fn pre_initialize( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `initialize` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:372:8 [INFO] [stderr] | [INFO] [stderr] 372 | pub fn initialize( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `deposit` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:429:8 [INFO] [stderr] | [INFO] [stderr] 429 | pub fn deposit( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `withdraw` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:483:8 [INFO] [stderr] | [INFO] [stderr] 483 | pub fn withdraw( [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `swap_base_out` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/raydium/amm_instructions.rs:612:8 [INFO] [stderr] | [INFO] [stderr] 612 | pub fn swap_base_out( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `quantity` is never read [INFO] [stderr] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct OrderBookItem { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 8 | pub quantity: u64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OrderBookItem` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `simple_debug` is never used [INFO] [stderr] --> programs/poseidon/src/dexes/serum_v3/order_book_item.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl OrderBookItem { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 16 | pub fn simple_debug(items: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `order_id`, `set_quantity`, `owner`, `owner_slot`, and `client_order_id` are never used [INFO] [stderr] --> programs/poseidon/src/dexes/serum_v3/slab.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 55 | impl LeafNode { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 56 | #[inline] [INFO] [stderr] 57 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub fn order_id(&self) -> u128 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub fn set_quantity(&mut self, quantity: u64) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 98 | pub fn owner(&self) -> [u64; 4] { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub fn owner_slot(&self) -> u8 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 108 | pub fn client_order_id(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `ONE`, `add`, `sub`, `div`, `from_int`, and `to_int` are never used [INFO] [stderr] --> programs/poseidon/src/serum_utils.rs:60:11 [INFO] [stderr] | [INFO] [stderr] 59 | impl U64F64 { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 60 | const ONE: Self = U64F64(1 << 64); [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | pub const fn add(self, other: U64F64) -> U64F64 { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | pub const fn sub(self, other: U64F64) -> U64F64 { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub const fn div(self, other: U64F64) -> u128 { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub const fn from_int(n: u64) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 98 | pub fn to_int(self) -> u64 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> programs/poseidon/src/serum_utils.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 110 | pub enum FeeTier { [INFO] [stderr] | ------- variants in this enum [INFO] [stderr] 111 | Base, [INFO] [stderr] 112 | SRM2, [INFO] [stderr] | ^^^^ [INFO] [stderr] 113 | SRM3, [INFO] [stderr] | ^^^^ [INFO] [stderr] 114 | SRM4, [INFO] [stderr] | ^^^^ [INFO] [stderr] 115 | SRM5, [INFO] [stderr] | ^^^^ [INFO] [stderr] 116 | SRM6, [INFO] [stderr] | ^^^^ [INFO] [stderr] 117 | MSRM, [INFO] [stderr] | ^^^^ [INFO] [stderr] 118 | Stable, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FeeTier` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `remove_taker_fee` is never used [INFO] [stderr] --> programs/poseidon/src/serum_utils.rs:144:12 [INFO] [stderr] | [INFO] [stderr] 121 | impl FeeTier { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 144 | pub fn remove_taker_fee(self, pc_qty_incl_fee: u64) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `poseidon` (lib) generated 31 warnings (run `cargo fix --lib -p poseidon` to apply 2 suggestions) [INFO] [stderr] warning: `poseidon` (lib test) generated 30 warnings (30 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.83 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/poseidon-0a8dd88a92a57256) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test dexes::open_book_dex::test_id ... ok [INFO] [stdout] test dexes::route::test::test_simple_price_1 ... ok [INFO] [stdout] test dexes::route::test::test_simple_price_3 ... ok [INFO] [stdout] test dexes::serum_v3::fees::stable_markets::usdt_usdc::test_id ... ok [INFO] [stdout] test dexes::raydium::amm_instructions::test_id ... ok [INFO] [stdout] test address_lut_program::test_id ... ok [INFO] [stdout] test test_id ... ok [INFO] [stdout] test dexes::raydium::test_id ... ok [INFO] [stdout] test dexes::route::test::test_simple_price_2 ... ok [INFO] [stdout] test dexes::route::test::test_simple_price_4 ... ok [INFO] [stderr] Doc-tests poseidon [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test programs/poseidon/src/dexes/serum_v3/slab.rs - dexes::serum_v3::slab::Slab::new (line 166) - compile fail ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "82d559097ccc0b9da8f791be1be1ddce8f923dccbf3487fce71b8089a3e3316c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82d559097ccc0b9da8f791be1be1ddce8f923dccbf3487fce71b8089a3e3316c", kill_on_drop: false }` [INFO] [stdout] 82d559097ccc0b9da8f791be1be1ddce8f923dccbf3487fce71b8089a3e3316c