[INFO] cloning repository https://github.com/Sure-Protocol/sure-v1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sure-Protocol/sure-v1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e03e2cb679792a1a1f08650375e08ebfd269adc [INFO] testing Sure-Protocol/sure-v1 against beta-2022-05-20 for beta-1.62-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1" "/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/Sure-Protocol/sure-v1 on toolchain beta-2022-05-20 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-05-20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sure-Protocol/sure-v1 [INFO] finished tweaking git repo https://github.com/Sure-Protocol/sure-v1 [INFO] tweaked toml for git repo https://github.com/Sure-Protocol/sure-v1 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Sure-Protocol/sure-v1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-05-20" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a0ff46c3aee7ff3fb904bc39b6c6b5e20f49983fc853bff752b2faea7aa471f [INFO] running `Command { std: "docker" "start" "-a" "9a0ff46c3aee7ff3fb904bc39b6c6b5e20f49983fc853bff752b2faea7aa471f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a0ff46c3aee7ff3fb904bc39b6c6b5e20f49983fc853bff752b2faea7aa471f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a0ff46c3aee7ff3fb904bc39b6c6b5e20f49983fc853bff752b2faea7aa471f", kill_on_drop: false }` [INFO] [stdout] 9a0ff46c3aee7ff3fb904bc39b6c6b5e20f49983fc853bff752b2faea7aa471f [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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb98595f21ffcf36490430aa235b6a1d3bd22fc72935da29fe42c461e43d384f [INFO] running `Command { std: "docker" "start" "-a" "fb98595f21ffcf36490430aa235b6a1d3bd22fc72935da29fe42c461e43d384f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [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.122 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling semver v1.0.7 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling heck v0.3.3 [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 blake3 v1.3.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap2 v0.5.3 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.9.18 [INFO] [stderr] Compiling solana-frozen-abi v1.9.18 [INFO] [stderr] Compiling solana-program v1.9.18 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solana-logger v1.9.18 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.1.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.9.18 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Compiling bytemuck v1.9.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling shank_macro_impl v0.0.2 [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 crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [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.1 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling shank_macro v0.0.2 [INFO] [stderr] Compiling anchor-syn v0.24.2 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [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 shank v0.0.2 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Compiling anchor-attribute-event v0.24.2 [INFO] [stderr] Compiling anchor-attribute-program v0.24.2 [INFO] [stderr] Compiling anchor-attribute-constant v0.24.2 [INFO] [stderr] Compiling anchor-attribute-state v0.24.2 [INFO] [stderr] Compiling anchor-attribute-account v0.24.2 [INFO] [stderr] Compiling anchor-attribute-interface v0.24.2 [INFO] [stderr] Compiling anchor-derive-accounts v0.24.2 [INFO] [stderr] Compiling anchor-attribute-error v0.24.2 [INFO] [stderr] Compiling anchor-attribute-access-control v0.24.2 [INFO] [stderr] Compiling spl-token v3.2.0 [INFO] [stderr] Compiling anchor-lang v0.24.2 [INFO] [stderr] Compiling spl-associated-token-account v1.0.3 [INFO] [stderr] Compiling mpl-token-vault v0.1.1 [INFO] [stderr] Compiling anchor-spl v0.24.2 [INFO] [stderr] Compiling vipers v2.0.4 [INFO] [stderr] Compiling mpl-token-metadata v1.2.7 [INFO] [stderr] Compiling sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [INFO] [stdout] warning: unused imports: `TickTrait`, `self` [INFO] [stdout] --> programs/pool/src/context.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | liquidity::{self, LiquidityPosition}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | tick::{Tick, TickTrait}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 48s [INFO] [stdout] warning: unused import: `assert_is_ata` [INFO] [stdout] --> programs/pool/src/context.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/states/contract.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::AccessError` [INFO] [stdout] --> programs/pool/src/states/pool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::AccessError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::account_info::Account` [INFO] [stdout] --> programs/pool/src/states/pool.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::{prelude::*, solana_program::account_info::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::TokenAccount` [INFO] [stdout] --> programs/pool/src/states/pool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token::TokenAccount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::bitmap::*` [INFO] [stdout] --> programs/pool/src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::bitmap::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> programs/pool/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | /// TODO: Find correct metadata id [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | ctx.accounts.metadata_program.key(), [INFO] [stdout] | ----------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | /// Available liquidity [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 350 | let free_liquidity = tick_account.available_liquidity(liquidity_position.tick_id); [INFO] [stdout] | ---------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_pos` [INFO] [stdout] --> programs/pool/src/lib.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | tick_pos: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vault` [INFO] [stdout] --> programs/pool/src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let vault = &ctx.accounts.vault; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `percentage_liquidity_used` [INFO] [stdout] --> programs/pool/src/states/tick.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | fn percentage_liquidity_used(&self, idx: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remaining_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 458 | fn get_remaining_liquidity(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/states/tick.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | self.update_callback(); [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/pool/src/states/tick.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | self.update_callback(); [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/pool/src/states/tick.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | self.update_callback(); [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/pool/src/states/tick.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | self.update_callback(); [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/pool/src/states/tick.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | self.update_callback(); [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/pool/src/states/tick.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | self.update_callback(); [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/pool/src/states/tick.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | self.update_callback(); [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: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fb98595f21ffcf36490430aa235b6a1d3bd22fc72935da29fe42c461e43d384f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb98595f21ffcf36490430aa235b6a1d3bd22fc72935da29fe42c461e43d384f", kill_on_drop: false }` [INFO] [stdout] fb98595f21ffcf36490430aa235b6a1d3bd22fc72935da29fe42c461e43d384f [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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff0596f3b07f3091a038c74bc7b31de862add3f8ee6a1cf0ed04019893ea2263 [INFO] running `Command { std: "docker" "start" "-a" "ff0596f3b07f3091a038c74bc7b31de862add3f8ee6a1cf0ed04019893ea2263", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `TickTrait`, `self` [INFO] [stdout] --> programs/pool/src/context.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | liquidity::{self, LiquidityPosition}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | tick::{Tick, TickTrait}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assert_is_ata` [INFO] [stdout] --> programs/pool/src/context.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/states/contract.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::AccessError` [INFO] [stdout] --> programs/pool/src/states/pool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::AccessError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::account_info::Account` [INFO] [stdout] --> programs/pool/src/states/pool.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::{prelude::*, solana_program::account_info::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::TokenAccount` [INFO] [stdout] --> programs/pool/src/states/pool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token::TokenAccount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::bitmap::*` [INFO] [stdout] --> programs/pool/src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::bitmap::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> programs/pool/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | /// TODO: Find correct metadata id [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | ctx.accounts.metadata_program.key(), [INFO] [stdout] | ----------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | /// Available liquidity [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 350 | let free_liquidity = tick_account.available_liquidity(liquidity_position.tick_id); [INFO] [stdout] | ---------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_pos` [INFO] [stdout] --> programs/pool/src/lib.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | tick_pos: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vault` [INFO] [stdout] --> programs/pool/src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let vault = &ctx.accounts.vault; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `percentage_liquidity_used` [INFO] [stdout] --> programs/pool/src/states/tick.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | fn percentage_liquidity_used(&self, idx: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remaining_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 458 | fn get_remaining_liquidity(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/states/tick.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | self.update_callback(); [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/pool/src/states/tick.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | self.update_callback(); [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/pool/src/states/tick.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | self.update_callback(); [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/pool/src/states/tick.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | self.update_callback(); [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/pool/src/states/tick.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | self.update_callback(); [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/pool/src/states/tick.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | self.update_callback(); [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/pool/src/states/tick.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | self.update_callback(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TickTrait`, `self` [INFO] [stdout] --> programs/pool/src/context.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | liquidity::{self, LiquidityPosition}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | tick::{Tick, TickTrait}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assert_is_ata` [INFO] [stdout] --> programs/pool/src/context.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/states/contract.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::AccessError` [INFO] [stdout] --> programs/pool/src/states/pool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::AccessError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::account_info::Account` [INFO] [stdout] --> programs/pool/src/states/pool.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::{prelude::*, solana_program::account_info::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::TokenAccount` [INFO] [stdout] --> programs/pool/src/states/pool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token::TokenAccount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::bitmap::*` [INFO] [stdout] --> programs/pool/src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::bitmap::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> programs/pool/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | /// TODO: Find correct metadata id [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | ctx.accounts.metadata_program.key(), [INFO] [stdout] | ----------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/pool/src/lib.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | /// Available liquidity [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 350 | let free_liquidity = tick_account.available_liquidity(liquidity_position.tick_id); [INFO] [stdout] | ---------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remove_insurance_2` [INFO] [stdout] --> programs/pool/src/states/tick.rs:613:13 [INFO] [stdout] | [INFO] [stdout] 613 | let remove_insurance_2 = tick.remove_liquidity(244); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remove_insurance_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_pos` [INFO] [stdout] --> programs/pool/src/lib.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | tick_pos: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vault` [INFO] [stdout] --> programs/pool/src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let vault = &ctx.accounts.vault; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:534:9 [INFO] [stdout] | [INFO] [stdout] 534 | assert_eq!(tick.liquidity_position_accumulated[idx], 1000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unaligned_references)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:535:39 [INFO] [stdout] | [INFO] [stdout] 535 | println!("accumulated: {:?}", tick.liquidity_position_accumulated); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:536:32 [INFO] [stdout] | [INFO] [stdout] 536 | println!("cool: {:?}", tick.liquidity_position_accumulated[idx + 1]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | tick.liquidity_position_accumulated [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:552:41 [INFO] [stdout] | [INFO] [stdout] 552 | println!("liquidity pos: {:?}", tick.liquidity_position_accumulated); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | assert_eq!(tick.liquidity, 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | assert_eq!(tick.liquidity_position_accumulated[0], 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:566:9 [INFO] [stdout] | [INFO] [stdout] 566 | assert_eq!(tick.liquidity, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:567:9 [INFO] [stdout] | [INFO] [stdout] 567 | assert_eq!(tick.liquidity_position_accumulated[0], 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:580:41 [INFO] [stdout] | [INFO] [stdout] 580 | println!("liquidity pos: {:?}", tick.liquidity_position_accumulated); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:582:9 [INFO] [stdout] | [INFO] [stdout] 582 | assert_eq!(tick.liquidity, 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:583:9 [INFO] [stdout] | [INFO] [stdout] 583 | assert_eq!(tick.liquidity_position_accumulated[0], 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:589:9 [INFO] [stdout] | [INFO] [stdout] 589 | assert_eq!(tick.used_liquidity, 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:598:9 [INFO] [stdout] | [INFO] [stdout] 598 | assert_eq!(tick.used_liquidity, 1_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:610:9 [INFO] [stdout] | [INFO] [stdout] 610 | assert_eq!(tick.used_liquidity, 1_000 - 500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> programs/pool/src/states/tick.rs:630:9 [INFO] [stdout] | [INFO] [stdout] 630 | assert_eq!(tick.used_liquidity, new_insurance_amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `percentage_liquidity_used` [INFO] [stdout] --> programs/pool/src/states/tick.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | fn percentage_liquidity_used(&self, idx: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remaining_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 458 | fn get_remaining_liquidity(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/states/tick.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | self.update_callback(); [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/pool/src/states/tick.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | self.update_callback(); [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/pool/src/states/tick.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | self.update_callback(); [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/pool/src/states/tick.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | self.update_callback(); [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/pool/src/states/tick.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | self.update_callback(); [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/pool/src/states/tick.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | self.update_callback(); [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/pool/src/states/tick.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | self.update_callback(); [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/pool/src/states/tick.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | tick.increase_rewards(); [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: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.71s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [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] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/sure_pool-11ad2e61561c64ba) [INFO] running `Command { std: "docker" "inspect" "ff0596f3b07f3091a038c74bc7b31de862add3f8ee6a1cf0ed04019893ea2263", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff0596f3b07f3091a038c74bc7b31de862add3f8ee6a1cf0ed04019893ea2263", kill_on_drop: false }` [INFO] [stdout] ff0596f3b07f3091a038c74bc7b31de862add3f8ee6a1cf0ed04019893ea2263 [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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7dfa8fc246a5a513062d1f05659c086f16f879d3611ec6989253a78f39e8c416 [INFO] running `Command { std: "docker" "start" "-a" "7dfa8fc246a5a513062d1f05659c086f16f879d3611ec6989253a78f39e8c416", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `TickTrait`, `self` [INFO] [stderr] --> programs/pool/src/context.rs:4:17 [INFO] [stderr] | [INFO] [stderr] 4 | liquidity::{self, LiquidityPosition}, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 7 | tick::{Tick, TickTrait}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `assert_is_ata` [INFO] [stderr] --> programs/pool/src/context.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::utils::errors::*` [INFO] [stderr] --> programs/pool/src/states/contract.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::utils::errors::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::thread::AccessError` [INFO] [stderr] --> programs/pool/src/states/pool.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::thread::AccessError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `solana_program::account_info::Account` [INFO] [stderr] --> programs/pool/src/states/pool.rs:3:31 [INFO] [stderr] | [INFO] [stderr] 3 | use anchor_lang::{prelude::*, solana_program::account_info::Account}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `anchor_spl::token::TokenAccount` [INFO] [stderr] --> programs/pool/src/states/pool.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_spl::token::TokenAccount; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::states::bitmap::*` [INFO] [stderr] --> programs/pool/src/lib.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::states::bitmap::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cmp` [INFO] [stderr] --> programs/pool/src/lib.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use std::cmp; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> programs/pool/src/lib.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | /// TODO: Find correct metadata id [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 220 | ctx.accounts.metadata_program.key(), [INFO] [stderr] | ----------------------------------- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> programs/pool/src/lib.rs:349:9 [INFO] [stderr] | [INFO] [stderr] 349 | /// Available liquidity [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 350 | let free_liquidity = tick_account.available_liquidity(liquidity_position.tick_id); [INFO] [stderr] | ---------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused variable: `word_pos` [INFO] [stderr] --> programs/pool/src/states/bitmap.rs:71:24 [INFO] [stderr] | [INFO] [stderr] 71 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stderr] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tick_pos` [INFO] [stderr] --> programs/pool/src/lib.rs:181:9 [INFO] [stderr] | [INFO] [stderr] 181 | tick_pos: u64, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vault` [INFO] [stderr] --> programs/pool/src/lib.rs:338:13 [INFO] [stderr] | [INFO] [stderr] 338 | let vault = &ctx.accounts.vault; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vault` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `percentage_liquidity_used` [INFO] [stderr] --> programs/pool/src/states/tick.rs:428:8 [INFO] [stderr] | [INFO] [stderr] 428 | fn percentage_liquidity_used(&self, idx: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_remaining_liquidity` [INFO] [stderr] --> programs/pool/src/states/tick.rs:458:8 [INFO] [stderr] | [INFO] [stderr] 458 | fn get_remaining_liquidity(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> programs/pool/src/states/tick.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | self.update_callback(); [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/pool/src/states/tick.rs:169:9 [INFO] [stderr] | [INFO] [stderr] 169 | self.update_callback(); [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/pool/src/states/tick.rs:203:9 [INFO] [stderr] | [INFO] [stderr] 203 | self.update_callback(); [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/pool/src/states/tick.rs:253:9 [INFO] [stderr] | [INFO] [stderr] 253 | self.update_callback(); [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/pool/src/states/tick.rs:294:9 [INFO] [stderr] | [INFO] [stderr] 294 | self.update_callback(); [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/pool/src/states/tick.rs:309:9 [INFO] [stderr] | [INFO] [stderr] 309 | self.update_callback(); [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/pool/src/states/tick.rs:359:9 [INFO] [stderr] | [INFO] [stderr] 359 | self.update_callback(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused variable: `remove_insurance_2` [INFO] [stderr] --> programs/pool/src/states/tick.rs:613:13 [INFO] [stderr] | [INFO] [stderr] 613 | let remove_insurance_2 = tick.remove_liquidity(244); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remove_insurance_2` [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:534:9 [INFO] [stderr] | [INFO] [stderr] 534 | assert_eq!(tick.liquidity_position_accumulated[idx], 1000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unaligned_references)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:535:39 [INFO] [stderr] | [INFO] [stderr] 535 | println!("accumulated: {:?}", tick.liquidity_position_accumulated); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:536:32 [INFO] [stderr] | [INFO] [stderr] 536 | println!("cool: {:?}", tick.liquidity_position_accumulated[idx + 1]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:540:13 [INFO] [stderr] | [INFO] [stderr] 540 | tick.liquidity_position_accumulated [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:552:41 [INFO] [stderr] | [INFO] [stderr] 552 | println!("liquidity pos: {:?}", tick.liquidity_position_accumulated); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:554:9 [INFO] [stderr] | [INFO] [stderr] 554 | assert_eq!(tick.liquidity, 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:555:9 [INFO] [stderr] | [INFO] [stderr] 555 | assert_eq!(tick.liquidity_position_accumulated[0], 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:557:9 [INFO] [stderr] | [INFO] [stderr] 557 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:566:9 [INFO] [stderr] | [INFO] [stderr] 566 | assert_eq!(tick.liquidity, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:567:9 [INFO] [stderr] | [INFO] [stderr] 567 | assert_eq!(tick.liquidity_position_accumulated[0], 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:569:9 [INFO] [stderr] | [INFO] [stderr] 569 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:580:41 [INFO] [stderr] | [INFO] [stderr] 580 | println!("liquidity pos: {:?}", tick.liquidity_position_accumulated); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:582:9 [INFO] [stderr] | [INFO] [stderr] 582 | assert_eq!(tick.liquidity, 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:583:9 [INFO] [stderr] | [INFO] [stderr] 583 | assert_eq!(tick.liquidity_position_accumulated[0], 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:585:9 [INFO] [stderr] | [INFO] [stderr] 585 | assert_eq!(tick.liquidity_position_rewards[0], 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:589:9 [INFO] [stderr] | [INFO] [stderr] 589 | assert_eq!(tick.used_liquidity, 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:598:9 [INFO] [stderr] | [INFO] [stderr] 598 | assert_eq!(tick.used_liquidity, 1_000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:610:9 [INFO] [stderr] | [INFO] [stderr] 610 | assert_eq!(tick.used_liquidity, 1_000 - 500); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> programs/pool/src/states/tick.rs:630:9 [INFO] [stderr] | [INFO] [stderr] 630 | assert_eq!(tick.used_liquidity, new_insurance_amount); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stderr] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> programs/pool/src/states/tick.rs:559:9 [INFO] [stderr] | [INFO] [stderr] 559 | tick.increase_rewards(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `sure-pool` (lib) generated 23 warnings [INFO] [stderr] warning: `sure-pool` (lib test) generated 44 warnings (23 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.48s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sure_pool-11ad2e61561c64ba) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test states::tick::tests::add_and_buy_insurance ... ok [INFO] [stdout] test states::tick::tests::add_remove_liquidity ... ok [INFO] [stdout] test utils::bitmap::tests::test_me ... ok [INFO] [stdout] test test_id ... ok [INFO] [stdout] test states::tick::tests::shift_position ... ok [INFO] [stdout] test states::tick::tests::generate_rewards ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- states::tick::tests::generate_rewards stdout ---- [INFO] [stdout] Error is what: Unsupported sysvar [INFO] [stdout] Error is what: Unsupported sysvar [INFO] [stdout] Error is what: Unsupported sysvar [INFO] [stdout] thread 'states::tick::tests::generate_rewards' panicked at 'called `Result::unwrap()` on an `Err` value: CouldNotGetTickTimestamp', programs/pool/src/states/tick.rs:633:33 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56176bfe245d - std::backtrace_rs::backtrace::libunwind::trace::ha8406fd4a233ad1f [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x56176bfe245d - std::backtrace_rs::backtrace::trace_unsynchronized::h95f26ca4bd23bd0f [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x56176bfe245d - std::sys_common::backtrace::_print_fmt::h9955f0b025c061cd [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x56176bfe245d - ::fmt::h1025ecd2bac85833 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x56176c00517c - core::fmt::write::hd5fa34bae8a7f0ea [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/fmt/mod.rs:1196:17 [INFO] [stdout] 5: 0x56176bfdef41 - std::io::Write::write_fmt::h84051526396eafd5 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/io/mod.rs:1654:15 [INFO] [stdout] 6: 0x56176bfe3f55 - std::sys_common::backtrace::_print::h330c8fadbab13d8b [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x56176bfe3f55 - std::sys_common::backtrace::print::h38d4cf1c3e16e656 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x56176bfe3f55 - std::panicking::default_hook::{{closure}}::h56cdf194ec124abb [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x56176bfe3c00 - std::panicking::default_hook::h9929fdc60733f795 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x56176bfe4528 - std::panicking::rust_panic_with_hook::h490228be5a55104d [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x56176bfe43d7 - std::panicking::begin_panic_handler::{{closure}}::hfd963b6683c36656 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x56176bfe2914 - std::sys_common::backtrace::__rust_end_short_backtrace::h2912e3decfe2cba4 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x56176bfe4109 - rust_begin_unwind [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x56176bf63603 - core::panicking::panic_fmt::hf4ba906a2c8693a2 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/panicking.rs:142:14 [INFO] [stdout] 15: 0x56176bf636f3 - core::result::unwrap_failed::h328e70098ea1018f [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x56176bf63af5 - core::result::Result::unwrap::ha2762d38454dafed [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/result.rs:1078:23 [INFO] [stdout] 17: 0x56176bf65e73 - sure_pool::states::tick::tests::generate_rewards::h3faf8b199bb0c7a6 [INFO] [stdout] at /opt/rustwide/workdir/programs/pool/src/states/tick.rs:633:9 [INFO] [stdout] 18: 0x56176bf65cda - sure_pool::states::tick::tests::generate_rewards::{{closure}}::h36fc11b87123757e [INFO] [stdout] at /opt/rustwide/workdir/programs/pool/src/states/tick.rs:619:5 [INFO] [stdout] 19: 0x56176bf6fc5e - core::ops::function::FnOnce::call_once::h9974c09c6f8019f0 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 20: 0x56176bfa5883 - core::ops::function::FnOnce::call_once::he3f3ce7b57606922 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 21: 0x56176bfa5883 - test::__rust_begin_short_backtrace::h7f70c09aa5d912df [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/test/src/lib.rs:573:5 [INFO] [stdout] 22: 0x56176bfa463a - as core::ops::function::FnOnce>::call_once::h62347161a330de87 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/alloc/src/boxed.rs:1872:9 [INFO] [stdout] 23: 0x56176bfa463a - as core::ops::function::FnOnce<()>>::call_once::h10da6b5758ac6847 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x56176bfa463a - std::panicking::try::do_call::h71413bc507bbc4e2 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x56176bfa463a - std::panicking::try::h0411d95bc90139e0 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x56176bfa463a - std::panic::catch_unwind::ha1edba92348980b8 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x56176bfa463a - test::run_test_in_process::h8beffdcfd9dbc6b3 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/test/src/lib.rs:596:18 [INFO] [stdout] 28: 0x56176bfa463a - test::run_test::run_test_inner::{{closure}}::hfbaa04c7659c7a27 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/test/src/lib.rs:490:39 [INFO] [stdout] 29: 0x56176bf7088d - test::run_test::run_test_inner::{{closure}}::hcd0894578967f8ba [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/test/src/lib.rs:517:37 [INFO] [stdout] 30: 0x56176bf7088d - std::sys_common::backtrace::__rust_begin_short_backtrace::h83b56239eb73178f [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x56176bf76338 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc731689efd2b66f4 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/thread/mod.rs:501:17 [INFO] [stdout] 32: 0x56176bf76338 - as core::ops::function::FnOnce<()>>::call_once::h1a34616ab93f415b [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x56176bf76338 - std::panicking::try::do_call::he9237158437382be [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x56176bf76338 - std::panicking::try::ha501127d54394055 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x56176bf76338 - std::panic::catch_unwind::hf11cd5c846b8423f [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x56176bf76338 - std::thread::Builder::spawn_unchecked_::{{closure}}::h49bb14c1c9c170d4 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/thread/mod.rs:500:30 [INFO] [stdout] 37: 0x56176bf76338 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc1713d54c925fdd4 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 38: 0x56176bfe8c63 - as core::ops::function::FnOnce>::call_once::h997dc5bc9efdb91e [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/alloc/src/boxed.rs:1872:9 [INFO] [stdout] 39: 0x56176bfe8c63 - as core::ops::function::FnOnce>::call_once::h482cb6422469721b [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/alloc/src/boxed.rs:1872:9 [INFO] [stdout] 40: 0x56176bfe8c63 - std::sys::unix::thread::Thread::new::thread_start::hcd1011649240eef0 [INFO] [stdout] at /rustc/daf68b1f766e67ffe040260b15c218301853386a/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7f5803815609 - start_thread [INFO] [stdout] 42: 0x7f58035e5163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] states::tick::tests::generate_rewards [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "7dfa8fc246a5a513062d1f05659c086f16f879d3611ec6989253a78f39e8c416", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dfa8fc246a5a513062d1f05659c086f16f879d3611ec6989253a78f39e8c416", kill_on_drop: false }` [INFO] [stdout] 7dfa8fc246a5a513062d1f05659c086f16f879d3611ec6989253a78f39e8c416