[INFO] cloning repository https://github.com/jon-nona/solana-escrow-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jon-nona/solana-escrow-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjon-nona%2Fsolana-escrow-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjon-nona%2Fsolana-escrow-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b0a132fd1002035e3ec8252b22fb9c8054665721 [INFO] testing jon-nona/solana-escrow-example against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjon-nona%2Fsolana-escrow-example" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jon-nona/solana-escrow-example [INFO] finished tweaking git repo https://github.com/jon-nona/solana-escrow-example [INFO] tweaked toml for git repo https://github.com/jon-nona/solana-escrow-example written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jon-nona/solana-escrow-example on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jon-nona/solana-escrow-example 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded spl-token v3.2.0 [INFO] [stderr] Downloaded env_logger v0.8.4 [INFO] [stderr] Downloaded rustversion v1.0.6 [INFO] [stderr] Downloaded solana-frozen-abi v1.8.1 [INFO] [stderr] Downloaded bs58 v0.3.1 [INFO] [stderr] Downloaded bytemuck_derive v1.0.1 [INFO] [stderr] Downloaded num_enum v0.5.4 [INFO] [stderr] Downloaded proc-macro-crate v1.1.0 [INFO] [stderr] Downloaded generic-array v0.12.4 [INFO] [stderr] Downloaded borsh v0.9.1 [INFO] [stderr] Downloaded ahash v0.4.7 [INFO] [stderr] Downloaded solana-program v1.8.1 [INFO] [stderr] Downloaded hashbrown v0.9.1 [INFO] [stderr] Downloaded itertools v0.9.0 [INFO] [stderr] Downloaded libsecp256k1 v0.5.0 [INFO] [stderr] Downloaded memmap2 v0.1.0 [INFO] [stderr] Downloaded blake3 v0.3.8 [INFO] [stderr] Downloaded serde_bytes v0.11.5 [INFO] [stderr] Downloaded num_enum_derive v0.5.4 [INFO] [stderr] Downloaded borsh-derive-internal v0.9.1 [INFO] [stderr] Downloaded zeroize v1.4.3 [INFO] [stderr] Downloaded keccak v0.1.0 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.9.1 [INFO] [stderr] Downloaded borsh-derive v0.9.1 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.8.1 [INFO] [stderr] Downloaded solana-logger v1.8.1 [INFO] [stderr] Downloaded solana-sdk-macro v1.8.1 [INFO] [stderr] Downloaded curve25519-dalek v2.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7840281f04483c054ea18c261949fc31ee0ac16ff08dcbefcae979d0b5cad1ca [INFO] running `Command { std: "docker" "start" "-a" "7840281f04483c054ea18c261949fc31ee0ac16ff08dcbefcae979d0b5cad1ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7840281f04483c054ea18c261949fc31ee0ac16ff08dcbefcae979d0b5cad1ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7840281f04483c054ea18c261949fc31ee0ac16ff08dcbefcae979d0b5cad1ca", kill_on_drop: false }` [INFO] [stdout] 7840281f04483c054ea18c261949fc31ee0ac16ff08dcbefcae979d0b5cad1ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea8dd8fc10e48484c658c4b29c17cf5cd7d0b69b7c85e6488be4da5137d18d59 [INFO] running `Command { std: "docker" "start" "-a" "ea8dd8fc10e48484c658c4b29c17cf5cd7d0b69b7c85e6488be4da5137d18d59", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.8.1 [INFO] [stderr] Compiling solana-frozen-abi v1.8.1 [INFO] [stderr] Compiling solana-program v1.8.1 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solana-logger v1.8.1 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling curve25519-dalek v2.1.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling solana-sdk-macro v1.8.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling borsh-derive v0.9.1 [INFO] [stderr] Compiling num_enum_derive v0.5.4 [INFO] [stderr] Compiling borsh v0.9.1 [INFO] [stderr] Compiling num_enum v0.5.4 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.5.0 [INFO] [stderr] Compiling spl-token v3.2.0 [INFO] [stderr] Compiling solana_escrow v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/error.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use thiserror:Error; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 1 | use thiserror::Error; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/instruction.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::program_error:ProgramError; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::program_error::ProgramError; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/instruction.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use create:error:EscrowError::InvalidInstruction; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 4 | use create::error:EscrowError::InvalidInstruction; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/instruction.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use create:error:EscrowError::InvalidInstruction; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 4 | use create:error::EscrowError::InvalidInstruction; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/instruction.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | amount: Self:unpack_amount(rest)?, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 34 | amount: Self::unpack_amount(rest)?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!` or `::`, found `unpack_amount` [INFO] [stdout] --> src/instruction.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 26 | impl EscrowInstruction { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] ... [INFO] [stdout] 40 | fun unpack_amount(input: &[u8]) -> Result { [INFO] [stdout] | --- ^^^^^^^^^^^^^ expected one of `!` or `::` [INFO] [stdout] | | [INFO] [stdout] | help: write `fn` instead of `fun` to declare a function [INFO] [stdout] ... [INFO] [stdout] 49 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `::`, `as`, or `}`, found `msg` [INFO] [stdout] --> src/processor.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | entrypoint::ProgramResult [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `,`, `::`, `as`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 4 | msg, [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/processor.rs:6:2 [INFO] [stdout] | [INFO] [stdout] 6 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 7 | [INFO] [stdout] 8 | use crate::{instruction::EscrowInstruction, error::EscrowError}; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/processor.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | return Err(ProgramError:MissinRequiredSignature); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 31 | return Err(ProgramError::MissinRequiredSignature); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/state.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use solana_program::pubkey:Pubkey; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 1 | use solana_program::pubkey::Pubkey; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `entrypoint` is defined multiple times [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod entrypoint; [INFO] [stdout] | ------------------- previous definition of the module `entrypoint` here [INFO] [stdout] 8 | [INFO] [stdout] 9 | pub mod entrypoint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `entrypoint` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `entrypoint` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `create` in this scope [INFO] [stdout] --> src/instruction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use create:error:EscrowError::InvalidInstruction; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `create` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `create`, use `cargo add create` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/processor.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | let initializer = next_account_info(account_info_iter)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::account_info::next_account_info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ProgramError` in this scope [INFO] [stdout] --> src/processor.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | return Err(ProgramError:MissinRequiredSignature); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProgramError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::sysvar::slot_history::ProgramError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/processor.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | let temp_token_account = next_account_info(account_info_iter)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::account_info::next_account_info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/processor.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let token_to_receive_account = next_account_info(account_info_iter)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::account_info::next_account_info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ProgramError` in this scope [INFO] [stdout] --> src/processor.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | return Err(ProgramError::IncorrectProgramId); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProgramError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::sysvar::slot_history::ProgramError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/processor.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | let escrot_account = next_account_info(account_info_iter)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::account_info::next_account_info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Rent` in this scope [INFO] [stdout] --> src/processor.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let rent = &Rent::from_account_info(next_account_info(account_info_iter)?)?; [INFO] [stdout] | ^^^^ use of undeclared type `Rent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::sysvar::rent::Rent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/processor.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | let rent = &Rent::from_account_info(next_account_info(account_info_iter)?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::account_info::next_account_info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `escrow_account` in this scope [INFO] [stdout] --> src/processor.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] 44 + if(!rent.is_exempt(escrot_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `escrow_account` in this scope [INFO] [stdout] --> src/processor.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] 44 + if(!rent.is_exempt(escrow_account.lamports(), escrot_account.data_len())) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Escrow` in this scope [INFO] [stdout] --> src/processor.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | let mut escrow_info = Escrow::unpack_unchecked(&escrow_account.try_borrow_data()?)?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Escrow` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::state::Escrow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `escrow_account` in this scope [INFO] [stdout] --> src/processor.rs:48:53 [INFO] [stdout] | [INFO] [stdout] 48 | let mut escrow_info = Escrow::unpack_unchecked(&escrow_account.try_borrow_data()?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 48 - let mut escrow_info = Escrow::unpack_unchecked(&escrow_account.try_borrow_data()?)?; [INFO] [stdout] 48 + let mut escrow_info = Escrow::unpack_unchecked(&escrot_account.try_borrow_data()?)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ProgramError` in this scope [INFO] [stdout] --> src/processor.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | return Err(ProgramError::AccountAlreadyInitialized); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProgramError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use solana_program::sysvar::slot_history::ProgramError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `no-entrypoint` [INFO] [stdout] --> src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(not(feature = "no-entrypoint"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `no-entrypoint` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/instruction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/processor.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(!rent.is_exempt(escrow_account.lamports(), escrow_account.data_len())) { [INFO] [stdout] 44 + if !rent.is_exempt(escrow_account.lamports(), escrow_account.data_len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> src/entrypoint.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> src/entrypoint.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unpack_amount` found for enum `EscrowInstruction` in the current scope [INFO] [stdout] --> src/instruction.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum EscrowInstruction { [INFO] [stdout] | -------------------------- variant or associated item `unpack_amount` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 34 | amount: Self:unpack_amount(rest)?, [INFO] [stdout] | ^^^^^^^^^^^^^ variant or associated item not found in `EscrowInstruction` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `EscrowInstruction`, consider using `EscrowInstruction::unpack` which returns `Result` [INFO] [stdout] --> src/instruction.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn unpack(input: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0428, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solana_escrow` (lib) due to 26 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ea8dd8fc10e48484c658c4b29c17cf5cd7d0b69b7c85e6488be4da5137d18d59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea8dd8fc10e48484c658c4b29c17cf5cd7d0b69b7c85e6488be4da5137d18d59", kill_on_drop: false }` [INFO] [stdout] ea8dd8fc10e48484c658c4b29c17cf5cd7d0b69b7c85e6488be4da5137d18d59