[INFO] cloning repository https://github.com/akshitvigg/anchor
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/akshitvigg/anchor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakshitvigg%2Fanchor", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakshitvigg%2Fanchor'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 27dcb39bcb353488d0715bc617ff9761c747ad98
[INFO] checking akshitvigg/anchor against try#4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7 for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakshitvigg%2Fanchor" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/akshitvigg/anchor
[INFO] finished tweaking git repo https://github.com/akshitvigg/anchor
[INFO] tweaked toml for git repo https://github.com/akshitvigg/anchor written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/akshitvigg/anchor on toolchain 4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/akshitvigg/anchor 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" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded proc-macro2 v1.0.97
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b
[INFO] running `Command { std: "docker" "start" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.97
[INFO] [stderr]    Compiling libc v0.2.175
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling winnow v0.7.12
[INFO] [stderr]    Compiling borsh v1.5.7
[INFO] [stderr]     Checking five8_core v0.1.2
[INFO] [stderr]     Checking bytemuck v1.23.2
[INFO] [stderr]     Checking solana-sanitize v2.2.1
[INFO] [stderr]     Checking solana-atomic-u64 v2.2.1
[INFO] [stderr]     Checking zeroize v1.8.1
[INFO] [stderr]     Checking solana-decode-error v2.3.0
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]    Compiling bs58 v0.5.1
[INFO] [stderr]    Compiling anyhow v1.0.99
[INFO] [stderr]    Compiling serde_json v1.0.142
[INFO] [stderr]     Checking five8 v0.2.1
[INFO] [stderr]     Checking five8_const v0.1.4
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]     Checking solana-msg v2.2.1
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling unicode-segmentation v1.12.0
[INFO] [stderr]     Checking solana-program-memory v2.3.1
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling cc v1.2.32
[INFO] [stderr]    Compiling thiserror v2.0.14
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking opaque-debug v0.3.1
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]     Checking solana-big-mod-exp v2.2.1
[INFO] [stderr]     Checking solana-native-token v2.3.0
[INFO] [stderr]     Checking sha2 v0.9.9
[INFO] [stderr]    Compiling libsecp256k1-core v0.2.2
[INFO] [stderr]     Checking solana-program-option v2.2.1
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling blake3 v1.8.2
[INFO] [stderr]    Compiling libsecp256k1-gen-genmult v0.2.1
[INFO] [stderr]    Compiling libsecp256k1-gen-ecmult v0.2.1
[INFO] [stderr]    Compiling libsecp256k1 v0.6.0
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking hashbrown v0.13.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling borsh-derive v1.5.7
[INFO] [stderr]    Compiling bytemuck_derive v1.10.1
[INFO] [stderr]    Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr]    Compiling solana-sdk-macro v2.2.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling thiserror-impl v2.0.14
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling borsh-derive-internal v0.10.4
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.10.4
[INFO] [stderr]    Compiling anchor-derive-space v0.31.1
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking solana-hash v2.3.0
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking solana-short-vec v2.2.1
[INFO] [stderr]     Checking solana-fee-calculator v2.2.1
[INFO] [stderr]     Checking bv v0.11.1
[INFO] [stderr]     Checking solana-serde-varint v2.2.2
[INFO] [stderr]     Checking solana-sha256-hasher v2.3.0
[INFO] [stderr]     Checking solana-keccak-hasher v2.2.1
[INFO] [stderr]     Checking solana-blake3-hasher v2.2.1
[INFO] [stderr]    Compiling toml v0.5.11
[INFO] [stderr]    Compiling anchor-lang-idl-spec v0.1.0
[INFO] [stderr]    Compiling anchor-syn v0.31.1
[INFO] [stderr]    Compiling anchor-lang-idl v0.1.2
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling borsh-derive v0.10.4
[INFO] [stderr]     Checking borsh v0.10.4
[INFO] [stderr]     Checking solana-pubkey v2.4.0
[INFO] [stderr]     Checking solana-borsh v2.2.1
[INFO] [stderr]     Checking solana-instruction v2.3.0
[INFO] [stderr]     Checking solana-sdk-ids v2.2.1
[INFO] [stderr]     Checking solana-nonce v2.2.1
[INFO] [stderr]     Checking solana-sysvar-id v2.2.1
[INFO] [stderr]     Checking solana-program-error v2.2.2
[INFO] [stderr]     Checking solana-system-interface v1.0.0
[INFO] [stderr]     Checking solana-serialize-utils v2.2.1
[INFO] [stderr]     Checking solana-transaction-error v2.2.1
[INFO] [stderr]     Checking solana-bincode v2.2.1
[INFO] [stderr]     Checking solana-loader-v2-interface v2.2.1
[INFO] [stderr]     Checking solana-stable-layout v2.2.1
[INFO] [stderr]     Checking solana-clock v2.2.2
[INFO] [stderr]     Checking solana-slot-hashes v2.2.1
[INFO] [stderr]     Checking solana-rent v2.2.1
[INFO] [stderr]     Checking solana-last-restart-slot v2.2.1
[INFO] [stderr]     Checking solana-epoch-schedule v2.2.1
[INFO] [stderr]     Checking solana-slot-history v2.2.1
[INFO] [stderr]     Checking solana-epoch-rewards v2.2.1
[INFO] [stderr]     Checking solana-account-info v2.3.0
[INFO] [stderr]     Checking solana-program-pack v2.2.1
[INFO] [stderr]     Checking solana-address-lookup-table-interface v2.2.2
[INFO] [stderr]     Checking solana-cpi v2.2.1
[INFO] [stderr]     Checking solana-account v2.2.1
[INFO] [stderr]     Checking solana-instructions-sysvar v2.2.2
[INFO] [stderr]     Checking solana-program-entrypoint v2.3.0
[INFO] [stderr]     Checking solana-stake-interface v1.2.1
[INFO] [stderr]     Checking solana-message v2.4.0
[INFO] [stderr]     Checking solana-loader-v3-interface v5.0.0
[INFO] [stderr]     Checking solana-vote-interface v2.2.6
[INFO] [stderr]     Checking solana-feature-gate-interface v2.2.2
[INFO] [stderr]     Checking solana-loader-v4-interface v2.2.1
[INFO] [stderr]     Checking solana-secp256k1-recover v2.2.1
[INFO] [stderr]     Checking solana-example-mocks v2.2.1
[INFO] [stderr]     Checking solana-sysvar v2.3.0
[INFO] [stderr]     Checking solana-program v2.3.0
[INFO] [stderr]    Compiling anchor-attribute-access-control v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-account v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-constant v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-program v0.31.1
[INFO] [stderr]    Compiling anchor-derive-serde v0.31.1
[INFO] [stderr]    Compiling anchor-derive-accounts v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-error v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-event v0.31.1
[INFO] [stderr]     Checking anchor-lang v0.31.1
[INFO] [stderr]     Checking w-38-cal v0.1.0 (/opt/rustwide/workdir/programs/w-38-cal)
[INFO] [stdout] error: pubkey array is not 32 bytes long: len=27
[INFO] [stdout]  --> programs/w-38-cal/src/lib.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | declare_id!("111111111111111111111111111");
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: pubkey array is not 32 bytes long: len=27
[INFO] [stdout]  --> programs/w-38-cal/src/lib.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | declare_id!("111111111111111111111111111");
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ID` in this scope
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these constants:
[INFO] [stdout]            crate::system_program::ID
[INFO] [stdout]            anchor_lang::system_program::ID
[INFO] [stdout]    = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ID` in the crate root
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^ not found in the crate root
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these constants:
[INFO] [stdout]            crate::system_program::ID
[INFO] [stdout]            anchor_lang::system_program::ID
[INFO] [stdout]    = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ID` in this scope
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these constants:
[INFO] [stdout]            crate::system_program::ID
[INFO] [stdout]            anchor_lang::system_program::ID
[INFO] [stdout]    = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ID` in the crate root
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^ not found in the crate root
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these constants:
[INFO] [stdout]            crate::system_program::ID
[INFO] [stdout]            anchor_lang::system_program::ID
[INFO] [stdout]    = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[program]
[INFO] [stdout]    | ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `ctx.accounts.pda_account` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:40:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |         let pda_account = &mut ctx.accounts.pda_account;
[INFO] [stdout]    |                           ----------------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 40 |                 to: ctx.accounts.pda_account.to_account_info(),
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 45 |         pda_account.staked_amount = pda_account.staked_amount.checked_add(amount)
[INFO] [stdout]    |                                     ----------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0716]: temporary value dropped while borrowed
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             ctx.accounts.user.key().as_ref(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
[INFO] [stdout] 66 |             &[pda_account.bump],
[INFO] [stdout] 67 |         ];
[INFO] [stdout]    |          - temporary value is freed at the end of this statement
[INFO] [stdout] 68 |         let signer = &[&seeds[..]];
[INFO] [stdout]    |                         ----- borrow later used here
[INFO] [stdout]    |
[INFO] [stdout] help: consider using a `let` binding to create a longer lived value
[INFO] [stdout]    |
[INFO] [stdout] 63 ~         let binding = ctx.accounts.user.key();
[INFO] [stdout] 64 ~         let seeds = &[
[INFO] [stdout] 65 |             b"client1",
[INFO] [stdout] 66 ~             binding.as_ref(),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `ctx.accounts.pda_account` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:73:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let pda_account = &mut ctx.accounts.pda_account;
[INFO] [stdout]    |                           ----------------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 73 |                 from: ctx.accounts.pda_account.to_account_info(),
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 80 |         pda_account.staked_amount = pda_account.staked_amount.checked_sub(amount)
[INFO] [stdout]    |                                     ----------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `ctx.accounts.pda_account` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:40:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |         let pda_account = &mut ctx.accounts.pda_account;
[INFO] [stdout]    |                           ----------------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 40 |                 to: ctx.accounts.pda_account.to_account_info(),
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 45 |         pda_account.staked_amount = pda_account.staked_amount.checked_add(amount)
[INFO] [stdout]    |                                     ----------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0716]: temporary value dropped while borrowed
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             ctx.accounts.user.key().as_ref(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
[INFO] [stdout] 66 |             &[pda_account.bump],
[INFO] [stdout] 67 |         ];
[INFO] [stdout]    |          - temporary value is freed at the end of this statement
[INFO] [stdout] 68 |         let signer = &[&seeds[..]];
[INFO] [stdout]    |                         ----- borrow later used here
[INFO] [stdout]    |
[INFO] [stdout] help: consider using a `let` binding to create a longer lived value
[INFO] [stdout]    |
[INFO] [stdout] 63 ~         let binding = ctx.accounts.user.key();
[INFO] [stdout] 64 ~         let seeds = &[
[INFO] [stdout] 65 |             b"client1",
[INFO] [stdout] 66 ~             binding.as_ref(),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `ctx.accounts.pda_account` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> programs/w-38-cal/src/lib.rs:73:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let pda_account = &mut ctx.accounts.pda_account;
[INFO] [stdout]    |                           ----------------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 73 |                 from: ctx.accounts.pda_account.to_account_info(),
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 80 |         pda_account.staked_amount = pda_account.staked_amount.checked_sub(amount)
[INFO] [stdout]    |                                     ----------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0502, E0716.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `w-38-cal` (lib) due to 6 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0425, E0502, E0716.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `w-38-cal` (lib test) due to 6 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b", kill_on_drop: false }`
[INFO] [stdout] e518341f4feab5db446c29d8aa91bfa4461f6bd9c414b1dc157faee22eb0e86b
