[INFO] cloning repository https://github.com/prasad-kumkar/solana-flashloan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/prasad-kumkar/solana-flashloan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasad-kumkar%2Fsolana-flashloan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasad-kumkar%2Fsolana-flashloan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 119336701198d8f2d519b0f28f862c872f7e8be4 [INFO] testing prasad-kumkar/solana-flashloan against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasad-kumkar%2Fsolana-flashloan" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 53% (5245/9867) Updating files: 54% (5329/9867) Updating files: 55% (5427/9867) Updating files: 56% (5526/9867) Updating files: 57% (5625/9867) Updating files: 58% (5723/9867) Updating files: 59% (5822/9867) Updating files: 60% (5921/9867) Updating files: 61% (6019/9867) Updating files: 62% (6118/9867) Updating files: 63% (6217/9867) Updating files: 64% (6315/9867) Updating files: 65% (6414/9867) Updating files: 66% (6513/9867) Updating files: 67% (6611/9867) Updating files: 68% (6710/9867) Updating files: 69% (6809/9867) Updating files: 70% (6907/9867) Updating files: 71% (7006/9867) Updating files: 72% (7105/9867) Updating files: 73% (7203/9867) Updating files: 74% (7302/9867) Updating files: 75% (7401/9867) Updating files: 76% (7499/9867) Updating files: 77% (7598/9867) Updating files: 78% (7697/9867) Updating files: 79% (7795/9867) Updating files: 80% (7894/9867) Updating files: 81% (7993/9867) Updating files: 82% (8091/9867) Updating files: 83% (8190/9867) Updating files: 84% (8289/9867) Updating files: 85% (8387/9867) Updating files: 86% (8486/9867) Updating files: 87% (8585/9867) Updating files: 88% (8683/9867) Updating files: 89% (8782/9867) Updating files: 90% (8881/9867) Updating files: 91% (8979/9867) Updating files: 92% (9078/9867) Updating files: 93% (9177/9867) Updating files: 94% (9275/9867) Updating files: 95% (9374/9867) Updating files: 96% (9473/9867) Updating files: 96% (9568/9867) Updating files: 97% (9571/9867) Updating files: 98% (9670/9867) Updating files: 98% (9713/9867) Updating files: 99% (9769/9867) Updating files: 100% (9867/9867) Updating files: 100% (9867/9867), done. [INFO] validating manifest of git repo https://github.com/prasad-kumkar/solana-flashloan on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/prasad-kumkar/solana-flashloan [INFO] finished tweaking git repo https://github.com/prasad-kumkar/solana-flashloan [INFO] tweaked toml for git repo https://github.com/prasad-kumkar/solana-flashloan written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/prasad-kumkar/solana-flashloan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c75f573fc6e3c02465392cd5d911f328ce07ea487f52b658cda37c74ebc7a14d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c75f573fc6e3c02465392cd5d911f328ce07ea487f52b658cda37c74ebc7a14d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c75f573fc6e3c02465392cd5d911f328ce07ea487f52b658cda37c74ebc7a14d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c75f573fc6e3c02465392cd5d911f328ce07ea487f52b658cda37c74ebc7a14d", kill_on_drop: false }` [INFO] [stdout] c75f573fc6e3c02465392cd5d911f328ce07ea487f52b658cda37c74ebc7a14d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 53c59bc4a4bed198c31c87ebbc4a31dbc498cbf9544256d17c8c90b62c0fd9ec [INFO] running `Command { std: "docker" "start" "-a" "53c59bc4a4bed198c31c87ebbc4a31dbc498cbf9544256d17c8c90b62c0fd9ec", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling once_cell v1.7.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.5.11 [INFO] [stderr] Compiling solana-frozen-abi v1.5.11 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling solana-program v1.5.11 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling curve25519-dalek v2.1.2 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling solana-logger v1.5.11 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-derive-internal v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling solana-sdk-macro v1.5.11 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.3 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.8.1 [INFO] [stderr] Compiling num_enum_derive v0.5.1 [INFO] [stderr] Compiling borsh v0.8.1 [INFO] [stderr] Compiling num_enum v0.5.1 [INFO] [stderr] Compiling spl-token v3.1.0 [INFO] [stderr] Compiling solana-flashloan-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/instruction.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{convert::TryInto, mem::size_of, borrow::BorrowMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/instruction.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data_borrowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 98 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 119 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data` [INFO] [stdout] --> src/processor.rs:120:3 [INFO] [stdout] | [INFO] [stdout] 120 | execute_operation_ix_data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unpack_u8` [INFO] [stdout] --> src/instruction.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "53c59bc4a4bed198c31c87ebbc4a31dbc498cbf9544256d17c8c90b62c0fd9ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53c59bc4a4bed198c31c87ebbc4a31dbc498cbf9544256d17c8c90b62c0fd9ec", kill_on_drop: false }` [INFO] [stdout] 53c59bc4a4bed198c31c87ebbc4a31dbc498cbf9544256d17c8c90b62c0fd9ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1baaf5eb7cd923e81880f4de7e02e4fee7f5c950c7c29e389021039cf6b3ef2e [INFO] running `Command { std: "docker" "start" "-a" "1baaf5eb7cd923e81880f4de7e02e4fee7f5c950c7c29e389021039cf6b3ef2e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling solana-flashloan-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/instruction.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{convert::TryInto, mem::size_of, borrow::BorrowMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/instruction.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data_borrowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 98 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 119 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data` [INFO] [stdout] --> src/processor.rs:120:3 [INFO] [stdout] | [INFO] [stdout] 120 | execute_operation_ix_data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unpack_u8` [INFO] [stdout] --> src/instruction.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/instruction.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{convert::TryInto, mem::size_of, borrow::BorrowMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/instruction.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data_borrowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 98 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/processor.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 119 | amount: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data` [INFO] [stdout] --> src/processor.rs:120:3 [INFO] [stdout] | [INFO] [stdout] 120 | execute_operation_ix_data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_id` [INFO] [stdout] --> src/processor.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unpack_u8` [INFO] [stdout] --> src/instruction.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.79s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/solana_flashloan_template-31154cd758187a0c) [INFO] [stderr] Executable tests/lib.rs (/opt/rustwide/target/debug/deps/lib-798e7606f9e1c16d) [INFO] running `Command { std: "docker" "inspect" "1baaf5eb7cd923e81880f4de7e02e4fee7f5c950c7c29e389021039cf6b3ef2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1baaf5eb7cd923e81880f4de7e02e4fee7f5c950c7c29e389021039cf6b3ef2e", kill_on_drop: false }` [INFO] [stdout] 1baaf5eb7cd923e81880f4de7e02e4fee7f5c950c7c29e389021039cf6b3ef2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 887cfc4251f7017e028fbdac57ed0dd2677cb0bffc5fd6cd7c29c28d12012073 [INFO] running `Command { std: "docker" "start" "-a" "887cfc4251f7017e028fbdac57ed0dd2677cb0bffc5fd6cd7c29c28d12012073", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `borrow::BorrowMut` [INFO] [stderr] --> src/instruction.rs:4:43 [INFO] [stderr] | [INFO] [stderr] 4 | use std::{convert::TryInto, mem::size_of, borrow::BorrowMut}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/instruction.rs:52:18 [INFO] [stderr] | [INFO] [stderr] 52 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stderr] --> src/instruction.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data_borrowed` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `accounts` [INFO] [stderr] --> src/processor.rs:97:9 [INFO] [stderr] | [INFO] [stderr] 97 | accounts: &[AccountInfo], [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount` [INFO] [stderr] --> src/processor.rs:98:3 [INFO] [stderr] | [INFO] [stderr] 98 | amount: u64, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `program_id` [INFO] [stderr] --> src/processor.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | program_id: &Pubkey, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `accounts` [INFO] [stderr] --> src/processor.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | accounts: &[AccountInfo], [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount` [INFO] [stderr] --> src/processor.rs:119:3 [INFO] [stderr] | [INFO] [stderr] 119 | amount: u64, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `execute_operation_ix_data` [INFO] [stderr] --> src/processor.rs:120:3 [INFO] [stderr] | [INFO] [stderr] 120 | execute_operation_ix_data: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execute_operation_ix_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `program_id` [INFO] [stderr] --> src/processor.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | program_id: &Pubkey, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/instruction.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | let mut execute_operation_ix_data_borrowed = execute_operation_ix_data; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unpack_u8` [INFO] [stderr] --> src/instruction.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | fn unpack_u8(input: &[u8]) -> Result<(u8, &[u8]), ProgramError> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `solana-flashloan-template` (lib) generated 12 warnings [INFO] [stderr] warning: `solana-flashloan-template` (lib test) generated 12 warnings (12 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/solana_flashloan_template-31154cd758187a0c) [INFO] [stdout] [INFO] [stderr] Running tests/lib.rs (/opt/rustwide/target/debug/deps/lib-798e7606f9e1c16d) [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] [stderr] Doc-tests solana-flashloan-template [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] [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" "887cfc4251f7017e028fbdac57ed0dd2677cb0bffc5fd6cd7c29c28d12012073", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "887cfc4251f7017e028fbdac57ed0dd2677cb0bffc5fd6cd7c29c28d12012073", kill_on_drop: false }` [INFO] [stdout] 887cfc4251f7017e028fbdac57ed0dd2677cb0bffc5fd6cd7c29c28d12012073