[INFO] fetching crate yrs 0.17.1... [INFO] checking yrs-0.17.1 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate yrs 0.17.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate yrs 0.17.1 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate yrs 0.17.1 [INFO] finished tweaking crates.io crate yrs 0.17.1 [INFO] tweaked toml for crates.io crate yrs 0.17.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c616c1dd09a754a03db8e949c5107a613176bf8fdd34e61a6c14fbc7ae54e7b4 [INFO] running `Command { std: "docker" "start" "-a" "c616c1dd09a754a03db8e949c5107a613176bf8fdd34e61a6c14fbc7ae54e7b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c616c1dd09a754a03db8e949c5107a613176bf8fdd34e61a6c14fbc7ae54e7b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c616c1dd09a754a03db8e949c5107a613176bf8fdd34e61a6c14fbc7ae54e7b4", kill_on_drop: false }` [INFO] [stdout] c616c1dd09a754a03db8e949c5107a613176bf8fdd34e61a6c14fbc7ae54e7b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cf6e41187a32a5c79cba0010683330576f0487b5d56301606fecdb7438989e4 [INFO] running `Command { std: "docker" "start" "-a" "2cf6e41187a32a5c79cba0010683330576f0487b5d56301606fecdb7438989e4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking half v2.3.1 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking clap_builder v4.4.18 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking tempfile v3.9.0 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling libz-sys v1.1.15 [INFO] [stderr] Checking clap v4.4.18 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking smallstr v0.3.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking atomic_refcell v0.1.13 [INFO] [stderr] Checking str_indices v0.4.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking ropey v1.6.1 [INFO] [stderr] Checking proptest v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Checking thiserror v1.0.56 [INFO] [stderr] Compiling proptest-derive v0.3.0 [INFO] [stderr] Checking serde_json v1.0.113 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking yrs v0.17.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stdout] warning: unused import: `TypeRef` [INFO] [stdout] --> src/transaction.rs:8:74 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::{Branch, BranchPtr, Event, Events, SharedRef, TypePtr, TypeRef, Value}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeRef` [INFO] [stdout] --> src/update.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::{TypePtr, TypeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left` is never read [INFO] [stdout] --> src/block.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | let mut left = None; [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: unused variable: `ptr` [INFO] [stdout] --> src/block.rs:630:33 [INFO] [stdout] | [INFO] [stdout] 630 | ... let ptr = if this.info.is_deleted() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_start` is assigned to, but never used [INFO] [stdout] --> src/id_set.rs:171:29 [INFO] [stdout] | [INFO] [stdout] 171 | let mut prev_start = r.start; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_prev_start` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_start` is never read [INFO] [stdout] --> src/id_set.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | prev_start = r.start; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/array.rs:158:31 [INFO] [stdout] | [INFO] [stdout] 158 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/map.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/map.rs:227:40 [INFO] [stdout] | [INFO] [stdout] 227 | fn contains_key(&self, txn: &T, key: &str) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_string(&self, txn: &T) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:170:31 [INFO] [stdout] | [INFO] [stdout] 170 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | fn diff(&self, txn: &T, compute_ychange: F) -> Vec> [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:469:38 [INFO] [stdout] | [INFO] [stdout] 469 | fn get_string(&self, txn: &T) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:817:31 [INFO] [stdout] | [INFO] [stdout] 817 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:875:31 [INFO] [stdout] | [INFO] [stdout] 875 | fn get(&self, txn: &T, index: u32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_ref` [INFO] [stdout] --> src/types/mod.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let type_ref = self.type_ref(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch` [INFO] [stdout] --> src/update.rs:351:39 [INFO] [stdout] | [INFO] [stdout] 351 | ItemContent::Type(branch) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read` [INFO] [stdout] --> src/iter.rs:511:21 [INFO] [stdout] | [INFO] [stdout] 511 | let read = item.content.read(slice.start as usize, b.as_mut_slice()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_trim`, `is_deleted`, `is_countable`, `contains_id`, `right`, and `left` are never used [INFO] [stdout] --> src/block.rs:833:12 [INFO] [stdout] | [INFO] [stdout] 811 | impl BlockSlice { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn try_trim(&mut self, from: &ID, to: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 874 | pub fn is_deleted(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 879 | pub fn is_countable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 884 | pub fn contains_id(&self, id: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 960 | pub fn right(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 983 | pub fn left(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_capacity` is never used [INFO] [stdout] --> src/block_store.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl ClientBlockList { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn with_capacity(capacity: usize) -> ClientBlockList { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains` and `get_client_blocks_with_capacity_mut` are never used [INFO] [stdout] --> src/block_store.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 370 | impl BlockStore { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn contains(&self, id: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | pub(crate) fn get_client_blocks_with_capacity_mut( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block_store.rs:543:8 [INFO] [stdout] | [INFO] [stdout] 542 | impl<'a> Blocks<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 543 | fn new(update: &'a BlockStore) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `link` and `unlink` are never used [INFO] [stdout] --> src/transaction.rs:969:8 [INFO] [stdout] | [INFO] [stdout] 292 | impl<'doc> TransactionMut<'doc> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 969 | fn link(&mut self, mut source: BlockPtr, link: BranchPtr) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 977 | pub(crate) fn unlink(&mut self, mut source: BlockPtr, link: BranchPtr) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_at` is never used [INFO] [stdout] --> src/types/mod.rs:615:19 [INFO] [stdout] | [INFO] [stdout] 458 | impl Branch { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 615 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/types/mod.rs:1064:12 [INFO] [stdout] | [INFO] [stdout] 1060 | / impl<'a, T: ReadTxn> Entries<'a, T, T> [INFO] [stdout] 1061 | | where [INFO] [stdout] 1062 | | T: Borrow + ReadTxn, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 1063 | { [INFO] [stdout] 1064 | pub fn from(source: &'a HashMap, BlockPtr>, txn: T) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `blocks` is never used [INFO] [stdout] --> src/update.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 26 | impl UpdateBlocks { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn blocks(&self) -> Blocks<'_> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> src/update.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 93 | impl Update { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub(crate) fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_block` is never used [INFO] [stdout] --> src/update.rs:842:12 [INFO] [stdout] | [INFO] [stdout] 777 | impl BlockCarrier { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 842 | pub fn into_block(self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/update.rs:954:8 [INFO] [stdout] | [INFO] [stdout] 953 | impl<'a> Blocks<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 954 | fn new(update: &'a UpdateBlocks) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `forward`, `backward`, and `values` are never used [INFO] [stdout] --> src/block_iter.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl BlockIter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn forward(&mut self, txn: &T, len: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn backward(&mut self, txn: &mut T, mut len: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 521 | pub fn values<'a, 'txn, T: ReadTxn>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block_iter.rs:535:8 [INFO] [stdout] | [INFO] [stdout] 534 | impl<'a, 'txn> Values<'a, 'txn> { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 535 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/iter.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 308 | / impl RangeIter [INFO] [stdout] 309 | | where [INFO] [stdout] 310 | | I: TxnIterator, [INFO] [stdout] | |____________________________________- associated function in this implementation [INFO] [stdout] 311 | { [INFO] [stdout] 312 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Opened` is never constructed [INFO] [stdout] --> src/iter.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 429 | enum RangeIterState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 430 | /// Ranged iterator position hasn't reach chosen ID range yet. [INFO] [stdout] 431 | Opened, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RangeIterState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/iter.rs:446:8 [INFO] [stdout] | [INFO] [stdout] 445 | impl Values { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 446 | fn new(iter: I) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/block_iter.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | if len < 0 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> benches/serialization.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | black_box(Any::from_json(&roundtrip)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 156 | let _ = black_box(Any::from_json(&roundtrip)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> benches/serialization.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | black_box(Any::from_json(&any_json)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 169 | let _ = black_box(Any::from_json(&any_json)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Delete` is never constructed [INFO] [stdout] --> benches/benches.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum ArrayOp { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 21 | Insert(u32, Vec), [INFO] [stdout] 22 | Delete(u32, u32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `b1_6` is never used [INFO] [stdout] --> benches/benches.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn b1_6(rng: &mut R, size: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeRef` [INFO] [stdout] --> src/transaction.rs:8:74 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::{Branch, BranchPtr, Event, Events, SharedRef, TypePtr, TypeRef, Value}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeRef` [INFO] [stdout] --> src/update.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::{TypePtr, TypeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left` is never read [INFO] [stdout] --> src/block.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | let mut left = None; [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: unused variable: `ptr` [INFO] [stdout] --> src/block.rs:630:33 [INFO] [stdout] | [INFO] [stdout] 630 | ... let ptr = if this.info.is_deleted() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_start` is assigned to, but never used [INFO] [stdout] --> src/id_set.rs:171:29 [INFO] [stdout] | [INFO] [stdout] 171 | let mut prev_start = r.start; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_prev_start` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_start` is never read [INFO] [stdout] --> src/id_set.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | prev_start = r.start; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/array.rs:158:31 [INFO] [stdout] | [INFO] [stdout] 158 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/map.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/map.rs:227:40 [INFO] [stdout] | [INFO] [stdout] 227 | fn contains_key(&self, txn: &T, key: &str) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_string(&self, txn: &T) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:170:31 [INFO] [stdout] | [INFO] [stdout] 170 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/text.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | fn diff(&self, txn: &T, compute_ychange: F) -> Vec> [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:469:38 [INFO] [stdout] | [INFO] [stdout] 469 | fn get_string(&self, txn: &T) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:817:31 [INFO] [stdout] | [INFO] [stdout] 817 | fn len(&self, txn: &T) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/types/xml.rs:875:31 [INFO] [stdout] | [INFO] [stdout] 875 | fn get(&self, txn: &T, index: u32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_ref` [INFO] [stdout] --> src/types/mod.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let type_ref = self.type_ref(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch` [INFO] [stdout] --> src/update.rs:351:39 [INFO] [stdout] | [INFO] [stdout] 351 | ItemContent::Type(branch) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_v2` [INFO] [stdout] --> src/update.rs:1233:13 [INFO] [stdout] | [INFO] [stdout] 1233 | let bytes_v2 = update_v1.encode_v2(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read` [INFO] [stdout] --> src/iter.rs:511:21 [INFO] [stdout] | [INFO] [stdout] 511 | let read = item.content.read(slice.start as usize, b.as_mut_slice()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_trim`, `is_deleted`, `is_countable`, `contains_id`, `right`, and `left` are never used [INFO] [stdout] --> src/block.rs:833:12 [INFO] [stdout] | [INFO] [stdout] 811 | impl BlockSlice { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn try_trim(&mut self, from: &ID, to: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 874 | pub fn is_deleted(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 879 | pub fn is_countable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 884 | pub fn contains_id(&self, id: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 960 | pub fn right(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 983 | pub fn left(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/block_store.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 370 | impl BlockStore { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn contains(&self, id: &ID) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block_store.rs:543:8 [INFO] [stdout] | [INFO] [stdout] 542 | impl<'a> Blocks<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 543 | fn new(update: &'a BlockStore) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `link` and `unlink` are never used [INFO] [stdout] --> src/transaction.rs:969:8 [INFO] [stdout] | [INFO] [stdout] 292 | impl<'doc> TransactionMut<'doc> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 969 | fn link(&mut self, mut source: BlockPtr, link: BranchPtr) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 977 | pub(crate) fn unlink(&mut self, mut source: BlockPtr, link: BranchPtr) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_at` is never used [INFO] [stdout] --> src/types/mod.rs:615:19 [INFO] [stdout] | [INFO] [stdout] 458 | impl Branch { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 615 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/types/mod.rs:1064:12 [INFO] [stdout] | [INFO] [stdout] 1060 | / impl<'a, T: ReadTxn> Entries<'a, T, T> [INFO] [stdout] 1061 | | where [INFO] [stdout] 1062 | | T: Borrow + ReadTxn, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 1063 | { [INFO] [stdout] 1064 | pub fn from(source: &'a HashMap, BlockPtr>, txn: T) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> src/update.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 93 | impl Update { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub(crate) fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_block` is never used [INFO] [stdout] --> src/update.rs:842:12 [INFO] [stdout] | [INFO] [stdout] 777 | impl BlockCarrier { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 842 | pub fn into_block(self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `forward`, `backward`, and `values` are never used [INFO] [stdout] --> src/block_iter.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl BlockIter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn forward(&mut self, txn: &T, len: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn backward(&mut self, txn: &mut T, mut len: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 521 | pub fn values<'a, 'txn, T: ReadTxn>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block_iter.rs:535:8 [INFO] [stdout] | [INFO] [stdout] 534 | impl<'a, 'txn> Values<'a, 'txn> { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 535 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rng`, `get`, `connect`, `disconnect_all`, and `peers` are never used [INFO] [stdout] --> src/test_utils.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 87 | impl TestConnector { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn rng(&self) -> RefMut { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn get(&self, client_id: &ClientID) -> Option<&TestPeer> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn connect(&self, client_id: ClientID) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn disconnect_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 440 | pub fn peers(&self) -> Peers { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `doc_mut` is never used [INFO] [stdout] --> src/test_utils.rs:480:12 [INFO] [stdout] | [INFO] [stdout] 463 | impl TestPeer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 480 | pub fn doc_mut(&mut self) -> &mut Doc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `is_empty`, `chars_to_bytes`, and `patches` are never used [INFO] [stdout] --> src/tests/edit_traces.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl TestData { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn chars_to_bytes(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn patches(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/block_iter.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | if len < 0 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.17s [INFO] running `Command { std: "docker" "inspect" "2cf6e41187a32a5c79cba0010683330576f0487b5d56301606fecdb7438989e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cf6e41187a32a5c79cba0010683330576f0487b5d56301606fecdb7438989e4", kill_on_drop: false }` [INFO] [stdout] 2cf6e41187a32a5c79cba0010683330576f0487b5d56301606fecdb7438989e4