[INFO] cloning repository https://github.com/raydiusr/stable-swap [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raydiusr/stable-swap" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraydiusr%2Fstable-swap", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraydiusr%2Fstable-swap'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8eb0a52ce1de12051fab0e8b66b6f30479b1962d [INFO] checking raydiusr/stable-swap/8eb0a52ce1de12051fab0e8b66b6f30479b1962d against master#568b11762723b001bfa693d0f21c5dad01d4e813 for pr-149518 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraydiusr%2Fstable-swap" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/raydiusr/stable-swap [INFO] finished tweaking git repo https://github.com/raydiusr/stable-swap [INFO] tweaked toml for git repo https://github.com/raydiusr/stable-swap written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/raydiusr/stable-swap on toolchain 568b11762723b001bfa693d0f21c5dad01d4e813 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/raydiusr/stable-swap 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" "+568b11762723b001bfa693d0f21c5dad01d4e813" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded env_logger v0.8.2 [INFO] [stderr] Downloaded humantime v2.0.1 [INFO] [stderr] Downloaded solana-frozen-abi v1.5.1 [INFO] [stderr] Downloaded solana-sdk-macro v1.5.1 [INFO] [stderr] Downloaded solana-sdk v1.5.1 [INFO] [stderr] Downloaded rand_xorshift v0.2.0 [INFO] [stderr] Downloaded remove_dir_all v0.5.0 [INFO] [stderr] Downloaded spl-token v3.0.1 [INFO] [stderr] Downloaded pyo3-derive-backend v0.12.4 [INFO] [stderr] Downloaded solana-crate-features v1.5.1 [INFO] [stderr] Downloaded pin-project-internal v1.0.3 [INFO] [stderr] Downloaded pin-project v1.0.3 [INFO] [stderr] Downloaded webpki v0.21.2 [INFO] [stderr] Downloaded cc v1.0.49 [INFO] [stderr] Downloaded solana-program v1.5.1 [INFO] [stderr] Downloaded pin-project-lite v0.2.1 [INFO] [stderr] Downloaded indoc-impl v0.3.6 [INFO] [stderr] Downloaded pyo3 v0.12.4 [INFO] [stderr] Downloaded http v0.2.2 [INFO] [stderr] Downloaded indoc v0.3.6 [INFO] [stderr] Downloaded ctor v0.1.17 [INFO] [stderr] Downloaded proptest v0.10.1 [INFO] [stderr] Downloaded inventory-impl v0.1.10 [INFO] [stderr] Downloaded inventory v0.1.10 [INFO] [stderr] Downloaded pyo3cls v0.12.4 [INFO] [stderr] Downloaded assert_matches v1.4.0 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.5.1 [INFO] [stderr] Downloaded ring v0.16.12 [INFO] [stderr] Downloaded solana-logger v1.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c0d98154dc4664652ce71f39ff5becac899016d45e6d0e3761a8afa48525829 [INFO] running `Command { std: "docker" "start" "-a" "4c0d98154dc4664652ce71f39ff5becac899016d45e6d0e3761a8afa48525829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c0d98154dc4664652ce71f39ff5becac899016d45e6d0e3761a8afa48525829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c0d98154dc4664652ce71f39ff5becac899016d45e6d0e3761a8afa48525829", kill_on_drop: false }` [INFO] [stdout] 4c0d98154dc4664652ce71f39ff5becac899016d45e6d0e3761a8afa48525829 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32a8c7acc2ecb00cb5e6a7aaaa990a75f3ff571b9fc8a57516b0652085884242 [INFO] running `Command { std: "docker" "start" "-a" "32a8c7acc2ecb00cb5e6a7aaaa990a75f3ff571b9fc8a57516b0652085884242", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures v0.1.30 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking crossbeam-utils v0.7.2 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking pin-project-lite v0.2.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.5.1 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Checking humantime v2.0.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling cc v1.0.49 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling solana-frozen-abi v1.5.1 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling ring v0.16.12 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Compiling solana-program v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking bs58 v0.3.1 [INFO] [stderr] Checking unicode-xid v0.1.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking unicode-xid v0.2.1 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Checking env_logger v0.8.2 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking smallvec v1.6.0 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking signature v1.3.0 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Compiling inventory v0.1.10 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking solana-logger v1.5.1 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking quote v0.6.13 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking remove_dir_all v0.5.0 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling pyo3 v0.12.4 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling solana-sdk v1.5.1 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking bit-set v0.5.2 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking uint v0.8.5 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking rand_xorshift v0.2.0 [INFO] [stderr] Checking pbkdf2 v0.3.0 [INFO] [stderr] Checking assert_matches v1.4.0 [INFO] [stderr] Checking proptest v0.10.1 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking webpki v0.21.2 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking rustls v0.18.1 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pyo3-derive-backend v0.12.4 [INFO] [stderr] Compiling zeroize_derive v1.0.1 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling solana-sdk-macro v1.5.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling ghost v0.1.2 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Compiling inventory-impl v0.1.10 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking curve25519-dalek v2.1.0 [INFO] [stderr] Compiling ctor v0.1.17 [INFO] [stderr] Compiling derivative v2.1.3 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking indoc v0.3.6 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Compiling pyo3cls v0.12.4 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking tokio-rustls v0.14.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking sim v0.1.0 (/opt/rustwide/workdir/lib/sim) [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking bv v0.11.1 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking ed25519 v1.0.3 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking ed25519-dalek v1.0.0-pre.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling num_enum_derive v0.5.1 [INFO] [stderr] Checking num_enum v0.5.1 [INFO] [stderr] Checking spl-token v3.0.1 [INFO] [stderr] Checking spl-token-swap v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [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 macro `entrypoint` (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] --> src/entrypoint.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [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 macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SwapError` [INFO] [stdout] 9 | pub enum SwapError { [INFO] [stdout] | --------- `SwapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hyper-rustls v0.21.0 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking solana-crate-features v1.5.1 [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [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 macro `entrypoint` (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] --> src/entrypoint.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [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 macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SwapError` [INFO] [stdout] 9 | pub enum SwapError { [INFO] [stdout] | --------- `SwapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a module [INFO] [stdout] --> src/utils.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub mod test_utils { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a function [INFO] [stdout] --> src/utils.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn clock_account(ts: i64) -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a function [INFO] [stdout] --> src/utils.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn pubkey_rand() -> Pubkey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct [INFO] [stdout] --> src/utils.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct SwapAccountInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub nonce: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub authority_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub initial_amp_factor: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub target_amp_factor: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub swap_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub swap_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub pool_mint_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub pool_mint_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | pub pool_token_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub pool_token_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub token_a_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | pub token_a_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub token_a_mint_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub token_a_mint_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub token_b_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub token_b_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub token_b_mint_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | pub token_b_mint_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub admin_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub admin_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | pub admin_fee_a_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | pub admin_fee_a_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub admin_fee_b_key: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub admin_fee_b_account: Account, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a struct field [INFO] [stdout] --> src/utils.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub fees: Fees, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for an associated function [INFO] [stdout] --> src/utils.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | / pub fn new( [INFO] [stdout] 98 | | user_key: &Pubkey, [INFO] [stdout] 99 | | amp_factor: u64, [INFO] [stdout] 100 | | token_a_amount: u64, [INFO] [stdout] 101 | | token_b_amount: u64, [INFO] [stdout] 102 | | fees: Fees, [INFO] [stdout] 103 | | ) -> Self { [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn initialize_swap(&mut self) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / pub fn setup_token_accounts( [INFO] [stdout] 230 | | &mut self, [INFO] [stdout] 231 | | mint_owner: &Pubkey, [INFO] [stdout] 232 | | account_owner: &Pubkey, [INFO] [stdout] ... | [INFO] [stdout] 235 | | pool_amount: u64, [INFO] [stdout] 236 | | ) -> (Pubkey, Account, Pubkey, Account, Pubkey, Account) { [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | / pub fn swap( [INFO] [stdout] 321 | | &mut self, [INFO] [stdout] 322 | | user_key: &Pubkey, [INFO] [stdout] 323 | | user_source_key: &Pubkey, [INFO] [stdout] ... | [INFO] [stdout] 330 | | minimum_amount_out: u64, [INFO] [stdout] 331 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | / pub fn deposit( [INFO] [stdout] 394 | | &mut self, [INFO] [stdout] 395 | | depositor_key: &Pubkey, [INFO] [stdout] 396 | | depositor_token_a_key: &Pubkey, [INFO] [stdout] ... | [INFO] [stdout] 404 | | min_mint_amount: u64, [INFO] [stdout] 405 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | / pub fn withdraw( [INFO] [stdout] 476 | | &mut self, [INFO] [stdout] 477 | | user_key: &Pubkey, [INFO] [stdout] 478 | | pool_key: &Pubkey, [INFO] [stdout] ... | [INFO] [stdout] 486 | | minimum_b_amount: u64, [INFO] [stdout] 487 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:545:9 [INFO] [stdout] | [INFO] [stdout] 545 | / pub fn withdraw_one( [INFO] [stdout] 546 | | &mut self, [INFO] [stdout] 547 | | user_key: &Pubkey, [INFO] [stdout] 548 | | pool_key: &Pubkey, [INFO] [stdout] ... | [INFO] [stdout] 553 | | minimum_amount: u64, [INFO] [stdout] 554 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:633:9 [INFO] [stdout] | [INFO] [stdout] 633 | pub fn stop_ramp_a(&mut self, current_ts: i64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:651:9 [INFO] [stdout] | [INFO] [stdout] 651 | pub fn pause(&mut self) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:668:9 [INFO] [stdout] | [INFO] [stdout] 668 | pub fn unpause(&mut self) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:685:9 [INFO] [stdout] | [INFO] [stdout] 685 | / pub fn set_admin_fee_account( [INFO] [stdout] 686 | | &mut self, [INFO] [stdout] 687 | | new_admin_fee_key: &Pubkey, [INFO] [stdout] 688 | | new_admin_fee_account: &Account, [INFO] [stdout] 689 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:708:9 [INFO] [stdout] | [INFO] [stdout] 708 | pub fn apply_new_admin(&mut self, current_ts: i64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:726:9 [INFO] [stdout] | [INFO] [stdout] 726 | / pub fn commit_new_admin( [INFO] [stdout] 727 | | &mut self, [INFO] [stdout] 728 | | new_admin_key: &Pubkey, [INFO] [stdout] 729 | | current_ts: i64, [INFO] [stdout] 730 | | ) -> ProgramResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a method [INFO] [stdout] --> src/utils.rs:750:9 [INFO] [stdout] | [INFO] [stdout] 750 | pub fn set_new_fees(&mut self, new_fees: Fees) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a function [INFO] [stdout] --> src/utils.rs:819:5 [INFO] [stdout] | [INFO] [stdout] 819 | / pub fn do_process_instruction( [INFO] [stdout] 820 | | instruction: Instruction, [INFO] [stdout] 821 | | accounts: Vec<&mut Account>, [INFO] [stdout] 822 | | ) -> ProgramResult { [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a function [INFO] [stdout] --> src/utils.rs:874:5 [INFO] [stdout] | [INFO] [stdout] 874 | / pub fn mint_token( [INFO] [stdout] 875 | | program_id: &Pubkey, [INFO] [stdout] 876 | | mint_key: &Pubkey, [INFO] [stdout] 877 | | mut mint_account: &mut Account, [INFO] [stdout] ... | [INFO] [stdout] 880 | | amount: u64, [INFO] [stdout] 881 | | ) -> (Pubkey, Account) { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: missing documentation for a function [INFO] [stdout] --> src/utils.rs:925:5 [INFO] [stdout] | [INFO] [stdout] 925 | / pub fn create_mint( [INFO] [stdout] 926 | | program_id: &Pubkey, [INFO] [stdout] 927 | | authority_key: &Pubkey, [INFO] [stdout] 928 | | decimals: u8, [INFO] [stdout] 929 | | freeze_authority: Option<&Pubkey>, [INFO] [stdout] 930 | | ) -> (Pubkey, Account) { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spl-token-swap` (lib test) due to 46 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "32a8c7acc2ecb00cb5e6a7aaaa990a75f3ff571b9fc8a57516b0652085884242", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32a8c7acc2ecb00cb5e6a7aaaa990a75f3ff571b9fc8a57516b0652085884242", kill_on_drop: false }` [INFO] [stdout] 32a8c7acc2ecb00cb5e6a7aaaa990a75f3ff571b9fc8a57516b0652085884242