[INFO] fetching crate ic-stable-memory 0.4.4... [INFO] checking ic-stable-memory-0.4.4 against try#66388cc165a6c4ac98c074dc9f0281ff23528c55 for pr-150727 [INFO] extracting crate ic-stable-memory 0.4.4 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate ic-stable-memory 0.4.4 [INFO] finished tweaking crates.io crate ic-stable-memory 0.4.4 [INFO] tweaked toml for crates.io crate ic-stable-memory 0.4.4 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ic-stable-memory 0.4.4 on toolchain 66388cc165a6c4ac98c074dc9f0281ff23528c55 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+66388cc165a6c4ac98c074dc9f0281ff23528c55" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+66388cc165a6c4ac98c074dc9f0281ff23528c55" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 121 packages to latest compatible versions [INFO] [stderr] Adding candid v0.8.4 (available: v0.10.20) [INFO] [stderr] Adding candid_derive v0.6.6 (available: v0.10.20) [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding ic-cdk v0.7.4 (available: v0.19.0) [INFO] [stderr] Adding ic-cdk-macros v0.6.10 (available: v0.19.0) [INFO] [stderr] Adding ic-certified-map v0.3.4 (available: v0.4.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+66388cc165a6c4ac98c074dc9f0281ff23528c55" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+66388cc165a6c4ac98c074dc9f0281ff23528c55" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d75f5e451b8b47ea34ce0237f3fb0d7d9b3016466d937791c916a745e304b1a2 [INFO] running `Command { std: "docker" "start" "-a" "d75f5e451b8b47ea34ce0237f3fb0d7d9b3016466d937791c916a745e304b1a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d75f5e451b8b47ea34ce0237f3fb0d7d9b3016466d937791c916a745e304b1a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d75f5e451b8b47ea34ce0237f3fb0d7d9b3016466d937791c916a745e304b1a2", kill_on_drop: false }` [INFO] [stdout] d75f5e451b8b47ea34ce0237f3fb0d7d9b3016466d937791c916a745e304b1a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+66388cc165a6c4ac98c074dc9f0281ff23528c55" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 068acf7bf9fa69fe3713a141326fd8103f3a4959f2c84758884ff58da586c2b9 [INFO] running `Command { std: "docker" "start" "-a" "068acf7bf9fa69fe3713a141326fd8103f3a4959f2c84758884ff58da586c2b9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Checking ic0 v0.18.11 [INFO] [stderr] Checking zwohash v0.1.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.5.0 [INFO] [stderr] Compiling ic-stable-memory-derive v0.4.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking ic-certified-map v0.3.4 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Checking serde_test v1.0.177 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling candid v0.8.4 [INFO] [stderr] Compiling ic-cdk-macros v0.6.10 [INFO] [stderr] Checking ic-cdk v0.7.4 [INFO] [stderr] Checking ic-stable-memory v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::primitive::StableType` [INFO] [stdout] --> src/collections/hash_map/mod.rs:712:9 [INFO] [stdout] | [INFO] [stdout] 712 | use crate::primitive::StableType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/collections/hash_map/mod.rs:725:9 [INFO] [stdout] | [INFO] [stdout] 725 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deinit_allocator` [INFO] [stdout] --> src/collections/vec/mod.rs:554:60 [INFO] [stdout] | [INFO] [stdout] 554 | _debug_print_allocator, _debug_validate_allocator, deinit_allocator, get_allocated_size, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/collections/vec/mod.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::primitive::s_box::SBox` [INFO] [stdout] --> src/encoding/dyn_size.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::primitive::s_box::SBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buffer` [INFO] [stdout] --> src/mem/allocator.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::encoding::{AsDynSizeBytes, AsFixedSizeBytes, Buffer}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::primitive::s_box::SBox` [INFO] [stdout] --> src/mem/allocator.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | use crate::primitive::s_box::SBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/primitive/s_box.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use candid::types::{Serializer, Type, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Deserializer` [INFO] [stdout] --> src/primitive/s_box.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::ManuallyDrop` [INFO] [stdout] --> src/primitive/s_box.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem::ManuallyDrop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/primitive/s_ref.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::types::{Serializer, Type, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CandidType` and `encode_one` [INFO] [stdout] --> src/utils/certification.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use candid::{encode_one, CandidType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/utils/mem_context.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/utils/mem_context.rs:235:30 [INFO] [stdout] | [INFO] [stdout] 235 | let size_range = (0..(u16::MAX as usize * 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 235 - let size_range = (0..(u16::MAX as usize * 2)); [INFO] [stdout] 235 + let size_range = 0..(u16::MAX as usize * 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[ignore]` should only be applied to functions annotated with `#[test]` or `#[bench]` [INFO] [stdout] --> src/benches/mod.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | #[ignore] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::primitive::s_box::SBox` [INFO] [stdout] --> src/encoding/dyn_size.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::primitive::s_box::SBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/primitive/s_box.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use candid::types::{Serializer, Type, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::ManuallyDrop` [INFO] [stdout] --> src/primitive/s_box.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem::ManuallyDrop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/primitive/s_ref.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::types::{Serializer, Type, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encode_one` [INFO] [stdout] --> src/utils/certification.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use candid::{encode_one, CandidType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[ignore]` should only be applied to functions annotated with `#[test]` or `#[bench]` [INFO] [stdout] --> src/benches/mod.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | #[ignore] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/primitive/s_box.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/primitive/s_box.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CandidType` [INFO] [stdout] --> src/utils/certification.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use candid::{encode_one, CandidType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buffer` [INFO] [stdout] --> src/mem/allocator.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::encoding::{AsDynSizeBytes, AsFixedSizeBytes, Buffer}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buffer` [INFO] [stdout] --> src/mem/free_block.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::encoding::{AsFixedSizeBytes, Buffer}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/btree_map/internal_node.rs:412:47 [INFO] [stdout] | [INFO] [stdout] 412 | unsafe { crate::mem::write_fixed(ptr, &mut NODE_TYPE_INTERNAL) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/btree_map/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const NODE_TYPE_INTERNAL: u8 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/btree_map/leaf_node.rs:480:47 [INFO] [stdout] | [INFO] [stdout] 480 | unsafe { crate::mem::write_fixed(ptr, &mut NODE_TYPE_LEAF) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/btree_map/mod.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const NODE_TYPE_LEAF: u8 = 255; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/collections/hash_map/mod.rs:384:25 [INFO] [stdout] | [INFO] [stdout] 384 | if let Some(k) = self.read_and_disown_key(i) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collections/hash_map/mod.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 385 | let v = self.read_and_disown_val(i); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/hash_map/mod.rs:523:51 [INFO] [stdout] | [INFO] [stdout] 523 | unsafe { crate::mem::write_fixed(ptr, &mut OCCUPIED) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/hash_map/mod.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | const OCCUPIED: u8 = 255; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/hash_map/mod.rs:529:47 [INFO] [stdout] | [INFO] [stdout] 529 | unsafe { crate::mem::write_fixed(ptr, &mut EMPTY) }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/hash_map/mod.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | const EMPTY: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ic-stable-memory` (lib) due to 1 previous error; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Buffer` [INFO] [stdout] --> src/mem/free_block.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::encoding::{AsFixedSizeBytes, Buffer}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/btree_map/internal_node.rs:412:47 [INFO] [stdout] | [INFO] [stdout] 412 | unsafe { crate::mem::write_fixed(ptr, &mut NODE_TYPE_INTERNAL) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/btree_map/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const NODE_TYPE_INTERNAL: u8 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/btree_map/leaf_node.rs:480:47 [INFO] [stdout] | [INFO] [stdout] 480 | unsafe { crate::mem::write_fixed(ptr, &mut NODE_TYPE_LEAF) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/btree_map/mod.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const NODE_TYPE_LEAF: u8 = 255; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/btree_map/mod.rs:1949:18 [INFO] [stdout] | [INFO] [stdout] 1949 | for (mut k, mut v) in map.iter() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/btree_map/mod.rs:1949:25 [INFO] [stdout] | [INFO] [stdout] 1949 | for (mut k, mut v) in map.iter() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/btree_map/mod.rs:2035:36 [INFO] [stdout] | [INFO] [stdout] 2035 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/collections/btree_set/mod.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let set = SBTreeSet::::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/btree_set/mod.rs:201:23 [INFO] [stdout] | [INFO] [stdout] 201 | for (idx, mut i) in set.iter().enumerate() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/btree_set/mod.rs:255:32 [INFO] [stdout] | [INFO] [stdout] 255 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb_w1` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1255:17 [INFO] [stdout] | [INFO] [stdout] 1255 | let rb_w1 = rb.witness(&11u64.to_le_bytes()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rb_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb_w2` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1256:17 [INFO] [stdout] | [INFO] [stdout] 1256 | let rb_w2 = rb.witness(&22u64.to_le_bytes()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rb_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb_w3` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1258:17 [INFO] [stdout] | [INFO] [stdout] 1258 | let rb_w3 = rb.key_range(&9u64.to_le_bytes(), &100u64.to_le_bytes()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rb_w3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_w3` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1259:17 [INFO] [stdout] | [INFO] [stdout] 1259 | let map_w3 = map.prove_range(&9, &100); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_w3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1435:36 [INFO] [stdout] | [INFO] [stdout] 1435 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1490:25 [INFO] [stdout] | [INFO] [stdout] 1490 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/certified_btree_map/mod.rs:1504:48 [INFO] [stdout] | [INFO] [stdout] 1504 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/certified_btree_set/mod.rs:247:23 [INFO] [stdout] | [INFO] [stdout] 247 | for (idx, mut i) in set.iter().enumerate() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/collections/hash_map/mod.rs:384:25 [INFO] [stdout] | [INFO] [stdout] 384 | if let Some(k) = self.read_and_disown_key(i) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collections/hash_map/mod.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 385 | let v = self.read_and_disown_val(i); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/hash_map/mod.rs:523:51 [INFO] [stdout] | [INFO] [stdout] 523 | unsafe { crate::mem::write_fixed(ptr, &mut OCCUPIED) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/hash_map/mod.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | const OCCUPIED: u8 = 255; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/collections/hash_map/mod.rs:529:47 [INFO] [stdout] | [INFO] [stdout] 529 | unsafe { crate::mem::write_fixed(ptr, &mut EMPTY) }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/collections/hash_map/mod.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | const EMPTY: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/hash_map/mod.rs:907:18 [INFO] [stdout] | [INFO] [stdout] 907 | for (mut k, _) in map.iter() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/hash_map/mod.rs:992:36 [INFO] [stdout] | [INFO] [stdout] 992 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/collections/hash_set/mod.rs:287:32 [INFO] [stdout] | [INFO] [stdout] 287 | ... Ok(idx) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/log/mod.rs:693:17 [INFO] [stdout] | [INFO] [stdout] 693 | for mut i in log.rev_iter() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/vec/mod.rs:845:23 [INFO] [stdout] | [INFO] [stdout] 845 | for (idx, mut i) in vec.iter().enumerate() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/collections/vec/mod.rs:887:17 [INFO] [stdout] | [INFO] [stdout] 887 | for i in 0..iterations { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `B` [INFO] [stdout] | [INFO] [stdout] 887 - for i in 0..iterations { [INFO] [stdout] 887 + for collections::btree_map::B in 0..iterations { [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 887 | for _i in 0..iterations { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/collections/vec/mod.rs:949:17 [INFO] [stdout] | [INFO] [stdout] 949 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collections/vec/mod.rs:1058:25 [INFO] [stdout] | [INFO] [stdout] 1058 | let mut idx1 = self.rng.gen_range(0..len); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mem/allocator.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mem/allocator.rs:499:17 [INFO] [stdout] | [INFO] [stdout] 499 | let mut sma = StableMemoryAllocator::retrieve(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/mem/allocator.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | let slice = sma.allocate(100).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mem/allocator.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/mem/allocator.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | let slice = sma.allocate(100); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mem/allocator.rs:606:41 [INFO] [stdout] | [INFO] [stdout] 606 | if let Ok(slice1) = unsafe { self.allocator.reallocate(slice, size) } { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mem/allocator.rs:569:29 [INFO] [stdout] | [INFO] [stdout] 569 | let mut buf = vec![100u8; slice.get_size_bytes() as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mem/allocator.rs:615:29 [INFO] [stdout] | [INFO] [stdout] 615 | let mut buf = vec![100u8; slice1.get_size_bytes() as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/mem/allocator.rs:658:13 [INFO] [stdout] | [INFO] [stdout] 658 | for i in 0..10_000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/mem/allocator.rs:674:13 [INFO] [stdout] | [INFO] [stdout] 674 | for i in 0..10_000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mem/allocator.rs:704:21 [INFO] [stdout] | [INFO] [stdout] 704 | slice = unsafe { sma.reallocate(slice, 2 * 1024).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mem/allocator.rs:729:9 [INFO] [stdout] | [INFO] [stdout] 729 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | let mut sbox = SBox::new(100).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:437:17 [INFO] [stdout] | [INFO] [stdout] 437 | let mut o_sbox = SBox::new(sbox).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | let mut oo_sbox = SBox::new(o_sbox).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:468:17 [INFO] [stdout] | [INFO] [stdout] 468 | let mut sbox1 = SBox::new(10).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:469:17 [INFO] [stdout] | [INFO] [stdout] 469 | let mut sbox11 = SBox::new(10).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primitive/s_box.rs:470:17 [INFO] [stdout] | [INFO] [stdout] 470 | let mut sbox2 = SBox::new(20).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sbox` [INFO] [stdout] --> src/primitive/s_box.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | let sbox = SBox::new(100).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sbox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `oo_sbox` is never read [INFO] [stdout] --> src/primitive/s_box.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | oo_sbox = retrieve_custom_data::>>(0).unwrap(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ic-stable-memory` (lib test) due to 1 previous error; 63 warnings emitted [INFO] running `Command { std: "docker" "inspect" "068acf7bf9fa69fe3713a141326fd8103f3a4959f2c84758884ff58da586c2b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "068acf7bf9fa69fe3713a141326fd8103f3a4959f2c84758884ff58da586c2b9", kill_on_drop: false }` [INFO] [stdout] 068acf7bf9fa69fe3713a141326fd8103f3a4959f2c84758884ff58da586c2b9