[INFO] fetching crate solana-storage-program 1.0.24... [INFO] checking solana-storage-program-1.0.24 against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] extracting crate solana-storage-program 1.0.24 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate solana-storage-program 1.0.24 on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate solana-storage-program 1.0.24 [INFO] finished tweaking crates.io crate solana-storage-program 1.0.24 [INFO] tweaked toml for crates.io crate solana-storage-program 1.0.24 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7887852d26931e9b1fc04f1b586cb535854ebc5951c11227e2e7fda5aa57377d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7887852d26931e9b1fc04f1b586cb535854ebc5951c11227e2e7fda5aa57377d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7887852d26931e9b1fc04f1b586cb535854ebc5951c11227e2e7fda5aa57377d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7887852d26931e9b1fc04f1b586cb535854ebc5951c11227e2e7fda5aa57377d", kill_on_drop: false }` [INFO] [stdout] 7887852d26931e9b1fc04f1b586cb535854ebc5951c11227e2e7fda5aa57377d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6fcc251512ec8d4d02369bdac46f6e18f1b18c15cd533347c44947ee0f2e3a04 [INFO] running `Command { std: "docker" "start" "-a" "6fcc251512ec8d4d02369bdac46f6e18f1b18c15cd533347c44947ee0f2e3a04", kill_on_drop: false }` [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.6.6 [INFO] [stderr] Compiling solana-frozen-abi v1.6.6 [INFO] [stderr] Compiling solana-program v1.6.6 [INFO] [stderr] Compiling solana-sdk v1.6.6 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling solana-sdk-macro v1.6.6 [INFO] [stderr] Checking solana-logger v1.6.6 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking solana-crate-features v1.6.6 [INFO] [stderr] Checking solana-storage-program v1.0.24 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `solana_sdk::account::KeyedAccount` [INFO] [stdout] --> src/storage_contract.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | account::{Account, KeyedAccount}, [INFO] [stdout] | ^^^^^^^^^^^^ no `KeyedAccount` in `account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `solana_sdk::account::KeyedAccount` [INFO] [stdout] --> src/storage_processor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | account::KeyedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `KeyedAccount` in `account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sysvar` [INFO] [stdout] --> src/storage_processor.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | sysvar::{clock::Clock, rewards::Rewards, Sysvar}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `solana_sdk::account::KeyedAccount` [INFO] [stdout] --> src/storage_contract.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | account::{Account, KeyedAccount}, [INFO] [stdout] | ^^^^^^^^^^^^ no `KeyedAccount` in `account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `solana_sdk::account::KeyedAccount` [INFO] [stdout] --> src/storage_processor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | account::KeyedAccount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `KeyedAccount` in `account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `solana_sdk::account::create_keyed_accounts`, `solana_sdk::account::KeyedAccount`, `solana_sdk::clock::DEFAULT_SLOTS_PER_SEGMENT` [INFO] [stdout] --> src/storage_processor.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 116 | account::{create_keyed_accounts, Account, KeyedAccount}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `KeyedAccount` in `account` [INFO] [stdout] | | [INFO] [stdout] | no `create_keyed_accounts` in `account` [INFO] [stdout] 117 | clock::DEFAULT_SLOTS_PER_SEGMENT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_SLOTS_PER_SEGMENT` in `clock` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 116 | account::{create_account, Account, KeyedAccount}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 117 | clock::DEFAULT_SLOTS_PER_EPOCH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sysvar` [INFO] [stdout] --> src/storage_processor.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | sysvar::{clock::Clock, rewards::Rewards, Sysvar}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sysvar` [INFO] [stdout] --> src/storage_processor.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | Sysvar, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_rewards_pool` found for mutable reference `&mut GenesisConfig` in the current scope [INFO] [stdout] --> src/rewards_pools.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | genesis_config.add_rewards_pool(pubkey, create_rewards_pool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut GenesisConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:180:41 [INFO] [stdout] | [INFO] [stdout] 180 | let current_segment = clock.segment; [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_rewards_pool` found for mutable reference `&mut solana_sdk::genesis_config::GenesisConfig` in the current scope [INFO] [stdout] --> src/rewards_pools.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | genesis_config.add_rewards_pool(pubkey, create_rewards_pool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut solana_sdk::genesis_config::GenesisConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:256:73 [INFO] [stdout] | [INFO] [stdout] 256 | debug!("advertise new segment: {} orig: {}", segment, clock.segment); [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:257:60 [INFO] [stdout] | [INFO] [stdout] 257 | if segment < *state_segment || segment > clock.segment { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `storage_point_value` on type `Rewards` [INFO] [stdout] --> src/storage_contract.rs:387:47 [INFO] [stdout] | [INFO] [stdout] 387 | check_redeemable(credits, rewards.storage_point_value, rewards_pool, owner)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `validator_point_value`, `unused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `storage_point_value` on type `Rewards` [INFO] [stdout] --> src/storage_contract.rs:404:47 [INFO] [stdout] | [INFO] [stdout] 404 | check_redeemable(credits, rewards.storage_point_value, rewards_pool, owner)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `validator_point_value`, `unused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_instruction.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | bincode::serialized_size(&AccountMeta::new(Pubkey::new_rand(), false)).unwrap_or(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | Instruction::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | let clock = Clock::from_keyed_account(&rest[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | let clock = Clock::from_keyed_account(&rest[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Rewards` in the current scope [INFO] [stdout] --> src/storage_processor.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | let rewards = Rewards::from_keyed_account(&rewards[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Rewards` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:180:41 [INFO] [stdout] | [INFO] [stdout] 180 | let current_segment = clock.segment; [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let clock = Clock::from_keyed_account(&clock[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let clock = Clock::from_keyed_account(&clock[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | / solana_sdk::declare_program!( [INFO] [stdout] 9 | | "Storage111111111111111111111111111111111111", [INFO] [stdout] 10 | | solana_storage_program, [INFO] [stdout] 11 | | process_instruction [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ expected 3 arguments [INFO] [stdout] 12 | | ); [INFO] [stdout] | | - [INFO] [stdout] | |__| [INFO] [stdout] | supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/storage_processor.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn process_instruction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | _program_id: &Pubkey, [INFO] [stdout] | -------------------- [INFO] [stdout] 15 | keyed_accounts: &[KeyedAccount], [INFO] [stdout] | ------------------------------- [INFO] [stdout] 16 | data: &[u8], [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:256:73 [INFO] [stdout] | [INFO] [stdout] 256 | debug!("advertise new segment: {} orig: {}", segment, clock.segment); [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `segment` on type `Clock` [INFO] [stdout] --> src/storage_contract.rs:257:60 [INFO] [stdout] | [INFO] [stdout] 257 | if segment < *state_segment || segment > clock.segment { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `storage_point_value` on type `Rewards` [INFO] [stdout] --> src/storage_contract.rs:387:47 [INFO] [stdout] | [INFO] [stdout] 387 | check_redeemable(credits, rewards.storage_point_value, rewards_pool, owner)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `validator_point_value`, `unused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `storage_point_value` on type `Rewards` [INFO] [stdout] --> src/storage_contract.rs:404:47 [INFO] [stdout] | [INFO] [stdout] 404 | check_redeemable(credits, rewards.storage_point_value, rewards_pool, owner)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `validator_point_value`, `unused` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `solana-storage-program` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_instruction.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | bincode::serialized_size(&AccountMeta::new(Pubkey::new_rand(), false)).unwrap_or(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | Instruction::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::instruction::Instruction::new`: Please use another Instruction constructor instead, such as `Instruction::new_with_bincode` [INFO] [stdout] --> src/storage_instruction.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | Instruction::new(id(), &storage_instruction, account_metas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | let clock = Clock::from_keyed_account(&rest[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | let clock = Clock::from_keyed_account(&rest[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Rewards` in the current scope [INFO] [stdout] --> src/storage_processor.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | let rewards = Rewards::from_keyed_account(&rewards[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Rewards` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let clock = Clock::from_keyed_account(&clock[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_keyed_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let clock = Clock::from_keyed_account(&clock[0])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:152:29 [INFO] [stdout] | [INFO] [stdout] 152 | let account_owner = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:173:50 [INFO] [stdout] | [INFO] [stdout] 173 | let mut clock_account = Clock::default().create_account(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | Clock::to_account( [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Clock` has no field named `segment` [INFO] [stdout] --> src/storage_processor.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | segment: 2, [INFO] [stdout] | ^^^^^^^ `Clock` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 188 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:200:59 [INFO] [stdout] | [INFO] [stdout] 200 | let clock_account = RefCell::new(Clock::default().create_account(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:214:22 [INFO] [stdout] | [INFO] [stdout] 214 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:225:50 [INFO] [stdout] | [INFO] [stdout] 225 | let mut clock_account = Clock::default().create_account(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:226:16 [INFO] [stdout] | [INFO] [stdout] 226 | Clock::to_account( [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Clock` has no field named `segment` [INFO] [stdout] --> src/storage_processor.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | segment: 1, [INFO] [stdout] | ^^^^^^^ `Clock` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:245:22 [INFO] [stdout] | [INFO] [stdout] 245 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:265:29 [INFO] [stdout] | [INFO] [stdout] 265 | let account_owner = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_sdk::pubkey::Pubkey::new_rand`: Please use 'Pubkey::new_unique' instead [INFO] [stdout] --> src/storage_processor.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 266 | let pubkey = Pubkey::new_rand(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:284:50 [INFO] [stdout] | [INFO] [stdout] 284 | let mut clock_account = Clock::default().create_account(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_account` found for struct `Clock` in the current scope [INFO] [stdout] --> src/storage_processor.rs:285:16 [INFO] [stdout] | [INFO] [stdout] 285 | Clock::to_account( [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Clock` has no field named `segment` [INFO] [stdout] --> src/storage_processor.rs:288:17 [INFO] [stdout] | [INFO] [stdout] 288 | segment: 1, [INFO] [stdout] | ^^^^^^^ `Clock` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `slot`, `epoch_start_timestamp`, `epoch`, `leader_schedule_epoch`, `unix_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | / solana_sdk::declare_program!( [INFO] [stdout] 9 | | "Storage111111111111111111111111111111111111", [INFO] [stdout] 10 | | solana_storage_program, [INFO] [stdout] 11 | | process_instruction [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ expected 3 arguments [INFO] [stdout] 12 | | ); [INFO] [stdout] | | - [INFO] [stdout] | |__| [INFO] [stdout] | supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/storage_processor.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn process_instruction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | _program_id: &Pubkey, [INFO] [stdout] | -------------------- [INFO] [stdout] 15 | keyed_accounts: &[KeyedAccount], [INFO] [stdout] | ------------------------------- [INFO] [stdout] 16 | data: &[u8], [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0560, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6fcc251512ec8d4d02369bdac46f6e18f1b18c15cd533347c44947ee0f2e3a04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fcc251512ec8d4d02369bdac46f6e18f1b18c15cd533347c44947ee0f2e3a04", kill_on_drop: false }` [INFO] [stdout] 6fcc251512ec8d4d02369bdac46f6e18f1b18c15cd533347c44947ee0f2e3a04