[INFO] cloning repository https://github.com/AnasKhan321/task3-Ackee
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AnasKhan321/task3-Ackee" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnasKhan321%2Ftask3-Ackee", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnasKhan321%2Ftask3-Ackee'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5451f92d90938a83eb4d5a4305e2439ed9146780
[INFO] testing AnasKhan321/task3-Ackee against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnasKhan321%2Ftask3-Ackee" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AnasKhan321/task3-Ackee
[INFO] finished tweaking git repo https://github.com/AnasKhan321/task3-Ackee
[INFO] tweaked toml for git repo https://github.com/AnasKhan321/task3-Ackee written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AnasKhan321/task3-Ackee on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AnasKhan321/task3-Ackee 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 23577e64916540c8bd4dd75303b1d8c042435d0d3c64cdb544c4848912e81ce6
[INFO] running `Command { std: "docker" "start" "-a" "23577e64916540c8bd4dd75303b1d8c042435d0d3c64cdb544c4848912e81ce6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "23577e64916540c8bd4dd75303b1d8c042435d0d3c64cdb544c4848912e81ce6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23577e64916540c8bd4dd75303b1d8c042435d0d3c64cdb544c4848912e81ce6", kill_on_drop: false }`
[INFO] [stdout] 23577e64916540c8bd4dd75303b1d8c042435d0d3c64cdb544c4848912e81ce6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d786328e19d4207f1d36675a3c1f13fa8fdf6d5f2e8cfcfe52412fba7ad0a81f
[INFO] running `Command { std: "docker" "start" "-a" "d786328e19d4207f1d36675a3c1f13fa8fdf6d5f2e8cfcfe52412fba7ad0a81f", kill_on_drop: false }`
[INFO] [stderr]    Compiling cfg-if v1.0.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling autocfg v1.5.0
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling winnow v0.7.11
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling five8_core v0.1.2
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling five8 v0.2.1
[INFO] [stderr]    Compiling solana-atomic-u64 v2.2.1
[INFO] [stderr]    Compiling solana-sanitize v2.2.1
[INFO] [stderr]    Compiling bytemuck v1.23.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling five8_const v0.1.4
[INFO] [stderr]    Compiling bs58 v0.5.1
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling solana-msg v2.2.1
[INFO] [stderr]    Compiling solana-decode-error v2.3.0
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling solana-program-memory v2.3.1
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling cc v1.2.27
[INFO] [stderr]    Compiling hashbrown v0.13.2
[INFO] [stderr]    Compiling libsecp256k1-core v0.2.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling libsecp256k1-gen-genmult v0.2.1
[INFO] [stderr]    Compiling libsecp256k1-gen-ecmult v0.2.1
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling borsh-derive-internal v0.10.4
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.10.4
[INFO] [stderr]    Compiling libsecp256k1 v0.6.0
[INFO] [stderr]    Compiling sha2 v0.9.9
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling memoffset v0.9.1
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling blake3 v1.8.2
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling solana-big-mod-exp v2.2.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling solana-native-token v2.3.0
[INFO] [stderr]    Compiling solana-program-option v2.2.1
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling borsh-derive v1.5.7
[INFO] [stderr]    Compiling bytemuck_derive v1.9.3
[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.12
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling anchor-derive-space v0.31.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling borsh v1.5.7
[INFO] [stderr]    Compiling toml v0.5.11
[INFO] [stderr]    Compiling solana-hash v2.3.0
[INFO] [stderr]    Compiling bincode v1.3.3
[INFO] [stderr]    Compiling solana-fee-calculator v2.2.1
[INFO] [stderr]    Compiling serde_bytes v0.11.17
[INFO] [stderr]    Compiling solana-short-vec v2.2.1
[INFO] [stderr]    Compiling solana-sha256-hasher v2.2.1
[INFO] [stderr]    Compiling bv v0.11.1
[INFO] [stderr]    Compiling solana-keccak-hasher v2.2.1
[INFO] [stderr]    Compiling anchor-lang-idl-spec v0.1.0
[INFO] [stderr]    Compiling solana-serde-varint v2.2.2
[INFO] [stderr]    Compiling solana-blake3-hasher v2.2.1
[INFO] [stderr]    Compiling anchor-syn v0.31.1
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling anchor-lang-idl v0.1.2
[INFO] [stderr]    Compiling borsh-derive v0.10.4
[INFO] [stderr]    Compiling solana-secp256k1-recover v2.2.1
[INFO] [stderr]    Compiling borsh v0.10.4
[INFO] [stderr]    Compiling solana-pubkey v2.4.0
[INFO] [stderr]    Compiling solana-borsh v2.2.1
[INFO] [stderr]    Compiling solana-instruction v2.3.0
[INFO] [stderr]    Compiling solana-sdk-ids v2.2.1
[INFO] [stderr]    Compiling solana-nonce v2.2.1
[INFO] [stderr]    Compiling solana-sysvar-id v2.2.1
[INFO] [stderr]    Compiling solana-clock v2.2.2
[INFO] [stderr]    Compiling solana-program-error v2.2.2
[INFO] [stderr]    Compiling solana-system-interface v1.0.0
[INFO] [stderr]    Compiling solana-serialize-utils v2.2.1
[INFO] [stderr]    Compiling solana-account-info v2.3.0
[INFO] [stderr]    Compiling solana-slot-hashes v2.2.1
[INFO] [stderr]    Compiling solana-rent v2.2.1
[INFO] [stderr]    Compiling solana-cpi v2.2.1
[INFO] [stderr]    Compiling solana-transaction-error v2.2.1
[INFO] [stderr]    Compiling solana-bincode v2.2.1
[INFO] [stderr]    Compiling solana-stake-interface v1.2.1
[INFO] [stderr]    Compiling solana-message v2.4.0
[INFO] [stderr]    Compiling solana-address-lookup-table-interface v2.2.2
[INFO] [stderr]    Compiling solana-account v2.2.1
[INFO] [stderr]    Compiling solana-instructions-sysvar v2.2.2
[INFO] [stderr]    Compiling solana-program-entrypoint v2.3.0
[INFO] [stderr]    Compiling solana-epoch-rewards v2.2.1
[INFO] [stderr]    Compiling solana-epoch-schedule v2.2.1
[INFO] [stderr]    Compiling solana-last-restart-slot v2.2.1
[INFO] [stderr]    Compiling solana-slot-history v2.2.1
[INFO] [stderr]    Compiling solana-example-mocks v2.2.1
[INFO] [stderr]    Compiling solana-sysvar v2.2.2
[INFO] [stderr]    Compiling solana-feature-gate-interface v2.2.2
[INFO] [stderr]    Compiling solana-vote-interface v2.2.5
[INFO] [stderr]    Compiling solana-loader-v3-interface v5.0.0
[INFO] [stderr]    Compiling solana-loader-v4-interface v2.2.1
[INFO] [stderr]    Compiling solana-program-pack v2.2.1
[INFO] [stderr]    Compiling solana-loader-v2-interface v2.2.1
[INFO] [stderr]    Compiling solana-stable-layout v2.2.1
[INFO] [stderr]    Compiling anchor-attribute-account v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-event v0.31.1
[INFO] [stderr]    Compiling anchor-derive-accounts v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-program v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-error v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-constant v0.31.1
[INFO] [stderr]    Compiling anchor-derive-serde v0.31.1
[INFO] [stderr]    Compiling anchor-attribute-access-control v0.31.1
[INFO] [stderr]    Compiling solana-program v2.3.0
[INFO] [stderr]    Compiling anchor-lang v0.31.1
[INFO] [stderr]    Compiling on-chain-vault v0.1.0 (/opt/rustwide/workdir/programs/on-chain-vault)
[INFO] [stdout] warning: unused import: `anchor_lang::solana_program::program::invoke`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::solana_program::program::invoke;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 31 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 31 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 |     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout]    |        ^                                     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 35 -     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout] 35 +     if ctx.accounts.user.lamports() < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Transfer` and `transfer`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:16:35
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::system_program::{transfer, Transfer};
[INFO] [stdout]    |                                   ^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 34 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 34 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 |     if (account_balance < amount) {
[INFO] [stdout]    |        ^                        ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 40 -     if (account_balance < amount) {
[INFO] [stdout] 40 +     if account_balance < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stdout]   --> programs/on-chain-vault/src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | #[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: unused `std::result::Result` that must be used
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 47 |     transfer(cpi_context, amount);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let _ = transfer(cpi_context, amount);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 49s
[INFO] running `Command { std: "docker" "inspect" "d786328e19d4207f1d36675a3c1f13fa8fdf6d5f2e8cfcfe52412fba7ad0a81f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d786328e19d4207f1d36675a3c1f13fa8fdf6d5f2e8cfcfe52412fba7ad0a81f", kill_on_drop: false }`
[INFO] [stdout] d786328e19d4207f1d36675a3c1f13fa8fdf6d5f2e8cfcfe52412fba7ad0a81f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a891cd3c07c630c02ea9d1498f0212bc578323a4ac76afb26e09a986a4cbe7e9
[INFO] running `Command { std: "docker" "start" "-a" "a891cd3c07c630c02ea9d1498f0212bc578323a4ac76afb26e09a986a4cbe7e9", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `anchor_lang::solana_program::program::invoke`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::solana_program::program::invoke;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 31 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 31 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 |     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout]    |        ^                                     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 35 -     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout] 35 +     if ctx.accounts.user.lamports() < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Transfer` and `transfer`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:16:35
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::system_program::{transfer, Transfer};
[INFO] [stdout]    |                                   ^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 34 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 34 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 |     if (account_balance < amount) {
[INFO] [stdout]    |        ^                        ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 40 -     if (account_balance < amount) {
[INFO] [stdout] 40 +     if account_balance < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stdout]   --> programs/on-chain-vault/src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | #[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: unused `std::result::Result` that must be used
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 47 |     transfer(cpi_context, amount);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let _ = transfer(cpi_context, amount);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling on-chain-vault v0.1.0 (/opt/rustwide/workdir/programs/on-chain-vault)
[INFO] [stdout] warning: unused import: `anchor_lang::solana_program::program::invoke`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::solana_program::program::invoke;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 31 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 31 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 |     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout]    |        ^                                     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 35 -     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stdout] 35 +     if ctx.accounts.user.lamports() < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Transfer` and `transfer`
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:16:35
[INFO] [stdout]    |
[INFO] [stdout] 16 | use anchor_lang::system_program::{transfer, Transfer};
[INFO] [stdout]    |                                   ^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if (ctx.accounts.vault.locked) {
[INFO] [stdout]    |        ^                         ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 34 -     if (ctx.accounts.vault.locked) {
[INFO] [stdout] 34 +     if ctx.accounts.vault.locked {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/withdraw.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 |     if (account_balance < amount) {
[INFO] [stdout]    |        ^                        ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 40 -     if (account_balance < amount) {
[INFO] [stdout] 40 +     if account_balance < amount {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stdout]   --> programs/on-chain-vault/src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | #[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: unused `std::result::Result` that must be used
[INFO] [stdout]   --> programs/on-chain-vault/src/instructions/deposit.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 47 |     transfer(cpi_context, amount);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let _ = transfer(cpi_context, amount);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.01s
[INFO] running `Command { std: "docker" "inspect" "a891cd3c07c630c02ea9d1498f0212bc578323a4ac76afb26e09a986a4cbe7e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a891cd3c07c630c02ea9d1498f0212bc578323a4ac76afb26e09a986a4cbe7e9", kill_on_drop: false }`
[INFO] [stdout] a891cd3c07c630c02ea9d1498f0212bc578323a4ac76afb26e09a986a4cbe7e9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 84717c7178427af3615ad1de093b71220863460a2b9d1a3b02b9cd0fbf023f0c
[INFO] running `Command { std: "docker" "start" "-a" "84717c7178427af3615ad1de093b71220863460a2b9d1a3b02b9cd0fbf023f0c", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `anchor_lang::solana_program::program::invoke`
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:16:5
[INFO] [stderr]    |
[INFO] [stderr] 16 | use anchor_lang::solana_program::program::invoke;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 31 |     if (ctx.accounts.vault.locked) {
[INFO] [stderr]    |        ^                         ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 31 -     if (ctx.accounts.vault.locked) {
[INFO] [stderr] 31 +     if ctx.accounts.vault.locked {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:35:8
[INFO] [stderr]    |
[INFO] [stderr] 35 |     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stderr]    |        ^                                     ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 35 -     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stderr] 35 +     if ctx.accounts.user.lamports() < amount {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Transfer` and `transfer`
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/withdraw.rs:16:35
[INFO] [stderr]    |
[INFO] [stderr] 16 | use anchor_lang::system_program::{transfer, Transfer};
[INFO] [stderr]    |                                   ^^^^^^^^  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/withdraw.rs:34:8
[INFO] [stderr]    |
[INFO] [stderr] 34 |     if (ctx.accounts.vault.locked) {
[INFO] [stderr]    |        ^                         ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 34 -     if (ctx.accounts.vault.locked) {
[INFO] [stderr] 34 +     if ctx.accounts.vault.locked {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/withdraw.rs:40:8
[INFO] [stderr]    |
[INFO] [stderr] 40 |     if (account_balance < amount) {
[INFO] [stderr]    |        ^                        ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 40 -     if (account_balance < amount) {
[INFO] [stderr] 40 +     if account_balance < amount {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead
[INFO] [stderr]   --> programs/on-chain-vault/src/lib.rs:36:1
[INFO] [stderr]    |
[INFO] [stderr] 36 | #[program]
[INFO] [stderr]    | ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unused `std::result::Result` that must be used
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:47:5
[INFO] [stderr]    |
[INFO] [stderr] 47 |     transfer(cpi_context, amount);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 47 |     let _ = transfer(cpi_context, amount);
[INFO] [stderr]    |     +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `on-chain-vault` (lib) generated 8 warnings (run `cargo fix --lib -p on-chain-vault` to apply 6 suggestions)
[INFO] [stderr] warning: `on-chain-vault` (lib test) generated 8 warnings (8 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/on_chain_vault-dd85f52b24a4646f)
[INFO] [stderr]    Doc-tests on_chain_vault
[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] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 31 |     if (ctx.accounts.vault.locked) {
[INFO] [stderr]    |        ^                         ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 31 -     if (ctx.accounts.vault.locked) {
[INFO] [stderr] 31 +     if ctx.accounts.vault.locked {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/deposit.rs:35:8
[INFO] [stderr]    |
[INFO] [stderr] 35 |     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stderr]    |        ^                                     ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 35 -     if (ctx.accounts.user.lamports() < amount) {
[INFO] [stderr] 35 +     if ctx.accounts.user.lamports() < amount {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/withdraw.rs:34:8
[INFO] [stderr]    |
[INFO] [stderr] 34 |     if (ctx.accounts.vault.locked) {
[INFO] [stderr]    |        ^                         ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 34 -     if (ctx.accounts.vault.locked) {
[INFO] [stderr] 34 +     if ctx.accounts.vault.locked {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> programs/on-chain-vault/src/instructions/withdraw.rs:40:8
[INFO] [stderr]    |
[INFO] [stderr] 40 |     if (account_balance < amount) {
[INFO] [stderr]    |        ^                        ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 40 -     if (account_balance < amount) {
[INFO] [stderr] 40 +     if account_balance < amount {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: 4 warnings emitted
[INFO] [stderr] 
[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" "84717c7178427af3615ad1de093b71220863460a2b9d1a3b02b9cd0fbf023f0c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "84717c7178427af3615ad1de093b71220863460a2b9d1a3b02b9cd0fbf023f0c", kill_on_drop: false }`
[INFO] [stdout] 84717c7178427af3615ad1de093b71220863460a2b9d1a3b02b9cd0fbf023f0c
