[INFO] cloning repository https://github.com/Soloans/soloans-smart-contracts [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Soloans/soloans-smart-contracts" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoloans%2Fsoloans-smart-contracts", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoloans%2Fsoloans-smart-contracts'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c54e9c069fbe7af2d70f7119e3e957566b213a8d [INFO] checking Soloans/soloans-smart-contracts against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoloans%2Fsoloans-smart-contracts" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Soloans/soloans-smart-contracts on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Soloans/soloans-smart-contracts [INFO] finished tweaking git repo https://github.com/Soloans/soloans-smart-contracts [INFO] tweaked toml for git repo https://github.com/Soloans/soloans-smart-contracts written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Soloans/soloans-smart-contracts 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded solana-logger v1.5.11 [INFO] [stderr] Downloaded solana-frozen-abi v1.5.11 [INFO] [stderr] Downloaded once_cell v1.7.0 [INFO] [stderr] Downloaded solana-program v1.5.11 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.5.11 [INFO] [stderr] Downloaded borsh-derive-internal v0.8.1 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Downloaded bincode v1.3.2 [INFO] [stderr] Downloaded borsh v0.8.1 [INFO] [stderr] Downloaded borsh-derive v0.8.1 [INFO] [stderr] Downloaded curve25519-dalek v2.1.2 [INFO] [stderr] Downloaded rustversion v1.0.4 [INFO] [stderr] Downloaded solana-sdk-macro v1.5.11 [INFO] [stderr] Downloaded spl-token v3.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7fa7c158c5dd4527a04a5ad4f5d525d24f81af0e61b58b039c9b07e203f58b5 [INFO] running `Command { std: "docker" "start" "-a" "c7fa7c158c5dd4527a04a5ad4f5d525d24f81af0e61b58b039c9b07e203f58b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7fa7c158c5dd4527a04a5ad4f5d525d24f81af0e61b58b039c9b07e203f58b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7fa7c158c5dd4527a04a5ad4f5d525d24f81af0e61b58b039c9b07e203f58b5", kill_on_drop: false }` [INFO] [stdout] c7fa7c158c5dd4527a04a5ad4f5d525d24f81af0e61b58b039c9b07e203f58b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58f46847d8695fdd136715e219efc90dab4dbe8098e3f64efb73f2d6c82c093b [INFO] running `Command { std: "docker" "start" "-a" "58f46847d8695fdd136715e219efc90dab4dbe8098e3f64efb73f2d6c82c093b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking once_cell v1.7.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.5.11 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Compiling solana-frozen-abi v1.5.11 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling solana-program v1.5.11 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking curve25519-dalek v2.1.2 [INFO] [stderr] Checking env_logger v0.8.3 [INFO] [stderr] Checking solana-logger v1.5.11 [INFO] [stderr] Compiling borsh-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.5.11 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking bv v0.11.1 [INFO] [stderr] Checking bincode v1.3.2 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking 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] Checking borsh v0.8.1 [INFO] [stderr] Checking num_enum v0.5.1 [INFO] [stderr] Checking spl-token v3.1.0 [INFO] [stderr] Checking 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 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:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 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: `rest` [INFO] [stdout] --> src/instruction.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 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: `rest` [INFO] [stdout] --> src/instruction.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | 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: `rest` [INFO] [stdout] --> src/instruction.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | 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: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | 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: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | 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: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_accounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | 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:106:3 [INFO] [stdout] | [INFO] [stdout] 106 | 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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | 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:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | 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:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | 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:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | 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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | 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: `amount` [INFO] [stdout] --> src/processor.rs:106:3 [INFO] [stdout] | [INFO] [stdout] 106 | 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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | 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:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | 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:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | 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:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | 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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unpack_u8` is never used [INFO] [stdout] --> src/instruction.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 56 | impl MyFlashloanProgramInstruction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | 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: associated function `unpack_u8` is never used [INFO] [stdout] --> src/instruction.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 56 | impl MyFlashloanProgramInstruction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | 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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.64s [INFO] running `Command { std: "docker" "inspect" "58f46847d8695fdd136715e219efc90dab4dbe8098e3f64efb73f2d6c82c093b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58f46847d8695fdd136715e219efc90dab4dbe8098e3f64efb73f2d6c82c093b", kill_on_drop: false }` [INFO] [stdout] 58f46847d8695fdd136715e219efc90dab4dbe8098e3f64efb73f2d6c82c093b [INFO] checking Soloans/soloans-smart-contracts against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoloans%2Fsoloans-smart-contracts" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Soloans/soloans-smart-contracts on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Soloans/soloans-smart-contracts [INFO] finished tweaking git repo https://github.com/Soloans/soloans-smart-contracts [INFO] tweaked toml for git repo https://github.com/Soloans/soloans-smart-contracts written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Soloans/soloans-smart-contracts 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f29f257c8c10557dc9d95a686a75025c757cc3d89694878745cd3f015333fa87 [INFO] running `Command { std: "docker" "start" "-a" "f29f257c8c10557dc9d95a686a75025c757cc3d89694878745cd3f015333fa87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f29f257c8c10557dc9d95a686a75025c757cc3d89694878745cd3f015333fa87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f29f257c8c10557dc9d95a686a75025c757cc3d89694878745cd3f015333fa87", kill_on_drop: false }` [INFO] [stdout] f29f257c8c10557dc9d95a686a75025c757cc3d89694878745cd3f015333fa87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a48e91797fd9bcad6dc449a69e0b6944f9c6cc98f11103e7b001d67a5061e93a [INFO] running `Command { std: "docker" "start" "-a" "a48e91797fd9bcad6dc449a69e0b6944f9c6cc98f11103e7b001d67a5061e93a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking once_cell v1.7.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.5.11 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling solana-frozen-abi v1.5.11 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Compiling solana-program v1.5.11 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking curve25519-dalek v2.1.2 [INFO] [stderr] Checking env_logger v0.8.3 [INFO] [stderr] Checking solana-logger v1.5.11 [INFO] [stderr] Compiling borsh-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.1 [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] Checking thiserror v1.0.24 [INFO] [stderr] Checking bv v0.11.1 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking bincode v1.3.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking 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] Checking borsh v0.8.1 [INFO] [stderr] Checking num_enum v0.5.1 [INFO] [stderr] Checking spl-token v3.1.0 [INFO] [stderr] Checking 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 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:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 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: `rest` [INFO] [stdout] --> src/instruction.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | 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: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | 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: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | 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:106:3 [INFO] [stdout] | [INFO] [stdout] 106 | 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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | 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:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | 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:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | 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:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | 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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unpack_u8` is never used [INFO] [stdout] --> src/instruction.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 56 | impl MyFlashloanProgramInstruction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | 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: unused variable: `rest` [INFO] [stdout] --> src/instruction.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 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: `rest` [INFO] [stdout] --> src/instruction.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | let (amount, rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execute_operation_ix_data_borrowed` [INFO] [stdout] --> src/instruction.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | 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: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | 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: unused variable: `accounts` [INFO] [stdout] --> src/processor.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | 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:106:3 [INFO] [stdout] | [INFO] [stdout] 106 | 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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | 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:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | 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:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | 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:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | 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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unpack_u8` is never used [INFO] [stdout] --> src/instruction.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 56 | impl MyFlashloanProgramInstruction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | 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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.40s [INFO] running `Command { std: "docker" "inspect" "a48e91797fd9bcad6dc449a69e0b6944f9c6cc98f11103e7b001d67a5061e93a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a48e91797fd9bcad6dc449a69e0b6944f9c6cc98f11103e7b001d67a5061e93a", kill_on_drop: false }` [INFO] [stdout] a48e91797fd9bcad6dc449a69e0b6944f9c6cc98f11103e7b001d67a5061e93a