[INFO] cloning repository https://github.com/YashJain719/Betting_Game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YashJain719/Betting_Game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYashJain719%2FBetting_Game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYashJain719%2FBetting_Game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4c8981f09709aec0a1f93b8e3a09471f368fc75 [INFO] testing YashJain719/Betting_Game against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYashJain719%2FBetting_Game" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YashJain719/Betting_Game on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/YashJain719/Betting_Game [INFO] finished tweaking git repo https://github.com/YashJain719/Betting_Game [INFO] tweaked toml for git repo https://github.com/YashJain719/Betting_Game written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/YashJain719/Betting_Game 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25488e05c9e11427c85f5bcf1084d41166648e5c9f84729308881009561b59da [INFO] running `Command { std: "docker" "start" "-a" "25488e05c9e11427c85f5bcf1084d41166648e5c9f84729308881009561b59da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25488e05c9e11427c85f5bcf1084d41166648e5c9f84729308881009561b59da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25488e05c9e11427c85f5bcf1084d41166648e5c9f84729308881009561b59da", kill_on_drop: false }` [INFO] [stdout] 25488e05c9e11427c85f5bcf1084d41166648e5c9f84729308881009561b59da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe89477fc74cfecc311c44416f733be5f90fab628181742a19fe22f2e71d265b [INFO] running `Command { std: "docker" "start" "-a" "fe89477fc74cfecc311c44416f733be5f90fab628181742a19fe22f2e71d265b", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.51 [INFO] [stderr] Compiling unicode-ident v1.0.7 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.94 [INFO] [stderr] Compiling anyhow v1.0.69 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.84 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling paste v1.0.11 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling bumpalo v3.12.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling wasm-bindgen v0.2.84 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.15.2 [INFO] [stderr] Compiling solana-frozen-abi v1.15.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.7 [INFO] [stderr] Compiling constant_time_eq v0.2.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling keccak v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling array-bytes v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling blake3 v1.3.3 [INFO] [stderr] Compiling solana-program v1.15.2 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling ark-std v0.3.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.84 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.84 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling zeroize_derive v1.3.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-macros v0.3.0 [INFO] [stderr] Compiling ark-ff-asm v0.3.0 [INFO] [stderr] Compiling bytemuck_derive v1.4.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.15.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.84 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling pest v2.5.6 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling ark-ff v0.3.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling serde_bytes v0.11.9 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling pbkdf2 v0.4.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling ark-serialize v0.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.6 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling anchor-syn v0.26.0 [INFO] [stderr] Compiling tiny-bip39 v0.8.2 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling anchor-attribute-program v0.26.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.26.0 [INFO] [stderr] Compiling anchor-attribute-account v0.26.0 [INFO] [stderr] Compiling anchor-attribute-state v0.26.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.26.0 [INFO] [stderr] Compiling anchor-attribute-interface v0.26.0 [INFO] [stderr] Compiling anchor-attribute-error v0.26.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.26.0 [INFO] [stderr] Compiling anchor-attribute-event v0.26.0 [INFO] [stderr] Compiling ark-ec v0.3.0 [INFO] [stderr] Compiling ark-bn254 v0.3.0 [INFO] [stderr] Compiling anchor-lang v0.26.0 [INFO] [stderr] Compiling betting-game v0.1.0 (/opt/rustwide/workdir/programs/betting-game) [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:223:10 [INFO] [stdout] | [INFO] [stdout] 223 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> programs/betting-game/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 58 | return Err(ProgramError::InsufficientFunds); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 59 | [INFO] [stdout] 60 | / let ix = anchor_lang::solana_program::system_instruction::transfer( [INFO] [stdout] 61 | | &ctx.accounts.user.key(), [INFO] [stdout] 62 | | &ctx.accounts.campaign.key(), [INFO] [stdout] 63 | | amount [INFO] [stdout] 64 | | ); [INFO] [stdout] | |__________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/betting-game/src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let amount = campaign.bettingAmount; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | pub bettingAmount: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `creationTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub creationTime: i64, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `creation_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `endCampaign` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn endCampaign(ctx: Context) -> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `end_campaign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:11:75 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn create(ctx: Context, name: String, description: String,bettingAmount: u64)-> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let currTime = clock.unix_timestamp; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `curr_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 66 | | &ix, [INFO] [stdout] 67 | | &[ [INFO] [stdout] 68 | | ctx.accounts.user.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 100 | | &ix, [INFO] [stdout] 101 | | &[ [INFO] [stdout] 102 | | ctx.accounts.campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 105 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerOneAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_one_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerTwoAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:59 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_two_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerThreeAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:77 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_three_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 128 | | &ix, [INFO] [stdout] 129 | | &[ [INFO] [stdout] 130 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 127 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 146 | | &ix, [INFO] [stdout] 147 | | &[ [INFO] [stdout] 148 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 145 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 163 | | &ix, [INFO] [stdout] 164 | | &[ [INFO] [stdout] 165 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 169 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 162 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 181 | | &ix, [INFO] [stdout] 182 | | &[ [INFO] [stdout] 183 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 187 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 180 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.42s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "fe89477fc74cfecc311c44416f733be5f90fab628181742a19fe22f2e71d265b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe89477fc74cfecc311c44416f733be5f90fab628181742a19fe22f2e71d265b", kill_on_drop: false }` [INFO] [stdout] fe89477fc74cfecc311c44416f733be5f90fab628181742a19fe22f2e71d265b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7e666a5ec57ceefe4812ff36eaf41ce692267999e3747d6666f138d68f86869 [INFO] running `Command { std: "docker" "start" "-a" "b7e666a5ec57ceefe4812ff36eaf41ce692267999e3747d6666f138d68f86869", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling betting-game v0.1.0 (/opt/rustwide/workdir/programs/betting-game) [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:223:10 [INFO] [stdout] | [INFO] [stdout] 223 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> programs/betting-game/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 58 | return Err(ProgramError::InsufficientFunds); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 59 | [INFO] [stdout] 60 | / let ix = anchor_lang::solana_program::system_instruction::transfer( [INFO] [stdout] 61 | | &ctx.accounts.user.key(), [INFO] [stdout] 62 | | &ctx.accounts.campaign.key(), [INFO] [stdout] 63 | | amount [INFO] [stdout] 64 | | ); [INFO] [stdout] | |__________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/betting-game/src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let amount = campaign.bettingAmount; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | pub bettingAmount: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `creationTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub creationTime: i64, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `creation_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `endCampaign` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn endCampaign(ctx: Context) -> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `end_campaign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:11:75 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn create(ctx: Context, name: String, description: String,bettingAmount: u64)-> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let currTime = clock.unix_timestamp; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `curr_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 66 | | &ix, [INFO] [stdout] 67 | | &[ [INFO] [stdout] 68 | | ctx.accounts.user.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 100 | | &ix, [INFO] [stdout] 101 | | &[ [INFO] [stdout] 102 | | ctx.accounts.campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 105 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerOneAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_one_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerTwoAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:59 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_two_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerThreeAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:77 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_three_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 128 | | &ix, [INFO] [stdout] 129 | | &[ [INFO] [stdout] 130 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 127 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 146 | | &ix, [INFO] [stdout] 147 | | &[ [INFO] [stdout] 148 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 145 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 163 | | &ix, [INFO] [stdout] 164 | | &[ [INFO] [stdout] 165 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 169 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 162 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 181 | | &ix, [INFO] [stdout] 182 | | &[ [INFO] [stdout] 183 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 187 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 180 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:223:10 [INFO] [stdout] | [INFO] [stdout] 223 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/betting-game/src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> programs/betting-game/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 58 | return Err(ProgramError::InsufficientFunds); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 59 | [INFO] [stdout] 60 | / let ix = anchor_lang::solana_program::system_instruction::transfer( [INFO] [stdout] 61 | | &ctx.accounts.user.key(), [INFO] [stdout] 62 | | &ctx.accounts.campaign.key(), [INFO] [stdout] 63 | | amount [INFO] [stdout] 64 | | ); [INFO] [stdout] | |__________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/betting-game/src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let amount = campaign.bettingAmount; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | pub bettingAmount: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `creationTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub creationTime: i64, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `creation_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `endCampaign` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn endCampaign(ctx: Context) -> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `end_campaign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bettingAmount` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:11:75 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn create(ctx: Context, name: String, description: String,bettingAmount: u64)-> ProgramResult{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currTime` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let currTime = clock.unix_timestamp; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `curr_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 66 | | &ix, [INFO] [stdout] 67 | | &[ [INFO] [stdout] 68 | | ctx.accounts.user.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 100 | | &ix, [INFO] [stdout] 101 | | &[ [INFO] [stdout] 102 | | ctx.accounts.campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 105 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerOneAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_one_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerTwoAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:59 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_two_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winnerThreeAmt` should have a snake case name [INFO] [stdout] --> programs/betting-game/src/lib.rs:113:77 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_three_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 128 | | &ix, [INFO] [stdout] 129 | | &[ [INFO] [stdout] 130 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 127 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 146 | | &ix, [INFO] [stdout] 147 | | &[ [INFO] [stdout] 148 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 145 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 163 | | &ix, [INFO] [stdout] 164 | | &[ [INFO] [stdout] 165 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 169 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 162 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> programs/betting-game/src/lib.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | / anchor_lang::solana_program::program::invoke( [INFO] [stdout] 181 | | &ix, [INFO] [stdout] 182 | | &[ [INFO] [stdout] 183 | | campaign.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 187 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 180 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "b7e666a5ec57ceefe4812ff36eaf41ce692267999e3747d6666f138d68f86869", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7e666a5ec57ceefe4812ff36eaf41ce692267999e3747d6666f138d68f86869", kill_on_drop: false }` [INFO] [stdout] b7e666a5ec57ceefe4812ff36eaf41ce692267999e3747d6666f138d68f86869 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b3a36f6f7062159548a3e31efde52d9d5c8890bb79db2e01f91357709cfea815 [INFO] running `Command { std: "docker" "start" "-a" "b3a36f6f7062159548a3e31efde52d9d5c8890bb79db2e01f91357709cfea815", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stderr] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `solana` [INFO] [stderr] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stderr] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `solana` [INFO] [stderr] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, and `vita` and 6 more [INFO] [stderr] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | #[program] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:195:10 [INFO] [stderr] | [INFO] [stderr] 195 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:205:10 [INFO] [stderr] | [INFO] [stderr] 205 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:214:10 [INFO] [stderr] | [INFO] [stderr] 214 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:223:10 [INFO] [stderr] | [INFO] [stderr] 223 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stderr] --> programs/betting-game/src/lib.rs:234:10 [INFO] [stderr] | [INFO] [stderr] 234 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> programs/betting-game/src/lib.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 58 | return Err(ProgramError::InsufficientFunds); [INFO] [stderr] | ------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 59 | [INFO] [stderr] 60 | / let ix = anchor_lang::solana_program::system_instruction::transfer( [INFO] [stderr] 61 | | &ctx.accounts.user.key(), [INFO] [stderr] 62 | | &ctx.accounts.campaign.key(), [INFO] [stderr] 63 | | amount [INFO] [stderr] 64 | | ); [INFO] [stderr] | |__________^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount` [INFO] [stderr] --> programs/betting-game/src/lib.rs:50:13 [INFO] [stderr] | [INFO] [stderr] 50 | let amount = campaign.bettingAmount; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `bettingAmount` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:258:9 [INFO] [stderr] | [INFO] [stderr] 258 | pub bettingAmount: u64, [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `creationTime` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:259:9 [INFO] [stderr] | [INFO] [stderr] 259 | pub creationTime: i64, [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `creation_time` [INFO] [stderr] [INFO] [stderr] warning: function `endCampaign` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn endCampaign(ctx: Context) -> ProgramResult{ [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `end_campaign` [INFO] [stderr] [INFO] [stderr] warning: variable `bettingAmount` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:11:75 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn create(ctx: Context, name: String, description: String,bettingAmount: u64)-> ProgramResult{ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `betting_amount` [INFO] [stderr] [INFO] [stderr] warning: variable `currTime` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | let currTime = clock.unix_timestamp; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `curr_time` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 66 | | &ix, [INFO] [stderr] 67 | | &[ [INFO] [stderr] 68 | | ctx.accounts.user.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 72 | | ); [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 65 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 100 | | &ix, [INFO] [stderr] 101 | | &[ [INFO] [stderr] 102 | | ctx.accounts.campaign.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 105 | | ); [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 99 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: variable `winnerOneAmt` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:113:40 [INFO] [stderr] | [INFO] [stderr] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_one_amt` [INFO] [stderr] [INFO] [stderr] warning: variable `winnerTwoAmt` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:113:59 [INFO] [stderr] | [INFO] [stderr] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_two_amt` [INFO] [stderr] [INFO] [stderr] warning: variable `winnerThreeAmt` should have a snake case name [INFO] [stderr] --> programs/betting-game/src/lib.rs:113:77 [INFO] [stderr] | [INFO] [stderr] 113 | pub fn winner(ctx: Context,winnerOneAmt: u64, winnerTwoAmt: u64,winnerThreeAmt: u64) -> ProgramResult { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `winner_three_amt` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:127:13 [INFO] [stderr] | [INFO] [stderr] 127 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 128 | | &ix, [INFO] [stderr] 129 | | &[ [INFO] [stderr] 130 | | campaign.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 134 | | ); [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 127 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:145:9 [INFO] [stderr] | [INFO] [stderr] 145 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 146 | | &ix, [INFO] [stderr] 147 | | &[ [INFO] [stderr] 148 | | campaign.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 152 | | ); [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 145 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:162:9 [INFO] [stderr] | [INFO] [stderr] 162 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 163 | | &ix, [INFO] [stderr] 164 | | &[ [INFO] [stderr] 165 | | campaign.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 169 | | ); [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 162 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> programs/betting-game/src/lib.rs:180:5 [INFO] [stderr] | [INFO] [stderr] 180 | / anchor_lang::solana_program::program::invoke( [INFO] [stderr] 181 | | &ix, [INFO] [stderr] 182 | | &[ [INFO] [stderr] 183 | | campaign.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 187 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 180 | let _ = anchor_lang::solana_program::program::invoke( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `betting-game` (lib) generated 26 warnings [INFO] [stderr] warning: `betting-game` (lib test) generated 26 warnings (26 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.84 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/betting_game-16648cda9f347291) [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 betting_game [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b3a36f6f7062159548a3e31efde52d9d5c8890bb79db2e01f91357709cfea815", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3a36f6f7062159548a3e31efde52d9d5c8890bb79db2e01f91357709cfea815", kill_on_drop: false }` [INFO] [stdout] b3a36f6f7062159548a3e31efde52d9d5c8890bb79db2e01f91357709cfea815