[INFO] cloning repository https://github.com/NW12/solana-defi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NW12/solana-defi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNW12%2Fsolana-defi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNW12%2Fsolana-defi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e46635a464281d3f50da752a5cd58229bccc91b9 [INFO] testing NW12/solana-defi/e46635a464281d3f50da752a5cd58229bccc91b9 against 1.81.0 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNW12%2Fsolana-defi" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NW12/solana-defi on toolchain 1.81.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.81.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NW12/solana-defi [INFO] finished tweaking git repo https://github.com/NW12/solana-defi [INFO] tweaked toml for git repo https://github.com/NW12/solana-defi written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NW12/solana-defi 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.81.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded solana-logger v1.14.17 [INFO] [stderr] Downloaded solana-frozen-abi v1.14.17 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.14.17 [INFO] [stderr] Downloaded solana-sdk-macro v1.14.17 [INFO] [stderr] Downloaded pyth-sdk v0.7.0 [INFO] [stderr] Downloaded pyth-sdk-solana v0.7.2 [INFO] [stderr] Downloaded solana-sdk v1.14.17 [INFO] [stderr] Downloaded solana-program v1.14.17 [INFO] [stderr] Downloaded solana-zk-token-sdk v1.14.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6550160a27c412bdf1acd5fb83963093c782eb2308d028bf52ec18705db27ac0 [INFO] running `Command { std: "docker" "start" "-a" "6550160a27c412bdf1acd5fb83963093c782eb2308d028bf52ec18705db27ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6550160a27c412bdf1acd5fb83963093c782eb2308d028bf52ec18705db27ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6550160a27c412bdf1acd5fb83963093c782eb2308d028bf52ec18705db27ac0", kill_on_drop: false }` [INFO] [stdout] 6550160a27c412bdf1acd5fb83963093c782eb2308d028bf52ec18705db27ac0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 949f6006f279326ba19d4d18c37239c6ea5b8aeae9c5262067194cf66e6806e7 [INFO] running `Command { std: "docker" "start" "-a" "949f6006f279326ba19d4d18c37239c6ea5b8aeae9c5262067194cf66e6806e7", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.56 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde_derive v1.0.160 [INFO] [stderr] Compiling serde v1.0.160 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling libc v0.2.142 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling cpufeatures v0.2.7 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling semver v1.0.17 [INFO] [stderr] Compiling anyhow v1.0.70 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.84 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling bumpalo v3.12.1 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.14.17 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling blake3 v1.3.3 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling keccak v0.1.3 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.84 [INFO] [stderr] Compiling solana-frozen-abi v1.14.17 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling constant_time_eq v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.84 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.84 [INFO] [stderr] Compiling bytemuck_derive v1.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling solana-program v1.14.17 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling regex-syntax v0.7.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling winnow v0.4.1 [INFO] [stderr] Compiling toml_datetime v0.6.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.84 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.14.17 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling ed25519 v1.5.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling toml_edit v0.19.8 [INFO] [stderr] Compiling regex v1.8.1 [INFO] [stderr] Compiling solana-sdk v1.14.17 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling assert_matches v1.5.0 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling schemars v0.8.12 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling solana-logger v1.14.17 [INFO] [stderr] Compiling schemars_derive v0.8.12 [INFO] [stderr] Compiling dyn-clone v1.0.11 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling serde_bytes v0.11.9 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling pbkdf2 v0.4.0 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling tiny-bip39 v0.8.2 [INFO] [stderr] Compiling sha3 v0.10.7 [INFO] [stderr] Compiling anchor-syn v0.26.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling aes-gcm-siv v0.10.3 [INFO] [stderr] Compiling pyth-sdk v0.7.0 [INFO] [stderr] Compiling anchor-attribute-interface v0.26.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.26.0 [INFO] [stderr] Compiling anchor-attribute-error v0.26.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.26.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.26.0 [INFO] [stderr] Compiling anchor-attribute-account v0.26.0 [INFO] [stderr] Compiling anchor-attribute-event v0.26.0 [INFO] [stderr] Compiling anchor-attribute-program v0.26.0 [INFO] [stderr] Compiling anchor-attribute-state v0.26.0 [INFO] [stderr] Compiling spl-memo v3.0.1 [INFO] [stderr] Compiling spl-token v3.5.0 [INFO] [stderr] Compiling anchor-lang v0.26.0 [INFO] [stderr] Compiling pyth-sdk-solana v0.7.2 [INFO] [stderr] Compiling solana-zk-token-sdk v1.14.17 [INFO] [stderr] Compiling spl-token-2022 v0.6.1 [INFO] [stderr] Compiling spl-token-2022 v0.5.0 [INFO] [stderr] Compiling spl-associated-token-account v1.1.3 [INFO] [stderr] Compiling anchor-spl v0.26.0 [INFO] [stderr] Compiling defi v0.1.0 (/opt/rustwide/workdir/programs/defi) [INFO] [stdout] warning: unused imports: `native_token::LAMPORTS_PER_SOL`, `program::invoke`, and `system_instruction` [INFO] [stdout] --> programs/defi/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | native_token::LAMPORTS_PER_SOL, program::invoke, system_instruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyth_sdk_solana::load_price_feed_from_account_info` [INFO] [stdout] --> programs/defi/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyth_sdk_solana::load_price_feed_from_account_info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spl_associated_token_account::get_associated_token_address` [INFO] [stdout] --> programs/defi/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use spl_associated_token_account::get_associated_token_address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/defi/src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lp_mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | lp_mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lp_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> programs/defi/src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let user = &mut _ctx.accounts.user; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `programAccount` [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_programAccount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | program_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | borrow_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_count` [INFO] [stdout] --> programs/defi/src/lib.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | borrow_count: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_total_borrowed_amount` [INFO] [stdout] --> programs/defi/src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let user_mint_total_borrowed_amount = _ctx.accounts.user_mint_profile.total_borrowed_amount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_total_borrowed_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sol_usd` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const sol_usd: &str = "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `SOL_USD` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `receipt_token` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub const receipt_token: &str = "DAYN3qFmf2q3PpGHVWKiXi7tthgahXfjDkzJno9tF2ox"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RECEIPT_TOKEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let userMintProfile = &mut ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `programAccount` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `program_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let userProfile = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let userMintProfile = &mut _ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let userProfile: &mut Account<'_, UserProfile> = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [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" "949f6006f279326ba19d4d18c37239c6ea5b8aeae9c5262067194cf66e6806e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "949f6006f279326ba19d4d18c37239c6ea5b8aeae9c5262067194cf66e6806e7", kill_on_drop: false }` [INFO] [stdout] 949f6006f279326ba19d4d18c37239c6ea5b8aeae9c5262067194cf66e6806e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54b4aaa4b3b9e9ba816cd4d55f5efc0d13988e5a46698f416ab0a8593c3cbf51 [INFO] running `Command { std: "docker" "start" "-a" "54b4aaa4b3b9e9ba816cd4d55f5efc0d13988e5a46698f416ab0a8593c3cbf51", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stdout] warning: unused imports: `native_token::LAMPORTS_PER_SOL`, `program::invoke`, and `system_instruction` [INFO] [stdout] --> programs/defi/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | native_token::LAMPORTS_PER_SOL, program::invoke, system_instruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyth_sdk_solana::load_price_feed_from_account_info` [INFO] [stdout] --> programs/defi/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyth_sdk_solana::load_price_feed_from_account_info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spl_associated_token_account::get_associated_token_address` [INFO] [stdout] --> programs/defi/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use spl_associated_token_account::get_associated_token_address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/defi/src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lp_mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | lp_mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lp_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> programs/defi/src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let user = &mut _ctx.accounts.user; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `programAccount` [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_programAccount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | program_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | borrow_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_count` [INFO] [stdout] --> programs/defi/src/lib.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | borrow_count: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_total_borrowed_amount` [INFO] [stdout] --> programs/defi/src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let user_mint_total_borrowed_amount = _ctx.accounts.user_mint_profile.total_borrowed_amount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_total_borrowed_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sol_usd` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const sol_usd: &str = "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `SOL_USD` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `receipt_token` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub const receipt_token: &str = "DAYN3qFmf2q3PpGHVWKiXi7tthgahXfjDkzJno9tF2ox"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RECEIPT_TOKEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let userMintProfile = &mut ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `programAccount` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `program_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let userProfile = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let userMintProfile = &mut _ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling defi v0.1.0 (/opt/rustwide/workdir/programs/defi) [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let userProfile: &mut Account<'_, UserProfile> = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `native_token::LAMPORTS_PER_SOL`, `program::invoke`, and `system_instruction` [INFO] [stdout] --> programs/defi/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | native_token::LAMPORTS_PER_SOL, program::invoke, system_instruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyth_sdk_solana::load_price_feed_from_account_info` [INFO] [stdout] --> programs/defi/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyth_sdk_solana::load_price_feed_from_account_info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spl_associated_token_account::get_associated_token_address` [INFO] [stdout] --> programs/defi/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use spl_associated_token_account::get_associated_token_address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/defi/src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lp_mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | lp_mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lp_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_lp_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | program_lp_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> programs/defi/src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let user = &mut _ctx.accounts.user; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `programAccount` [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_programAccount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_bag_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | program_bag_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_bag_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | borrow_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_count` [INFO] [stdout] --> programs/defi/src/lib.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | borrow_count: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrow_mint_` [INFO] [stdout] --> programs/defi/src/lib.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | borrow_mint_: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_total_borrowed_amount` [INFO] [stdout] --> programs/defi/src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let user_mint_total_borrowed_amount = _ctx.accounts.user_mint_profile.total_borrowed_amount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_total_borrowed_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint_address` [INFO] [stdout] --> programs/defi/src/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | mint_address: Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | user_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_mint_profile_bump` [INFO] [stdout] --> programs/defi/src/lib.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | user_mint_profile_bump: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sol_usd` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const sol_usd: &str = "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `SOL_USD` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `receipt_token` should have an upper case name [INFO] [stdout] --> programs/defi/src/lib.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub const receipt_token: &str = "DAYN3qFmf2q3PpGHVWKiXi7tthgahXfjDkzJno9tF2ox"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RECEIPT_TOKEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let userMintProfile = &mut ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `programAccount` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `program_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let userProfile = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMintProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let userMintProfile = &mut _ctx.accounts.user_mint_profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfile` should have a snake case name [INFO] [stdout] --> programs/defi/src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let userProfile: &mut Account<'_, UserProfile> = &mut _ctx.accounts.user_profile; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.29s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [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" "54b4aaa4b3b9e9ba816cd4d55f5efc0d13988e5a46698f416ab0a8593c3cbf51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54b4aaa4b3b9e9ba816cd4d55f5efc0d13988e5a46698f416ab0a8593c3cbf51", kill_on_drop: false }` [INFO] [stdout] 54b4aaa4b3b9e9ba816cd4d55f5efc0d13988e5a46698f416ab0a8593c3cbf51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f8ff5b1565af679dc551f6c7dfaab3e4aee3af1e5f67522aeec8cb3a885f124f [INFO] running `Command { std: "docker" "start" "-a" "f8ff5b1565af679dc551f6c7dfaab3e4aee3af1e5f67522aeec8cb3a885f124f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: unused imports: `native_token::LAMPORTS_PER_SOL`, `program::invoke`, and `system_instruction` [INFO] [stderr] --> programs/defi/src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | native_token::LAMPORTS_PER_SOL, program::invoke, system_instruction, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `pyth_sdk_solana::load_price_feed_from_account_info` [INFO] [stderr] --> programs/defi/src/lib.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use pyth_sdk_solana::load_price_feed_from_account_info; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `spl_associated_token_account::get_associated_token_address` [INFO] [stderr] --> programs/defi/src/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use spl_associated_token_account::get_associated_token_address; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> programs/defi/src/lib.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | ctx: Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lp_mint_address` [INFO] [stderr] --> programs/defi/src/lib.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | lp_mint_address: Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lp_mint_address` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `program_lp_bag_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | program_lp_bag_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `program_lp_bag_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | program_lp_bag_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_lp_bag_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user` [INFO] [stderr] --> programs/defi/src/lib.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | let user = &mut _ctx.accounts.user; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `programAccount` [INFO] [stderr] --> programs/defi/src/lib.rs:79:13 [INFO] [stderr] | [INFO] [stderr] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_programAccount` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `program_bag_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:72:9 [INFO] [stderr] | [INFO] [stderr] 72 | program_bag_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_bag_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 74 | user_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | user_mint_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `borrow_mint_` [INFO] [stderr] --> programs/defi/src/lib.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | borrow_mint_: Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:140:9 [INFO] [stderr] | [INFO] [stderr] 140 | user_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 141 | user_mint_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `borrow_mint_` [INFO] [stderr] --> programs/defi/src/lib.rs:207:9 [INFO] [stderr] | [INFO] [stderr] 207 | borrow_mint_: Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `borrow_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | borrow_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:210:9 [INFO] [stderr] | [INFO] [stderr] 210 | user_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | user_mint_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `borrow_count` [INFO] [stderr] --> programs/defi/src/lib.rs:212:9 [INFO] [stderr] | [INFO] [stderr] 212 | borrow_count: String, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_count` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `borrow_mint_` [INFO] [stderr] --> programs/defi/src/lib.rs:252:9 [INFO] [stderr] | [INFO] [stderr] 252 | borrow_mint_: Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow_mint_` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:254:9 [INFO] [stderr] | [INFO] [stderr] 254 | user_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:255:9 [INFO] [stderr] | [INFO] [stderr] 255 | user_mint_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_total_borrowed_amount` [INFO] [stderr] --> programs/defi/src/lib.rs:318:13 [INFO] [stderr] | [INFO] [stderr] 318 | let user_mint_total_borrowed_amount = _ctx.accounts.user_mint_profile.total_borrowed_amount; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_total_borrowed_amount` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mint_address` [INFO] [stderr] --> programs/defi/src/lib.rs:301:9 [INFO] [stderr] | [INFO] [stderr] 301 | mint_address: Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:302:9 [INFO] [stderr] | [INFO] [stderr] 302 | user_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_mint_profile_bump` [INFO] [stderr] --> programs/defi/src/lib.rs:303:9 [INFO] [stderr] | [INFO] [stderr] 303 | user_mint_profile_bump: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_mint_profile_bump` [INFO] [stderr] [INFO] [stderr] warning: constant `sol_usd` should have an upper case name [INFO] [stderr] --> programs/defi/src/lib.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | pub const sol_usd: &str = "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper case: `SOL_USD` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `receipt_token` should have an upper case name [INFO] [stderr] --> programs/defi/src/lib.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | pub const receipt_token: &str = "DAYN3qFmf2q3PpGHVWKiXi7tthgahXfjDkzJno9tF2ox"; [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RECEIPT_TOKEN` [INFO] [stderr] [INFO] [stderr] warning: variable `userMintProfile` should have a snake case name [INFO] [stderr] --> programs/defi/src/lib.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | let userMintProfile = &mut ctx.accounts.user_mint_profile; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `programAccount` should have a snake case name [INFO] [stderr] --> programs/defi/src/lib.rs:79:13 [INFO] [stderr] | [INFO] [stderr] 79 | let programAccount = &mut _ctx.accounts.program_mint_token_bag; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `program_account` [INFO] [stderr] [INFO] [stderr] warning: variable `userProfile` should have a snake case name [INFO] [stderr] --> programs/defi/src/lib.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | let userProfile = &mut _ctx.accounts.user_profile; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stderr] [INFO] [stderr] warning: variable `userMintProfile` should have a snake case name [INFO] [stderr] --> programs/defi/src/lib.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | let userMintProfile = &mut _ctx.accounts.user_mint_profile; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_mint_profile` [INFO] [stderr] [INFO] [stderr] warning: variable `userProfile` should have a snake case name [INFO] [stderr] --> programs/defi/src/lib.rs:145:13 [INFO] [stderr] | [INFO] [stderr] 145 | let userProfile: &mut Account<'_, UserProfile> = &mut _ctx.accounts.user_profile; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile` [INFO] [stderr] [INFO] [stderr] warning: `defi` (lib) generated 34 warnings (run `cargo fix --lib -p defi` to apply 3 suggestions) [INFO] [stderr] warning: `defi` (lib test) generated 34 warnings (34 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [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/defi-62ab758a268280be) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_id ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests defi [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f8ff5b1565af679dc551f6c7dfaab3e4aee3af1e5f67522aeec8cb3a885f124f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8ff5b1565af679dc551f6c7dfaab3e4aee3af1e5f67522aeec8cb3a885f124f", kill_on_drop: false }` [INFO] [stdout] f8ff5b1565af679dc551f6c7dfaab3e4aee3af1e5f67522aeec8cb3a885f124f