[INFO] cloning repository https://github.com/kmadorin/solana-flashloan-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmadorin/solana-flashloan-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmadorin%2Fsolana-flashloan-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmadorin%2Fsolana-flashloan-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a11b9baa6fdf4d5dc18244ddb5b0fef687d73287 [INFO] testing kmadorin/solana-flashloan-template 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%2Fkmadorin%2Fsolana-flashloan-template" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kmadorin/solana-flashloan-template 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/kmadorin/solana-flashloan-template [INFO] finished tweaking git repo https://github.com/kmadorin/solana-flashloan-template [INFO] tweaked toml for git repo https://github.com/kmadorin/solana-flashloan-template written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/kmadorin/solana-flashloan-template 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-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d85371414852a286252aaaab8f627c5d45e62acd8b552b35e02f39441215b26 [INFO] running `Command { std: "docker" "start" "-a" "7d85371414852a286252aaaab8f627c5d45e62acd8b552b35e02f39441215b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d85371414852a286252aaaab8f627c5d45e62acd8b552b35e02f39441215b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d85371414852a286252aaaab8f627c5d45e62acd8b552b35e02f39441215b26", kill_on_drop: false }` [INFO] [stdout] 7d85371414852a286252aaaab8f627c5d45e62acd8b552b35e02f39441215b26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05eaca8f95a959351b0a532ed5891820d07449d524610fb187f21ee5cb9aef83 [INFO] running `Command { std: "docker" "start" "-a" "05eaca8f95a959351b0a532ed5891820d07449d524610fb187f21ee5cb9aef83", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 getrandom v0.1.16 [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 feature-probe v0.1.1 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.5.11 [INFO] [stderr] Compiling solana-frozen-abi v1.5.11 [INFO] [stderr] Compiling solana-program v1.5.11 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling borsh-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling curve25519-dalek v2.1.2 [INFO] [stderr] Compiling solana-logger v1.5.11 [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 bincode v1.3.2 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest 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] error: expected one of `,`, `=`, or `}`, found doc comment `/// An instruction which will be called by the Lending program after receiving a flashloan by MyFlashloanProgram ` [INFO] [stdout] --> src/instruction.rs:19:2 [INFO] [stdout] | [INFO] [stdout] 16 | InitMyFlashloanProgram {} [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `,`, `=`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] ... [INFO] [stdout] 19 | /// An instruction which will be called by the Lending program after receiving a flashloan by MyFlashloanProgram [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `=`, or `}`, found doc comment `/// Flash borrows tokens from a Lending Program borrowing reserve by invoking its flashloan instruction.` [INFO] [stdout] --> src/instruction.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `,`, `=`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 26 | [INFO] [stdout] 27 | /// Flash borrows tokens from a Lending Program borrowing reserve by invoking its flashloan instruction. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rest` in this scope [INFO] [stdout] --> src/instruction.rs:50:44 [INFO] [stdout] | [INFO] [stdout] 50 | let (amount, _rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rest` in this scope [INFO] [stdout] --> src/instruction.rs:57:70 [INFO] [stdout] | [INFO] [stdout] 57 | let (amount, execute_operation_ix_data_slice) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/instruction.rs:99:42 [INFO] [stdout] | [INFO] [stdout] 99 | let mut buf = Vec::with_capacity(size_of::()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 1 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `amount` in this scope [INFO] [stdout] --> src/processor.rs:26:59 [INFO] [stdout] | [INFO] [stdout] 26 | Self::process_execute_operation(accounts, amount, program_id) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `amount` in this scope [INFO] [stdout] --> src/processor.rs:30:59 [INFO] [stdout] | [INFO] [stdout] 30 | Self::process_my_flashloan_call(accounts, amount, execute_operation_ix_data, program_id) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `execute_operation_ix_data` in this scope [INFO] [stdout] --> src/processor.rs:30:67 [INFO] [stdout] | [INFO] [stdout] 30 | Self::process_my_flashloan_call(accounts, amount, execute_operation_ix_data, program_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let (amount, _rest) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ----------------------- this expression has type `u64` [INFO] [stdout] | | [INFO] [stdout] | expected `u64`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let (amount, execute_operation_ix_data_slice) = Self::unpack_u64(rest)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------- this expression has type `u64` [INFO] [stdout] | | [INFO] [stdout] | expected `u64`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_into` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/instruction.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | .and_then(|slice| slice.try_into().ok()) [INFO] [stdout] | ^^^^^^^^ method not found in `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021 [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | Ok((amount, rest)) [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `u64`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found tuple `(u64, &[u8])` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_into` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/instruction.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | .and_then(|slice| slice.try_into().ok()) [INFO] [stdout] | ^^^^^^^^ method not found in `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021 [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:116:16 [INFO] [stdout] | [INFO] [stdout] 116 | buf.append(&execute_operation_ix_data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solana-flashloan-template` due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "05eaca8f95a959351b0a532ed5891820d07449d524610fb187f21ee5cb9aef83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05eaca8f95a959351b0a532ed5891820d07449d524610fb187f21ee5cb9aef83", kill_on_drop: false }` [INFO] [stdout] 05eaca8f95a959351b0a532ed5891820d07449d524610fb187f21ee5cb9aef83