[INFO] fetching crate near-primitives 0.27.0... [INFO] checking near-primitives-0.27.0 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate near-primitives 0.27.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate near-primitives 0.27.0 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate near-primitives 0.27.0 [INFO] finished tweaking crates.io crate near-primitives 0.27.0 [INFO] tweaked toml for crates.io crate near-primitives 0.27.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 218 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bolero v0.10.1 (available: v0.11.1) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding easy-ext v0.2.9 (available: v1.0.2) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding num-rational v0.3.2 (available: v0.4.2) [INFO] [stderr] Adding primitive-types v0.10.1 (available: v0.13.1) [INFO] [stderr] Adding smart-default v0.6.0 (available: v0.7.1) [INFO] [stderr] Adding strum v0.24.1 (available: v0.26.3) [INFO] [stderr] Adding thiserror v1.0.68 (available: v2.0.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9009405d909552b763859547f5b157741c9ff7abc9083ee96ddac03c65b196a4 [INFO] running `Command { std: "docker" "start" "-a" "9009405d909552b763859547f5b157741c9ff7abc9083ee96ddac03c65b196a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9009405d909552b763859547f5b157741c9ff7abc9083ee96ddac03c65b196a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9009405d909552b763859547f5b157741c9ff7abc9083ee96ddac03c65b196a4", kill_on_drop: false }` [INFO] [stdout] 9009405d909552b763859547f5b157741c9ff7abc9083ee96ddac03c65b196a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0671fd761d3d84ec1903e5d4075c657a044749e57b7e8cb131db9eade7d159c1 [INFO] running `Command { std: "docker" "start" "-a" "0671fd761d3d84ec1903e5d4075c657a044749e57b7e8cb131db9eade7d159c1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling thiserror v1.0.68 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling borsh v1.5.2 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking near-schema-checker-core v0.27.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling near-schema-checker-macro v0.27.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Checking near-schema-checker-lib v0.27.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling cc v1.1.37 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking json_comments v0.2.2 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking pretty-hex v0.3.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking near-stdx v0.27.0 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Compiling easy-ext v0.2.9 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking dissimilar v1.0.9 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking bencher v0.1.5 [INFO] [stderr] Checking expect-test v1.5.0 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling thiserror-impl v1.0.68 [INFO] [stderr] Compiling borsh-derive v1.5.2 [INFO] [stderr] Compiling derive_arbitrary v1.4.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling bolero-generator-derive v0.10.0 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Checking secp256k1 v0.27.0 [INFO] [stderr] Checking arbitrary v1.4.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking bolero-generator v0.10.2 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking near-config-utils v0.27.0 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.11.0 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Checking bolero-engine v0.10.2 [INFO] [stderr] Checking bolero v0.10.1 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Checking near-account-id v1.0.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking ordered-float v4.5.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking bytesize v1.3.0 [INFO] [stderr] Checking serde_with v3.11.0 [INFO] [stderr] Checking insta v1.41.1 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking primitive-types v0.10.1 [INFO] [stderr] Checking near-primitives-core v0.27.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking near-fmt v0.27.0 [INFO] [stderr] Checking near-parameters v0.27.0 [INFO] [stderr] Checking near-crypto v0.27.0 [INFO] [stderr] Checking near-time v0.27.0 [INFO] [stderr] Checking near-primitives v0.27.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/epoch_manager.rs (3 fixes) [INFO] [stderr] Fixed src/utils.rs (3 fixes) [INFO] [stderr] Fixed src/shard_layout.rs (1 fix) [INFO] [stderr] Migrating benches/serialization.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/merkle.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/shard_layout.rs:509:9 [INFO] [stdout] | [INFO] [stdout] 509 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/shard_layout.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/merkle.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | use rand::{Rng, SeedableRng}; [INFO] [stdout] | ^^^^ help: a similar path exists: `crate::rand` [INFO] [stdout] | [INFO] [stdout] = note: `use` statements changed in Rust 2018; read more at [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/shard_layout.rs:511:9 [INFO] [stdout] | [INFO] [stdout] 511 | use rand::{Rng, SeedableRng}; [INFO] [stdout] | ^^^^ help: a similar path exists: `crate::rand` [INFO] [stdout] | [INFO] [stdout] = note: `use` statements changed in Rust 2018; read more at [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `itertools` [INFO] [stdout] --> src/stateless_validation/chunk_endorsements_bitmap.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `itertools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/stateless_validation/chunk_endorsements_bitmap.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | use rand::Rng; [INFO] [stdout] | ^^^^ help: a similar path exists: `crate::rand` [INFO] [stdout] | [INFO] [stdout] = note: `use` statements changed in Rust 2018; read more at [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/validator_mandates/compute_price.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use rand::{Rng, SeedableRng}; [INFO] [stdout] | ^^^^ help: a similar path exists: `crate::rand` [INFO] [stdout] | [INFO] [stdout] = note: `use` statements changed in Rust 2018; read more at [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/validator_mandates/mod.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | use rand::SeedableRng; [INFO] [stdout] | ^^^^ help: a similar path exists: `crate::rand` [INFO] [stdout] | [INFO] [stdout] = note: `use` statements changed in Rust 2018; read more at [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand_chacha` [INFO] [stdout] --> src/validator_mandates/mod.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | use rand_chacha::ChaCha8Rng; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `rand_chacha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::ShuffledShardIds` [INFO] [stdout] --> src/validator_mandates/mod.rs:288:48 [INFO] [stdout] | [INFO] [stdout] 288 | use super::{ChunkValidatorStakeAssignment, ShuffledShardIds, ValidatorMandates}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `ShuffledShardIds` in `validator_mandates` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/validator_mandates/mod.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | struct ShuffledShardIds { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `rand` feature [INFO] [stdout] --> src/validator_mandates/mod.rs:246:7 [INFO] [stdout] | [INFO] [stdout] 246 | #[cfg(feature = "rand")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/validator_mandates/compute_price.rs:221:27 [INFO] [stdout] | [INFO] [stdout] 221 | let mut rng = rand::rngs::StdRng::seed_from_u64(0xdeadbeef); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `InMemorySigner` in the current scope [INFO] [stdout] --> src/signable_message.rs:234:25 [INFO] [stdout] | [INFO] [stdout] 234 | InMemorySigner::from_seed(account_id.to_owned(), KeyType::ED25519, account_id.as_str()) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `InMemorySigner` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `InMemorySigner` consider using one of the following associated functions: [INFO] [stdout] InMemorySigner::from_secret_key [INFO] [stdout] InMemorySigner::from_file [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signer.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_secret_key(account_id: AccountId, secret_key: SecretKey) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn from_file(path: &Path) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect_vec` found for struct `Box<(dyn Iterator + 'static)>` in the current scope [INFO] [stdout] --> src/stateless_validation/chunk_endorsements_bitmap.rs:107:57 [INFO] [stdout] | [INFO] [stdout] 107 | let bits = bitmap.iter(shard_id as ShardId).collect_vec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `collect` with a similar name [INFO] [stdout] | [INFO] [stdout] 107 | let bits = bitmap.iter(shard_id as ShardId).collect(); [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/stateless_validation/chunk_endorsements_bitmap.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_random` found for struct `InMemorySigner` in the current scope [INFO] [stdout] --> src/transaction.rs:500:29 [INFO] [stdout] | [INFO] [stdout] 500 | InMemorySigner::from_random("test".parse().unwrap(), KeyType::ED25519).into(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `InMemorySigner` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `InMemorySigner` consider using one of the following associated functions: [INFO] [stdout] InMemorySigner::from_secret_key [INFO] [stdout] InMemorySigner::from_file [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signer.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_secret_key(account_id: AccountId, secret_key: SecretKey) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn from_file(path: &Path) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_seed` found for enum `near_crypto::PublicKey` in the current scope [INFO] [stdout] --> src/transaction.rs:510:43 [INFO] [stdout] | [INFO] [stdout] 510 | let wrong_public_key = PublicKey::from_seed(KeyType::ED25519, "wrong"); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `PublicKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `near_crypto::PublicKey` consider using one of the following associated functions: [INFO] [stdout] near_crypto::util::::from_near_implicit_account [INFO] [stdout] near_crypto::PublicKey::empty [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signature.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn empty(key_type: KeyType) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/util.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / pub fn from_near_implicit_account( [INFO] [stdout] 107 | | account_id: &near_account_id::AccountId, [INFO] [stdout] 108 | | ) -> Result { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/core/src/str/traits.rs:823:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 242 | schedule.get_protocol_version(now, client_protocol_version - 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:246:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 246 | schedule.get_protocol_version(now, client_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 250 | schedule.get_protocol_version(now, client_protocol_version + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 266 | schedule.get_protocol_version(now, next_epoch_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:273:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 273 | schedule.get_protocol_version(now, next_epoch_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:280:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 280 | schedule.get_protocol_version(now, next_epoch_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 294 | schedule.get_protocol_version(now, client_protocol_version - 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:298:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 298 | schedule.get_protocol_version(now, client_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:302:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 302 | schedule.get_protocol_version(now, client_protocol_version + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:321:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 321 | schedule.get_protocol_version(now, current_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:328:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 328 | schedule.get_protocol_version(now, current_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:333:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 333 | schedule.get_protocol_version(now, current_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:340:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 340 | schedule.get_protocol_version(now, current_protocol_version + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:345:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 345 | schedule.get_protocol_version(now, current_protocol_version + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:365:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 365 | schedule.get_protocol_version(now, current_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:373:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 373 | schedule.get_protocol_version(now, current_protocol_version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:380:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 380 | schedule.get_protocol_version(now, current_protocol_version + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_protocol_version` found for struct `upgrade_schedule::ProtocolUpgradeVotingSchedule` in the current scope [INFO] [stdout] --> src/upgrade_schedule.rs:387:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ProtocolUpgradeVotingSchedule { [INFO] [stdout] | ---------------------------------------- method `get_protocol_version` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 387 | schedule.get_protocol_version(now, current_protocol_version + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `ProtocolUpgradeVotingSchedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_seed` found for enum `near_crypto::PublicKey` in the current scope [INFO] [stdout] --> src/utils.rs:508:37 [INFO] [stdout] | [INFO] [stdout] 508 | let public_key = PublicKey::from_seed(KeyType::ED25519, "test"); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `PublicKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `near_crypto::PublicKey` consider using one of the following associated functions: [INFO] [stdout] near_crypto::util::::from_near_implicit_account [INFO] [stdout] near_crypto::PublicKey::empty [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signature.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn empty(key_type: KeyType) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/util.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / pub fn from_near_implicit_account( [INFO] [stdout] 107 | | account_id: &near_account_id::AccountId, [INFO] [stdout] 108 | | ) -> Result { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/core/src/str/traits.rs:823:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_seed` found for enum `near_crypto::PublicKey` in the current scope [INFO] [stdout] --> src/utils.rs:517:37 [INFO] [stdout] | [INFO] [stdout] 517 | let public_key = PublicKey::from_seed(KeyType::SECP256K1, "test"); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `PublicKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `near_crypto::PublicKey` consider using one of the following associated functions: [INFO] [stdout] near_crypto::util::::from_near_implicit_account [INFO] [stdout] near_crypto::PublicKey::empty [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signature.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn empty(key_type: KeyType) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/util.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / pub fn from_near_implicit_account( [INFO] [stdout] 107 | | account_id: &near_account_id::AccountId, [INFO] [stdout] 108 | | ) -> Result { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/core/src/str/traits.rs:823:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffled_mandates` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:384:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `shuffled_mandates` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 384 | let assignment = mandates.shuffled_mandates(&mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffled_mandates` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:418:26 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `shuffled_mandates` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 418 | let _ = mandates.shuffled_mandates(&mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffled_partials` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:419:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `shuffled_partials` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 419 | let assignment = mandates.shuffled_partials(&mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sample` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:470:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `sample` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 470 | let assignment = mandates.sample(&mut rng); [INFO] [stdout] | ^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `sample`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bolero_generator::uniform::Uniform` [INFO] [stdout] candidate #2: `rand::Rng` [INFO] [stdout] candidate #3: `rand::distributions::Distribution` [INFO] [stdout] candidate #4: `rand::distributions::uniform::UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sample` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:517:36 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `sample` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 517 | let assignment1 = mandates.sample(&mut rng1); [INFO] [stdout] | ^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `sample`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bolero_generator::uniform::Uniform` [INFO] [stdout] candidate #2: `rand::Rng` [INFO] [stdout] candidate #3: `rand::distributions::Distribution` [INFO] [stdout] candidate #4: `rand::distributions::uniform::UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sample` found for struct `ValidatorMandates` in the current scope [INFO] [stdout] --> src/validator_mandates/mod.rs:520:36 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct ValidatorMandates { [INFO] [stdout] | ---------------------------- method `sample` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 520 | let assignment2 = mandates.sample(&mut rng2); [INFO] [stdout] | ^^^^^^ method not found in `ValidatorMandates` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `sample`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bolero_generator::uniform::Uniform` [INFO] [stdout] candidate #2: `rand::Rng` [INFO] [stdout] candidate #3: `rand::distributions::Distribution` [INFO] [stdout] candidate #4: `rand::distributions::uniform::UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/upgrade_schedule.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | std::env::set_var(NEAR_TESTS_PROTOCOL_UPGRADE_OVERRIDE, "now"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 487 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 488 ~ unsafe { std::env::set_var(NEAR_TESTS_PROTOCOL_UPGRADE_OVERRIDE, "now") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/upgrade_schedule.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | / std::env::set_var( [INFO] [stdout] 494 | | NEAR_TESTS_PROTOCOL_UPGRADE_OVERRIDE, [INFO] [stdout] 495 | | format!("{}={}", datetime_override, client_protocol_version), [INFO] [stdout] 496 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 493 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 494 ~ unsafe { std::env::set_var( [INFO] [stdout] 495 | NEAR_TESTS_PROTOCOL_UPGRADE_OVERRIDE, [INFO] [stdout] 496 | format!("{}={}", datetime_override, client_protocol_version), [INFO] [stdout] 497 ~ ) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `near-primitives` (lib test) due to 43 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `near_primitives::block::genesis_chunks` [INFO] [stdout] --> benches/serialization.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use near_primitives::block::{genesis_chunks, Block}; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `genesis_chunks` in `block` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /tmp/fixit/src/block.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn genesis_chunks( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `solomon` feature [INFO] [stdout] --> /tmp/fixit/src/block.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg(feature = "solomon")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `near_time::Clock` [INFO] [stdout] --> benches/serialization.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use near_time::Clock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Clock` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_random` found for struct `InMemoryValidatorSigner` in the current scope [INFO] [stdout] --> benches/serialization.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | let signer = InMemoryValidatorSigner::from_random("test".parse().unwrap(), KeyType::ED25519); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `InMemoryValidatorSigner` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `InMemoryValidatorSigner` consider using one of the following associated functions: [INFO] [stdout] InMemoryValidatorSigner::from_signer [INFO] [stdout] InMemoryValidatorSigner::from_file [INFO] [stdout] --> /tmp/fixit/src/validator_signer.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 304 | pub fn from_signer(signer: InMemorySigner) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn from_file(path: &Path) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `produce` found for enum `Block` in the current scope [INFO] [stdout] --> benches/serialization.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | Block::produce( [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `Block` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Block`, consider using `Block::genesis` which returns `Block` [INFO] [stdout] --> /tmp/fixit/src/block.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | / pub fn genesis( [INFO] [stdout] 230 | | genesis_protocol_version: ProtocolVersion, [INFO] [stdout] 231 | | chunks: Vec, [INFO] [stdout] 232 | | timestamp: Utc, [INFO] [stdout] ... | [INFO] [stdout] 236 | | next_bp_hash: CryptoHash, [INFO] [stdout] 237 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `near-primitives` (bench "serialization") due to 4 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "0671fd761d3d84ec1903e5d4075c657a044749e57b7e8cb131db9eade7d159c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0671fd761d3d84ec1903e5d4075c657a044749e57b7e8cb131db9eade7d159c1", kill_on_drop: false }` [INFO] [stdout] 0671fd761d3d84ec1903e5d4075c657a044749e57b7e8cb131db9eade7d159c1