[INFO] cloning repository https://github.com/AqilJaafree/coconut-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AqilJaafree/coconut-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAqilJaafree%2Fcoconut-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAqilJaafree%2Fcoconut-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a870485c4a8e2227f89e645a8097e09f2d1676bd [INFO] checking AqilJaafree/coconut-contract/a870485c4a8e2227f89e645a8097e09f2d1676bd against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAqilJaafree%2Fcoconut-contract" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AqilJaafree/coconut-contract on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AqilJaafree/coconut-contract [INFO] finished tweaking git repo https://github.com/AqilJaafree/coconut-contract [INFO] tweaked toml for git repo https://github.com/AqilJaafree/coconut-contract written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AqilJaafree/coconut-contract 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd3d02f7bcc0130cb64f7ea76a8af77f17dc62fad90e57e98a26127bb663042b [INFO] running `Command { std: "docker" "start" "-a" "fd3d02f7bcc0130cb64f7ea76a8af77f17dc62fad90e57e98a26127bb663042b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd3d02f7bcc0130cb64f7ea76a8af77f17dc62fad90e57e98a26127bb663042b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd3d02f7bcc0130cb64f7ea76a8af77f17dc62fad90e57e98a26127bb663042b", kill_on_drop: false }` [INFO] [stdout] fd3d02f7bcc0130cb64f7ea76a8af77f17dc62fad90e57e98a26127bb663042b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9018822e3e53d61055d5929f3f932ce0e3a8d345ae47ccfa0ca12916c8d37df [INFO] running `Command { std: "docker" "start" "-a" "e9018822e3e53d61055d5929f3f932ce0e3a8d345ae47ccfa0ca12916c8d37df", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.93 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling winnow v0.6.18 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.18.23 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling borsh v1.5.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling blake3 v1.5.1 [INFO] [stderr] Compiling borsh-derive-internal v0.10.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.93 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.3 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling toml_edit v0.22.21 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Compiling solana-frozen-abi v1.18.23 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.93 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.93 [INFO] [stderr] Compiling solana-program v1.18.23 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling syn_derive v0.1.8 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.93 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling bytemuck_derive v1.7.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling borsh-derive v1.5.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Compiling solana-sdk-macro v1.18.23 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling anchor-derive-space v0.30.1 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking hmac-drbg v0.3.0 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Compiling anchor-syn v0.30.1 [INFO] [stderr] Compiling anchor-lang-idl v0.1.1 [INFO] [stderr] Compiling borsh-derive v0.10.3 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Checking borsh v0.10.3 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Compiling anchor-attribute-access-control v0.30.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.30.1 [INFO] [stderr] Compiling anchor-attribute-error v0.30.1 [INFO] [stderr] Compiling anchor-attribute-account v0.30.1 [INFO] [stderr] Compiling anchor-attribute-event v0.30.1 [INFO] [stderr] Compiling anchor-derive-serde v0.30.1 [INFO] [stderr] Compiling anchor-attribute-program v0.30.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.30.1 [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking ark-bn254 v0.4.0 [INFO] [stderr] Checking light-poseidon v0.2.0 [INFO] [stderr] Checking anchor-lang v0.30.1 [INFO] [stderr] Checking coconut v0.1.0 (/opt/rustwide/workdir/programs/coconut) [INFO] [stdout] error: init_if_needed requires that anchor-lang be imported with the init-if-needed cargo feature enabled. Carefully read the init_if_needed docs before using this feature to make sure you know how to protect yourself against re-initialization attacks. [INFO] [stdout] --> programs/coconut/src/context.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | init_if_needed, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: init_if_needed requires that anchor-lang be imported with the init-if-needed cargo feature enabled. Carefully read the init_if_needed docs before using this feature to make sure you know how to protect yourself against re-initialization attacks. [INFO] [stdout] --> programs/coconut/src/context.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | init_if_needed, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: init_if_needed requires that anchor-lang be imported with the init-if-needed cargo feature enabled. Carefully read the init_if_needed docs before using this feature to make sure you know how to protect yourself against re-initialization attacks. [INFO] [stdout] --> programs/coconut/src/context.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | init_if_needed, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: init_if_needed requires that anchor-lang be imported with the init-if-needed cargo feature enabled. Carefully read the init_if_needed docs before using this feature to make sure you know how to protect yourself against re-initialization attacks. [INFO] [stdout] --> programs/coconut/src/context.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | init_if_needed, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Overflow` is defined multiple times [INFO] [stdout] --> programs/coconut/src/error.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | Overflow, [INFO] [stdout] | -------- previous definition of the type `Overflow` here [INFO] [stdout] 21 | #[msg("Arithmetic overflow")] [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | ^^^^^^^^ `Overflow` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Overflow` must be defined only once in the type namespace of this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Overflow` is defined multiple times [INFO] [stdout] --> programs/coconut/src/error.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | Overflow, [INFO] [stdout] | -------- previous definition of the type `Overflow` here [INFO] [stdout] 21 | #[msg("Arithmetic overflow")] [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | ^^^^^^^^ `Overflow` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Overflow` must be defined only once in the type namespace of this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anchor_spl` [INFO] [stdout] --> programs/coconut/src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::{ [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `solana_program` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::entrypoint::ProgramResult; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `solana_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spl_token_2022` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use spl_token_2022::extension::confidential_transfer::{ [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `spl_token_2022` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anchor_spl` [INFO] [stdout] --> programs/coconut/src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::{ [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `solana_program` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::entrypoint::ProgramResult; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `solana_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spl_token_2022` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use spl_token_2022::extension::confidential_transfer::{ [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `spl_token_2022` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anchor_spl` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `anchor_spl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> programs/coconut/src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #[program] [INFO] [stdout] | ^^^^^^^^^^ could not find `__client_accounts_issue_cococ_tokens` 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] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> programs/coconut/src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `context::__client_accounts_create_rental_listing` [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] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/hotel.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/hotel.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::errors` [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::errors::ErrorCode; [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidRoomCount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/hotel.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | require!(room_count > 0, ErrorCode::InvalidRoomCount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidRoomCount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/hotel.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | require!(room_count > 0, ErrorCode::InvalidRoomCount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied in `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: within `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>`, the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required because it appears within the type `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: &Context, amount: u64) -> Result<()> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied in `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>` [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: within `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>`, the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required because it appears within the type `anchor_lang::context::Context<'_, '_, '_, '_, context::IssueCococTokens<'_>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 9 | pub fn issue_coco_tokens(ctx: &Context, amount: u64) -> Result<()> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Unauthorized` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:11:78 [INFO] [stdout] | [INFO] [stdout] 11 | require!(ctx.accounts.authority.key() == coco_mint.authority, ErrorCode::Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Unauthorized` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:11:78 [INFO] [stdout] | [INFO] [stdout] 11 | require!(ctx.accounts.authority.key() == coco_mint.authority, ErrorCode::Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:13:90 [INFO] [stdout] | [INFO] [stdout] 13 | coco_mint.total_supply = coco_mint.total_supply.checked_add(amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/token.rs:13:90 [INFO] [stdout] | [INFO] [stdout] 13 | coco_mint.total_supply = coco_mint.total_supply.checked_add(amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:53:97 [INFO] [stdout] | [INFO] [stdout] 53 | pool.coco_token_reserve = pool.coco_token_reserve.checked_add(coco_amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:53:97 [INFO] [stdout] | [INFO] [stdout] 53 | pool.coco_token_reserve = pool.coco_token_reserve.checked_add(coco_amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:54:85 [INFO] [stdout] | [INFO] [stdout] 54 | pool.usdc_reserve = pool.usdc_reserve.checked_add(usdc_amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:54:85 [INFO] [stdout] | [INFO] [stdout] 54 | pool.usdc_reserve = pool.usdc_reserve.checked_add(usdc_amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:55:108 [INFO] [stdout] | [INFO] [stdout] 55 | pool.total_liquidity = pool.total_liquidity.checked_add(coco_amount.min(usdc_amount)).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:55:108 [INFO] [stdout] | [INFO] [stdout] 55 | pool.total_liquidity = pool.total_liquidity.checked_add(coco_amount.min(usdc_amount)).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `SlippageExceeded` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:78:55 [INFO] [stdout] | [INFO] [stdout] 78 | require!(amount_out >= min_amount_out, ErrorCode::SlippageExceeded); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `SlippageExceeded` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:78:55 [INFO] [stdout] | [INFO] [stdout] 78 | require!(amount_out >= min_amount_out, ErrorCode::SlippageExceeded); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:108:99 [INFO] [stdout] | [INFO] [stdout] 108 | pool.coco_token_reserve = pool.coco_token_reserve.checked_add(amount_in).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:108:99 [INFO] [stdout] | [INFO] [stdout] 108 | pool.coco_token_reserve = pool.coco_token_reserve.checked_add(amount_in).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientFunds` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:109:88 [INFO] [stdout] | [INFO] [stdout] 109 | pool.usdc_reserve = pool.usdc_reserve.checked_sub(amount_out).ok_or(ErrorCode::InsufficientFunds)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientFunds` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:109:88 [INFO] [stdout] | [INFO] [stdout] 109 | pool.usdc_reserve = pool.usdc_reserve.checked_sub(amount_out).ok_or(ErrorCode::InsufficientFunds)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:111:87 [INFO] [stdout] | [INFO] [stdout] 111 | pool.usdc_reserve = pool.usdc_reserve.checked_add(amount_in).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:111:87 [INFO] [stdout] | [INFO] [stdout] 111 | pool.usdc_reserve = pool.usdc_reserve.checked_add(amount_in).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientFunds` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:112:100 [INFO] [stdout] | [INFO] [stdout] 112 | pool.coco_token_reserve = pool.coco_token_reserve.checked_sub(amount_out).ok_or(ErrorCode::InsufficientFunds)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientFunds` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/liquidity_pool.rs:112:100 [INFO] [stdout] | [INFO] [stdout] 112 | pool.coco_token_reserve = pool.coco_token_reserve.checked_sub(amount_out).ok_or(ErrorCode::InsufficientFunds)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied in `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: within `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>`, the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required because it appears within the type `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: &Context, amount: u64) -> Result<()> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied in `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>` [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: Context, amount: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: within `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>`, the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required because it appears within the type `anchor_lang::context::Context<'_, '_, '_, '_, context::StakeCocoTokens<'_>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stake_coco_tokens(ctx: &Context, amount: u64) -> Result<()> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:25:100 [INFO] [stdout] | [INFO] [stdout] 25 | stake_account.staked_amount = stake_account.staked_amount.checked_add(amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Overflow` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:25:100 [INFO] [stdout] | [INFO] [stdout] 25 | stake_account.staked_amount = stake_account.staked_amount.checked_add(amount).ok_or(ErrorCode::Overflow)?; [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientStakedAmount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:38:64 [INFO] [stdout] | [INFO] [stdout] 38 | require!(stake_account.staked_amount >= amount, ErrorCode::InsufficientStakedAmount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientStakedAmount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:38:64 [INFO] [stdout] | [INFO] [stdout] 38 | require!(stake_account.staked_amount >= amount, ErrorCode::InsufficientStakedAmount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientStakedAmount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:69:100 [INFO] [stdout] | [INFO] [stdout] 69 | stake_account.staked_amount = stake_account.staked_amount.checked_sub(amount).ok_or(ErrorCode::InsufficientStakedAmount)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InsufficientStakedAmount` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/staking.rs:69:100 [INFO] [stdout] | [INFO] [stdout] 69 | stake_account.staked_amount = stake_account.staked_amount.checked_sub(amount).ok_or(ErrorCode::InsufficientStakedAmount)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidRoomNumber` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | require!(room_number <= hotel.room_count, ErrorCode::InvalidRoomNumber); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidRoomNumber` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/rental.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | require!(room_number <= hotel.room_count, ErrorCode::InvalidRoomNumber); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ConfidentialTransferFailed` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | return Err(ErrorCode::ConfidentialTransferFailed.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ConfidentialTransferFailed` found for enum `anchor_lang::error::ErrorCode` in the current scope [INFO] [stdout] --> programs/coconut/src/instructions/confidential_transfer.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | return Err(ErrorCode::ConfidentialTransferFailed.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ErrorCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/lib.rs:27:34 [INFO] [stdout] | [INFO] [stdout] 27 | token::issue_coco_tokens(ctx, amount) [INFO] [stdout] | ^^^ the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/lib.rs:43:36 [INFO] [stdout] | [INFO] [stdout] 43 | staking::stake_coco_tokens(ctx, amount) [INFO] [stdout] | ^^^ the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::IssueCococTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/lib.rs:27:34 [INFO] [stdout] | [INFO] [stdout] 27 | token::issue_coco_tokens(ctx, amount) [INFO] [stdout] | ^^^ the trait `Bumps` is not implemented for `context::IssueCococTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `context::StakeCocoTokens<'_>: Bumps` is not satisfied [INFO] [stdout] --> programs/coconut/src/lib.rs:43:36 [INFO] [stdout] | [INFO] [stdout] 43 | staking::stake_coco_tokens(ctx, amount) [INFO] [stdout] | ^^^ the trait `Bumps` is not implemented for `context::StakeCocoTokens<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Bumps`: [INFO] [stdout] CreateNonceAccount<'info> [INFO] [stdout] CreateNonceAccountWithSeed<'info> [INFO] [stdout] __idl::IdlAccounts<'info> [INFO] [stdout] __idl::IdlCloseAccount<'info> [INFO] [stdout] __idl::IdlCreateAccounts<'info> [INFO] [stdout] __idl::IdlCreateBuffer<'info> [INFO] [stdout] __idl::IdlResizeAccount<'info> [INFO] [stdout] __idl::IdlSetBuffer<'info> [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `anchor_lang::context::Context` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anchor-lang-0.30.1/src/context.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { [INFO] [stdout] | ^^^^^ required by this bound in `Context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&error::ErrorCode::Overflow` not covered [INFO] [stdout] --> programs/coconut/src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code] [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&error::ErrorCode::Overflow` not covered [INFO] [stdout] | [INFO] [stdout] note: `error::ErrorCode` defined here [INFO] [stdout] --> programs/coconut/src/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | -------- not covered [INFO] [stdout] = note: the matched value is of type `&error::ErrorCode` [INFO] [stdout] = note: this error originates in the derive macro `std::fmt::Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&error::ErrorCode::Overflow` not covered [INFO] [stdout] --> programs/coconut/src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code] [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&error::ErrorCode::Overflow` not covered [INFO] [stdout] | [INFO] [stdout] note: `error::ErrorCode` defined here [INFO] [stdout] --> programs/coconut/src/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | -------- not covered [INFO] [stdout] = note: the matched value is of type `&error::ErrorCode` [INFO] [stdout] = note: this error originates in the derive macro `std::fmt::Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&error::ErrorCode::Overflow` not covered [INFO] [stdout] --> programs/coconut/src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code] [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&error::ErrorCode::Overflow` not covered [INFO] [stdout] | [INFO] [stdout] note: `error::ErrorCode` defined here [INFO] [stdout] --> programs/coconut/src/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | -------- not covered [INFO] [stdout] = note: the matched value is of type `&error::ErrorCode` [INFO] [stdout] = note: this error originates in the attribute macro `error_code` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code], &error::ErrorCode::Overflow => todo!() [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&error::ErrorCode::Overflow` not covered [INFO] [stdout] --> programs/coconut/src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code] [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&error::ErrorCode::Overflow` not covered [INFO] [stdout] | [INFO] [stdout] note: `error::ErrorCode` defined here [INFO] [stdout] --> programs/coconut/src/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Overflow, [INFO] [stdout] | -------- not covered [INFO] [stdout] = note: the matched value is of type `&error::ErrorCode` [INFO] [stdout] = note: this error originates in the attribute macro `error_code` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 5 | #[error_code], &error::ErrorCode::Overflow => todo!() [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0428, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0428, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `coconut` (lib test) due to 42 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `coconut` (lib) due to 42 previous errors [INFO] running `Command { std: "docker" "inspect" "e9018822e3e53d61055d5929f3f932ce0e3a8d345ae47ccfa0ca12916c8d37df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9018822e3e53d61055d5929f3f932ce0e3a8d345ae47ccfa0ca12916c8d37df", kill_on_drop: false }` [INFO] [stdout] e9018822e3e53d61055d5929f3f932ce0e3a8d345ae47ccfa0ca12916c8d37df