[INFO] fetching crate near-fixed-bit-tree 0.0.0... [INFO] checking near-fixed-bit-tree-0.0.0 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate near-fixed-bit-tree 0.0.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate near-fixed-bit-tree 0.0.0 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate near-fixed-bit-tree 0.0.0 [INFO] finished tweaking crates.io crate near-fixed-bit-tree 0.0.0 [INFO] tweaked toml for crates.io crate near-fixed-bit-tree 0.0.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f223a2a249518dc55a143299691232e4a9024f7524a3cbb16ab5f1375a92bbe [INFO] running `Command { std: "docker" "start" "-a" "1f223a2a249518dc55a143299691232e4a9024f7524a3cbb16ab5f1375a92bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f223a2a249518dc55a143299691232e4a9024f7524a3cbb16ab5f1375a92bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f223a2a249518dc55a143299691232e4a9024f7524a3cbb16ab5f1375a92bbe", kill_on_drop: false }` [INFO] [stdout] 1f223a2a249518dc55a143299691232e4a9024f7524a3cbb16ab5f1375a92bbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=forbid" "-e" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50e24052b9d7e760cf7f7a4ebd3e174f419324981368425a1ed99ccd6d8cb622 [INFO] running `Command { std: "docker" "start" "-a" "50e24052b9d7e760cf7f7a4ebd3e174f419324981368425a1ed99ccd6d8cb622", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling toml_datetime v0.6.2 [INFO] [stderr] Compiling winnow v0.4.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling parity-secp256k1 v0.7.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling reed-solomon-erasure v4.0.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking c2-chacha v0.3.3 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling easy-ext v0.2.9 [INFO] [stderr] Checking keccak v0.1.4 [INFO] [stderr] Checking bytesize v1.2.0 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Checking near-sys v0.2.0 [INFO] [stderr] Compiling toml_edit v0.19.10 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling near-sdk-macros v4.1.0-pre.3 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking parity-scale-codec v2.3.1 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking serde_json v1.0.96 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling near-rpc-error-core v0.14.0 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking primitive-types v0.10.1 [INFO] [stderr] Compiling near-rpc-error-macro v0.14.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Checking near-account-id v0.14.0 [INFO] [stderr] Checking zeropool-bn v0.5.11 [INFO] [stderr] Checking near-primitives-core v0.14.0 [INFO] [stderr] Checking near-crypto v0.14.0 [INFO] [stderr] Checking near-vm-errors v0.14.0 [INFO] [stderr] Checking near-primitives v0.14.0 [INFO] [stderr] Checking near-vm-logic v0.14.0 [INFO] [stderr] Checking near-sdk v4.1.0-pre.3 [INFO] [stderr] Checking near-fixed-bit-tree v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> src/raw_value.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{marker::PhantomData, convert::TryInto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> src/raw_value.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{marker::PhantomData, convert::TryInto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/raw_value.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> src/tree_map.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let mut flag = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> src/tree_map.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let mut flag = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VAL_BYTE` is never used [INFO] [stdout] --> src/tree_map.rs:129:7 [INFO] [stdout] | [INFO] [stdout] 129 | const MAX_VAL_BYTE: u32 = 1; //the last 8 bits to represent 256 bit fields [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/raw_value.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let res = raw_value.del_val(99); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tree_map.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | let key = &[raw_key.clone(), key_prefix.clone()].concat(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tree_map.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | let key = &[raw_key.clone(), key_prefix.clone()].concat(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VAL_BYTE` is never used [INFO] [stdout] --> src/tree_map.rs:129:7 [INFO] [stdout] | [INFO] [stdout] 129 | const MAX_VAL_BYTE: u32 = 1; //the last 8 bits to represent 256 bit fields [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tree_map.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | let key = &[raw_key.clone(), key_prefix.clone()].concat(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tree_map.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | let key = &[raw_key.clone(), key_prefix.clone()].concat(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `near-fixed-bit-tree` (lib) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `near-fixed-bit-tree` (lib test) due to 3 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "50e24052b9d7e760cf7f7a4ebd3e174f419324981368425a1ed99ccd6d8cb622", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50e24052b9d7e760cf7f7a4ebd3e174f419324981368425a1ed99ccd6d8cb622", kill_on_drop: false }` [INFO] [stdout] 50e24052b9d7e760cf7f7a4ebd3e174f419324981368425a1ed99ccd6d8cb622