[INFO] cloning repository https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSowreRajan-dev%2Fsolana_bootcamp_token-transfer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSowreRajan-dev%2Fsolana_bootcamp_token-transfer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ffa6a61df0eb3225debaa0f98874c55c9bf98950 [INFO] checking SowreRajan-dev/solana_bootcamp_token-transfer against try#4e55a504843955c97eb06907c71f6f3e99208021 for pr-146978 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSowreRajan-dev%2Fsolana_bootcamp_token-transfer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer [INFO] finished tweaking git repo https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer [INFO] tweaked toml for git repo https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer on toolchain 4e55a504843955c97eb06907c71f6f3e99208021 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SowreRajan-dev/solana_bootcamp_token-transfer 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" "+4e55a504843955c97eb06907c71f6f3e99208021" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c994127b9d82a7718c7260bf47423741fc5987605100395556bce37b86e62001 [INFO] running `Command { std: "docker" "start" "-a" "c994127b9d82a7718c7260bf47423741fc5987605100395556bce37b86e62001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c994127b9d82a7718c7260bf47423741fc5987605100395556bce37b86e62001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c994127b9d82a7718c7260bf47423741fc5987605100395556bce37b86e62001", kill_on_drop: false }` [INFO] [stdout] c994127b9d82a7718c7260bf47423741fc5987605100395556bce37b86e62001 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45b0991bf67adca62a9d1685bd1d161ab10331885ff489b4497ceaa8c50a183f [INFO] running `Command { std: "docker" "start" "-a" "45b0991bf67adca62a9d1685bd1d161ab10331885ff489b4497ceaa8c50a183f", kill_on_drop: false }` [INFO] [stderr] Checking token-transfer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | solana_program::entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | solana_program::entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `msg` in this scope [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | msg!("Attempting to transfer {} tokens", amount); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `msg` in this scope [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | msg!("Attempting to transfer {} tokens", amount); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pubkey` in this scope [INFO] [stdout] --> src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountInfo` in this scope [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ProgramResult` in this scope [INFO] [stdout] --> src/main.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | ) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pubkey` in this scope [INFO] [stdout] --> src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | program_id: &Pubkey, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountInfo` in this scope [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | accounts: &[AccountInfo], [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ProgramResult` in this scope [INFO] [stdout] --> src/main.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | ) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `token_transfer` [INFO] [stdout] --> src/main.rs:57:2 [INFO] [stdout] | [INFO] [stdout] 57 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let source_info = next_account_info(account_info_iter)?; // 1. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let source_info = next_account_info(account_info_iter)?; // 1. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let mint_info = next_account_info(account_info_iter)?; // 2. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let mint_info = next_account_info(account_info_iter)?; // 2. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | let destination_info = next_account_info(account_info_iter)?; // 3. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | let destination_info = next_account_info(account_info_iter)?; // 3. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let authority_info = next_account_info(account_info_iter)?; // 4. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | let token_program_info = next_account_info(account_info_iter)?; // 5. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pubkey` [INFO] [stdout] --> src/main.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | let (expected_authority, bump_seed) = Pubkey::find_program_address(&[b"authority"], program_id); [INFO] [stdout] | ^^^^^^ use of undeclared type `Pubkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProgramError` [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | return Err(ProgramError::InvalidSeeds); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProgramError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let authority_info = next_account_info(account_info_iter)?; // 4. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `next_account_info` in this scope [INFO] [stdout] --> src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | let token_program_info = next_account_info(account_info_iter)?; // 5. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pubkey` [INFO] [stdout] --> src/main.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | let (expected_authority, bump_seed) = Pubkey::find_program_address(&[b"authority"], program_id); [INFO] [stdout] | ^^^^^^ use of undeclared type `Pubkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProgramError` [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | return Err(ProgramError::InvalidSeeds); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProgramError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Account` [INFO] [stdout] --> src/main.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | let source_account = Account::unpack(&source_info.try_borrow_data()?)?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Account` [INFO] [stdout] --> src/main.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | let source_account = Account::unpack(&source_info.try_borrow_data()?)?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mint` [INFO] [stdout] --> src/main.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | let mint = Mint::unpack(&mint_info.try_borrow_data()?)?; [INFO] [stdout] | ^^^^ use of undeclared type `Mint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `transfer_checked` in this scope [INFO] [stdout] --> src/main.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | &transfer_checked( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mint` [INFO] [stdout] --> src/main.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | let mint = Mint::unpack(&mint_info.try_borrow_data()?)?; [INFO] [stdout] | ^^^^ use of undeclared type `Mint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `transfer_checked` in this scope [INFO] [stdout] --> src/main.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | &transfer_checked( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | &[&[b"authority", &[bump_seed]]], [INFO] [stdout] | ^^^^^^^^^^^^ expected an array with a size of 9, found one with a size of 1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `invoke_signed` in this scope [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | invoke_signed( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | &[&[b"authority", &[bump_seed]]], [INFO] [stdout] | ^^^^^^^^^^^^ expected an array with a size of 9, found one with a size of 1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `invoke_signed` in this scope [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | invoke_signed( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token-transfer` (bin "token-transfer") due to 18 previous errors [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token-transfer` (bin "token-transfer" test) due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "45b0991bf67adca62a9d1685bd1d161ab10331885ff489b4497ceaa8c50a183f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45b0991bf67adca62a9d1685bd1d161ab10331885ff489b4497ceaa8c50a183f", kill_on_drop: false }` [INFO] [stdout] 45b0991bf67adca62a9d1685bd1d161ab10331885ff489b4497ceaa8c50a183f