[INFO] fetching crate zo-abi 0.6.0... [INFO] testing zo-abi-0.6.0 against master#67da586efe13aa66eef576ba095e1875ba65fd20 for pr-112849 [INFO] extracting crate zo-abi 0.6.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate zo-abi 0.6.0 on toolchain 67da586efe13aa66eef576ba095e1875ba65fd20 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zo-abi 0.6.0 [INFO] finished tweaking crates.io crate zo-abi 0.6.0 [INFO] tweaked toml for crates.io crate zo-abi 0.6.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fixed v1.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c17f7cb4b5127ed79eb9dcc0bde05cec7aa4cbc0daabf8dd24c969ecd6f3a1e4 [INFO] running `Command { std: "docker" "start" "-a" "c17f7cb4b5127ed79eb9dcc0bde05cec7aa4cbc0daabf8dd24c969ecd6f3a1e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c17f7cb4b5127ed79eb9dcc0bde05cec7aa4cbc0daabf8dd24c969ecd6f3a1e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c17f7cb4b5127ed79eb9dcc0bde05cec7aa4cbc0daabf8dd24c969ecd6f3a1e4", kill_on_drop: false }` [INFO] [stdout] c17f7cb4b5127ed79eb9dcc0bde05cec7aa4cbc0daabf8dd24c969ecd6f3a1e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3196dacc780c82ca8930d1579af73f35a4720e69eeb8b490d0fa5f9de0aa9ac7 [INFO] running `Command { std: "docker" "start" "-a" "3196dacc780c82ca8930d1579af73f35a4720e69eeb8b490d0fa5f9de0aa9ac7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling cpufeatures v0.2.8 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling semver v1.0.17 [INFO] [stderr] Compiling serde_json v1.0.97 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling bumpalo v3.13.0 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.10.41 [INFO] [stderr] Compiling solana-frozen-abi v1.10.41 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling solana-program v1.10.41 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling keccak v0.1.4 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling constant_time_eq v0.2.6 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling blake3 v1.4.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling fixed v1.11.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling bytemuck_derive v1.4.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.10.41 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling serde_bytes v0.11.9 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling anchor-syn v0.25.0 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling anchor-attribute-interface v0.25.0 [INFO] [stderr] Compiling anchor-attribute-event v0.25.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.25.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.25.0 [INFO] [stderr] Compiling anchor-attribute-program v0.25.0 [INFO] [stderr] Compiling anchor-attribute-error v0.25.0 [INFO] [stderr] Compiling anchor-attribute-state v0.25.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.25.0 [INFO] [stderr] Compiling anchor-attribute-account v0.25.0 [INFO] [stderr] Compiling anchor-lang v0.25.0 [INFO] [stderr] Compiling zo-abi v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.74s [INFO] running `Command { std: "docker" "inspect" "3196dacc780c82ca8930d1579af73f35a4720e69eeb8b490d0fa5f9de0aa9ac7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3196dacc780c82ca8930d1579af73f35a4720e69eeb8b490d0fa5f9de0aa9ac7", kill_on_drop: false }` [INFO] [stdout] 3196dacc780c82ca8930d1579af73f35a4720e69eeb8b490d0fa5f9de0aa9ac7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc14f75393c65e23da35ffa020a100acaca613b151030e1638069954b35b0c34 [INFO] running `Command { std: "docker" "start" "-a" "fc14f75393c65e23da35ffa020a100acaca613b151030e1638069954b35b0c34", kill_on_drop: false }` [INFO] [stderr] Compiling zo-abi v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.45s [INFO] running `Command { std: "docker" "inspect" "fc14f75393c65e23da35ffa020a100acaca613b151030e1638069954b35b0c34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc14f75393c65e23da35ffa020a100acaca613b151030e1638069954b35b0c34", kill_on_drop: false }` [INFO] [stdout] fc14f75393c65e23da35ffa020a100acaca613b151030e1638069954b35b0c34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+67da586efe13aa66eef576ba095e1875ba65fd20" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5d11451884c84034696b02d16c7d9be3b5e8d0ac8c9af1742be87130116b08b6 [INFO] running `Command { std: "docker" "start" "-a" "5d11451884c84034696b02d16c7d9be3b5e8d0ac8c9af1742be87130116b08b6", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zo_abi-2e5d0b8b72373327) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_id ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests zo-abi [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 25) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 72) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anchor_client` [INFO] [stdout] --> src/lib.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_client::solana_sdk::pubkey::Pubkey; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `anchor_client` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_sdk::pubkey::Pubkey; [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anchor_client` [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anchor_client::solana_sdk::signer::keypair::read_keypair_file; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `anchor_client` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use anchor_lang::solana_sdk::signer::keypair::read_keypair_file; [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_client` [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_client::{Client, Cluster}; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `anchor_client` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::{Client, Cluster}; [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_ID` in crate `zo` [INFO] [stdout] --> src/lib.rs:86:51 [INFO] [stdout] | [INFO] [stdout] 16 | let zo_state: zo::State = program.account(zo::STATE_ID).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in `zo` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_ID` in crate `zo` [INFO] [stdout] --> src/lib.rs:89:67 [INFO] [stdout] | [INFO] [stdout] 19 | let (zo_state_signer, _) = Pubkey::find_program_address(&[zo::STATE_ID.as_ref()], &zo::ID); [INFO] [stdout] | ^^^^^^^^ not found in `zo` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_ID` in crate `zo` [INFO] [stdout] --> src/lib.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 30 | state: zo::STATE_ID, [INFO] [stdout] | ^^^^^^^^ not found in `zo` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spl_token` [INFO] [stdout] --> src/lib.rs:103:28 [INFO] [stdout] | [INFO] [stdout] 33 | token_program: spl_token::ID, [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `spl_token` [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `margin`, `token_account` and `vault` in initializer of `zo_abi::accounts::Deposit` [INFO] [stdout] --> src/lib.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 28 | .accounts(zo::accounts::Deposit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ missing `margin`, `token_account` and `vault` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 25) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `self::my_program` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod my_program { [INFO] [stdout] | ^^^^^^^^^^ could not find `my_program` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ could not find `__client_accounts_do_deposit` in the crate root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AnchorSerialize` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider importing this derive macro: [INFO] [stdout] anchor_lang::AnchorSerialize [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AnchorDeserialize` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider importing this derive macro: [INFO] [stdout] anchor_lang::AnchorDeserialize [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `instruction` [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `instruction` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `zo` [INFO] [stdout] --> src/lib.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 14 | let cpi_accounts = zo::cpi::accounts::Deposit { [INFO] [stdout] | ^^ use of undeclared crate or module `zo` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `zo` [INFO] [stdout] --> src/lib.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 25 | zo::cpi::deposit(cpi_ctx, false, amount)?; [INFO] [stdout] | ^^ use of undeclared crate or module `zo` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ID` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use anchor_lang::system_program::ID; [INFO] [stdout] | [INFO] [stdout] 2 + use solana_program::bpf_loader::ID; [INFO] [stdout] | [INFO] [stdout] 2 + use solana_program::bpf_loader_deprecated::ID; [INFO] [stdout] | [INFO] [stdout] 2 + use solana_program::bpf_loader_upgradeable::ID; [INFO] [stdout] | [INFO] [stdout] and 21 other candidates [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pubkey` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items: [INFO] [stdout] anchor_lang::prelude::Pubkey [INFO] [stdout] solana_program::pubkey::Pubkey [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ID` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items: [INFO] [stdout] anchor_lang::system_program::ID [INFO] [stdout] solana_program::bpf_loader::ID [INFO] [stdout] solana_program::bpf_loader_deprecated::ID [INFO] [stdout] solana_program::bpf_loader_upgradeable::ID [INFO] [stdout] solana_program::config::program::ID [INFO] [stdout] solana_program::ed25519_program::ID [INFO] [stdout] solana_program::feature::ID [INFO] [stdout] solana_program::incinerator::ID [INFO] [stdout] solana_program::secp256k1_program::ID [INFO] [stdout] solana_program::stake::config::ID [INFO] [stdout] solana_program::stake::program::ID [INFO] [stdout] solana_program::system_program::ID [INFO] [stdout] solana_program::sysvar::ID [INFO] [stdout] solana_program::sysvar::clock::ID [INFO] [stdout] solana_program::sysvar::epoch_schedule::ID [INFO] [stdout] solana_program::sysvar::fees::ID [INFO] [stdout] solana_program::sysvar::instructions::ID [INFO] [stdout] solana_program::sysvar::recent_blockhashes::ID [INFO] [stdout] solana_program::sysvar::rent::ID [INFO] [stdout] solana_program::sysvar::rewards::ID [INFO] [stdout] solana_program::sysvar::slot_hashes::ID [INFO] [stdout] solana_program::sysvar::slot_history::ID [INFO] [stdout] solana_program::sysvar::stake_history::ID [INFO] [stdout] solana_program::vote::program::ID [INFO] [stdout] zo_abi::ID [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountInfo` in this scope [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items: [INFO] [stdout] anchor_lang::prelude::AccountInfo [INFO] [stdout] solana_program::sysvar::slot_history::AccountInfo [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pubkey` [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Pubkey` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items: [INFO] [stdout] anchor_lang::prelude::Pubkey [INFO] [stdout] solana_program::pubkey::Pubkey [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rent` [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[program] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Rent` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items: [INFO] [stdout] anchor_lang::prelude::Rent [INFO] [stdout] solana_program::sysvar::rent::Rent [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 10 + use anchor_lang::prelude::Context; [INFO] [stdout] | [INFO] [stdout] 10 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 10 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DoDeposit` in this scope [INFO] [stdout] --> src/lib.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ProgramResult` in this scope [INFO] [stdout] --> src/lib.rs:34:64 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 10 + use solana_program::entrypoint::ProgramResult; [INFO] [stdout] | [INFO] [stdout] 10 + use solana_program::entrypoint_deprecated::ProgramResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CpiContext` [INFO] [stdout] --> src/lib.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 24 | let cpi_ctx = CpiContext::new(cpi_program, cpi_accounts); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `CpiContext` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 10 + use anchor_lang::prelude::CpiContext; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `_doctest_main_src_lib_rs_25_0::instruction::DoDeposit: AnchorSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^ the trait `AnchorSerialize` is not implemented for `_doctest_main_src_lib_rs_25_0::instruction::DoDeposit` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AnchorSerialize`: [INFO] [stdout] &T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] and 193 others [INFO] [stdout] note: required by a bound in `InstructionData` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.25.0/src/lib.rs:185:28 [INFO] [stdout] | [INFO] [stdout] 185 | pub trait InstructionData: AnchorSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `InstructionData` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DoDeposit` [INFO] [stdout] --> src/lib.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn do_deposit(ctx: Context, amount: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `DoDeposit` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `my_program` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod my_program { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `my_program` [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 25) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5d11451884c84034696b02d16c7d9be3b5e8d0ac8c9af1742be87130116b08b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d11451884c84034696b02d16c7d9be3b5e8d0ac8c9af1742be87130116b08b6", kill_on_drop: false }` [INFO] [stdout] 5d11451884c84034696b02d16c7d9be3b5e8d0ac8c9af1742be87130116b08b6