[INFO] cloning repository https://github.com/adityabharadwaj198/pluto-finance-solana [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adityabharadwaj198/pluto-finance-solana" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityabharadwaj198%2Fpluto-finance-solana", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityabharadwaj198%2Fpluto-finance-solana'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b0d97af03f6eb771547ddb4c9f637d9ed0de17b [INFO] testing adityabharadwaj198/pluto-finance-solana against beta-2022-09-25 for beta-1.65-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityabharadwaj198%2Fpluto-finance-solana" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adityabharadwaj198/pluto-finance-solana on toolchain beta-2022-09-25 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-09-25" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adityabharadwaj198/pluto-finance-solana [INFO] finished tweaking git repo https://github.com/adityabharadwaj198/pluto-finance-solana [INFO] tweaked toml for git repo https://github.com/adityabharadwaj198/pluto-finance-solana written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/adityabharadwaj198/pluto-finance-solana already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-09-25" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c43f6171fb843e885dbf6657efdbb778452a45c8142ca2a22fffd8d307e2f9a [INFO] running `Command { std: "docker" "start" "-a" "9c43f6171fb843e885dbf6657efdbb778452a45c8142ca2a22fffd8d307e2f9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c43f6171fb843e885dbf6657efdbb778452a45c8142ca2a22fffd8d307e2f9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c43f6171fb843e885dbf6657efdbb778452a45c8142ca2a22fffd8d307e2f9a", kill_on_drop: false }` [INFO] [stdout] 9c43f6171fb843e885dbf6657efdbb778452a45c8142ca2a22fffd8d307e2f9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60347731bad413b5e572538e026b8dcb87cb04b470a69621ed9ff5becdadf038 [INFO] running `Command { std: "docker" "start" "-a" "60347731bad413b5e572538e026b8dcb87cb04b470a69621ed9ff5becdadf038", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling semver v1.0.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.79 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.9.5 [INFO] [stderr] Compiling solana-frozen-abi v1.9.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.79 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling solana-program v1.9.5 [INFO] [stderr] Compiling memmap2 v0.5.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling zeroize v1.5.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling solana-logger v1.9.5 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.79 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling solana-sdk-macro v1.9.5 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.79 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.79 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling block-buffer v0.10.1 [INFO] [stderr] Compiling crypto-common v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling digest v0.10.1 [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 curve25519-dalek v3.2.0 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling anchor-syn v0.21.0 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling num_enum_derive v0.5.6 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling num_enum v0.5.6 [INFO] [stderr] Compiling anchor-attribute-program v0.21.0 [INFO] [stderr] Compiling anchor-attribute-error v0.21.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.21.0 [INFO] [stderr] Compiling anchor-attribute-state v0.21.0 [INFO] [stderr] Compiling anchor-attribute-account v0.21.0 [INFO] [stderr] Compiling anchor-attribute-event v0.21.0 [INFO] [stderr] Compiling anchor-attribute-interface v0.21.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.21.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.21.0 [INFO] [stderr] Compiling spl-token v3.3.0 [INFO] [stderr] Compiling anchor-lang v0.21.0 [INFO] [stderr] Compiling pyth-client v0.4.0 [INFO] [stderr] Compiling oracle v0.1.0 (/opt/rustwide/workdir/programs/oracle) [INFO] [stderr] Compiling spl-associated-token-account v1.0.3 [INFO] [stderr] Compiling anchor-spl v0.21.0 [INFO] [stderr] Compiling club90 v0.1.0 (/opt/rustwide/workdir/programs/club90) [INFO] [stdout] warning: unused imports: `CorpAction`, `PriceStatus`, `PriceType`, `load_mapping`, `load_price`, `load_product` [INFO] [stdout] --> programs/club90/src/lib.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use pyth_client::{PriceType, PriceStatus, CorpAction, load_mapping, load_product, load_price}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_feed_update` is never used [INFO] [stdout] --> programs/club90/src/math.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn check_feed_update( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_swap_out_amount` is never used [INFO] [stdout] --> programs/club90/src/math.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn calculate_swap_out_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexA` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | indexA: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexB` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | indexB: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | token::transfer(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | token::burn(cpi_ctx, burned_amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | token::burn(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 09s [INFO] running `Command { std: "docker" "inspect" "60347731bad413b5e572538e026b8dcb87cb04b470a69621ed9ff5becdadf038", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60347731bad413b5e572538e026b8dcb87cb04b470a69621ed9ff5becdadf038", kill_on_drop: false }` [INFO] [stdout] 60347731bad413b5e572538e026b8dcb87cb04b470a69621ed9ff5becdadf038 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 308eefc53415d8d785ed5a108eabee289a7f7d4c77864139b1320cc364f54fbb [INFO] running `Command { std: "docker" "start" "-a" "308eefc53415d8d785ed5a108eabee289a7f7d4c77864139b1320cc364f54fbb", kill_on_drop: false }` [INFO] [stderr] Compiling oracle v0.1.0 (/opt/rustwide/workdir/programs/oracle) [INFO] [stdout] warning: unused imports: `CorpAction`, `PriceStatus`, `PriceType`, `load_mapping`, `load_price`, `load_product` [INFO] [stdout] --> programs/club90/src/lib.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use pyth_client::{PriceType, PriceStatus, CorpAction, load_mapping, load_product, load_price}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling club90 v0.1.0 (/opt/rustwide/workdir/programs/club90) [INFO] [stdout] warning: function `check_feed_update` is never used [INFO] [stdout] --> programs/club90/src/math.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn check_feed_update( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_swap_out_amount` is never used [INFO] [stdout] --> programs/club90/src/math.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn calculate_swap_out_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexA` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | indexA: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexB` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | indexB: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | token::transfer(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | token::burn(cpi_ctx, burned_amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | token::burn(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CorpAction`, `PriceStatus`, `PriceType`, `load_mapping`, `load_price`, `load_product` [INFO] [stdout] --> programs/club90/src/lib.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use pyth_client::{PriceType, PriceStatus, CorpAction, load_mapping, load_product, load_price}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_feed_update` is never used [INFO] [stdout] --> programs/club90/src/math.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn check_feed_update( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexA` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | indexA: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexB` should have a snake case name [INFO] [stdout] --> programs/club90/src/math.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | indexB: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `index_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | token::transfer(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | token::burn(cpi_ctx, burned_amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/club90/src/lib.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | token::burn(cpi_ctx, amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.88s [INFO] running `Command { std: "docker" "inspect" "308eefc53415d8d785ed5a108eabee289a7f7d4c77864139b1320cc364f54fbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "308eefc53415d8d785ed5a108eabee289a7f7d4c77864139b1320cc364f54fbb", kill_on_drop: false }` [INFO] [stdout] 308eefc53415d8d785ed5a108eabee289a7f7d4c77864139b1320cc364f54fbb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 276435c85b4ddc5ef45ab05a7f9fdeb21ac6bacb670b1f40df42d0c1cb1a8820 [INFO] running `Command { std: "docker" "start" "-a" "276435c85b4ddc5ef45ab05a7f9fdeb21ac6bacb670b1f40df42d0c1cb1a8820", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `CorpAction`, `PriceStatus`, `PriceType`, `load_mapping`, `load_price`, `load_product` [INFO] [stderr] --> programs/club90/src/lib.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | use pyth_client::{PriceType, PriceStatus, CorpAction, load_mapping, load_product, load_price}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `check_feed_update` is never used [INFO] [stderr] --> programs/club90/src/math.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn check_feed_update( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `calculate_swap_out_amount` is never used [INFO] [stderr] --> programs/club90/src/math.rs:119:8 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn calculate_swap_out_amount( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `indexA` should have a snake case name [INFO] [stderr] --> programs/club90/src/math.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | indexA: usize, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `index_a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `indexB` should have a snake case name [INFO] [stderr] --> programs/club90/src/math.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | indexB: usize, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `index_b` [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> programs/club90/src/lib.rs:226:9 [INFO] [stderr] | [INFO] [stderr] 226 | token::transfer(cpi_ctx, amount); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> programs/club90/src/lib.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | token::burn(cpi_ctx, burned_amount); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> programs/club90/src/lib.rs:275:13 [INFO] [stderr] | [INFO] [stderr] 275 | token::burn(cpi_ctx, amount); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `club90` (lib) generated 8 warnings [INFO] [stderr] warning: `club90` (lib test) generated 7 warnings (7 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/club90-74bffb0289a53acd) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test math::tests::test_calculate_amount_mint_in_usd ... ok [INFO] [stdout] test math::tests::test_calculate_burned_shares ... ok [INFO] [stdout] test math::tests::test_calculate_max_burned_in_token ... ok [INFO] [stdout] test math::tests::test_calculate_debt_error ... ok [INFO] [stdout] test math::tests::test_calculate_debt_success ... ok [INFO] [stdout] test math::tests::test_calculate_max_withdraw_in_usd ... ok [INFO] [stdout] test math::tests::test_calculate_max_user_debt_in_usd ... ok [INFO] [stdout] test math::tests::test_calculate_new_shares_initial ... ok [INFO] [stdout] test math::tests::test_calculate_new_shares_next ... ok [INFO] [stdout] test math::tests::test_calculate_swap_out_amount ... ok [INFO] [stdout] test math::tests::test_calculate_user_debt_in_usd ... ok [INFO] [stdout] test test_id ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oracle-c18d0e8caca19a33) [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 club90 [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] [stderr] Doc-tests oracle [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" "276435c85b4ddc5ef45ab05a7f9fdeb21ac6bacb670b1f40df42d0c1cb1a8820", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "276435c85b4ddc5ef45ab05a7f9fdeb21ac6bacb670b1f40df42d0c1cb1a8820", kill_on_drop: false }` [INFO] [stdout] 276435c85b4ddc5ef45ab05a7f9fdeb21ac6bacb670b1f40df42d0c1cb1a8820