[INFO] fetching crate bookkeeper-client 0.2.1... [INFO] checking bookkeeper-client-0.2.1 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate bookkeeper-client 0.2.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate bookkeeper-client 0.2.1 [INFO] finished tweaking crates.io crate bookkeeper-client 0.2.1 [INFO] tweaked toml for crates.io crate bookkeeper-client 0.2.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bookkeeper-client 0.2.1 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 233 packages to latest compatible versions [INFO] [stderr] Adding compact_str v0.7.1 (available: v0.9.0) [INFO] [stderr] Adding env_logger v0.10.2 (available: v0.11.8) [INFO] [stderr] Adding etcd-client v0.11.1 (available: v0.16.1) [INFO] [stderr] Adding prost v0.11.9 (available: v0.14.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding strum v0.25.0 (available: v0.27.2) [INFO] [stderr] Adding tonic v0.9.2 (available: v0.14.2) [INFO] [stderr] Adding tonic-build v0.9.2 (available: v0.14.2) [INFO] [stderr] Adding zookeeper-client v0.6.4 (available: v0.11.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5d103a07e5acc067a7958285524971fc47b493821063055ec4b868380bab1db [INFO] running `Command { std: "docker" "start" "-a" "c5d103a07e5acc067a7958285524971fc47b493821063055ec4b868380bab1db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5d103a07e5acc067a7958285524971fc47b493821063055ec4b868380bab1db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5d103a07e5acc067a7958285524971fc47b493821063055ec4b868380bab1db", kill_on_drop: false }` [INFO] [stdout] c5d103a07e5acc067a7958285524971fc47b493821063055ec4b868380bab1db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd6b04c6ed59587787fbd4c8d50316484903793e2b827148a20a6028d37c4892 [INFO] running `Command { std: "docker" "start" "-a" "cd6b04c6ed59587787fbd4c8d50316484903793e2b827148a20a6028d37c4892", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking ignore-result v0.2.0 [INFO] [stderr] Checking compact_str v0.4.1 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking ahash v0.7.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking const_format v0.2.34 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking indexmap v1.9.3 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Checking strum v0.23.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling tonic-build v0.9.2 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Compiling etcd-client v0.11.1 [INFO] [stderr] Compiling bookkeeper-client v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling bytemuck_derive v1.10.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling test-log-macros v0.2.18 [INFO] [stderr] Checking test-log v0.2.18 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking bytemuck v1.23.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking atomic v0.6.1 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking axum-core v0.3.4 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-io-timeout v1.2.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking zookeeper-client v0.6.4 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking axum v0.6.20 [INFO] [stderr] Checking tonic v0.9.2 [INFO] [stdout] warning: unused imports: `BookieRegistrationClient`, `BookieServiceInfo`, `BookieUpdateStream`, `LedgerIdStoreClient`, and `LedgerMetadataStoreClient` [INFO] [stdout] --> src/meta.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | BookieRegistrationClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | BookieServiceInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | BookieUpdateStream, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | LedgerIdStoreClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | LedgerMetadataStoreClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BookieRegistrationClient`, `BookieServiceInfo`, `BookieUpdateStream`, `LedgerIdStoreClient`, and `LedgerMetadataStoreClient` [INFO] [stdout] --> src/meta.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | BookieRegistrationClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | BookieServiceInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | BookieUpdateStream, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | LedgerIdStoreClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | LedgerMetadataStoreClient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `high_priority` is never read [INFO] [stdout] --> src/client/bookie.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct AddOptions<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 301 | pub recovery_add: bool, [INFO] [stdout] 302 | pub high_priority: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_add_confirmed` is never read [INFO] [stdout] --> src/client/bookie.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct FetchedEntry { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 309 | pub max_lac: EntryId, [INFO] [stdout] 310 | pub last_add_confirmed: EntryId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `high_priority` is never read [INFO] [stdout] --> src/client/bookie.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 315 | pub struct ReadOptions<'a> { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 316 | pub fence_ledger: bool, [INFO] [stdout] 317 | pub high_priority: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_quorum_coverage_set` is never used [INFO] [stdout] --> src/client/entry_distribution.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) trait HasEntryDistribution { [INFO] [stdout] | -------------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn new_quorum_coverage_set(&self) -> QuorumCoverageSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensemble_at` and `ensemble_iter` are never used [INFO] [stdout] --> src/client/metadata.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 379 | pub(crate) trait HasLedgerMetadata { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 382 | fn ensemble_at(&self, entry_id: EntryId) -> (EntryId, &[BookieId], EntryId) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | fn ensemble_iter(&self, entry_id: EntryId) -> EnsembleIterator<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `write_quorum`, `ack_quorum`, and `custom_metadata` are never read [INFO] [stdout] --> src/client/placement.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct EnsembleOptions<'a> { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 12 | pub ensemble_size: u32, [INFO] [stdout] 13 | pub write_quorum: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | pub ack_quorum: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub custom_metadata: &'a HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `digest_length` is never used [INFO] [stdout] --> src/digest/traits.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Algorithm { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 8 | fn digest_length(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterable` is never used [INFO] [stdout] --> src/future.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Iterable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/marker.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Sendable(std::rc::Rc<()>); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `properties` is never read [INFO] [stdout] --> src/meta/types.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct BookieServiceInfo { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 58 | pub bookie_id: BookieId, [INFO] [stdout] 59 | pub properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BookieServiceInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/meta/types.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct BookieEndpoint { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 115 | pub id: CompactString, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BookieEndpoint` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LedgerRereplicationLayoutFormat` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/bookkeeper-client-1fc56f549ec71929/out/bookkeeper.rs:645:12 [INFO] [stdout] | [INFO] [stdout] 645 | pub struct LedgerRereplicationLayoutFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/client/bookie.rs:820:9 [INFO] [stdout] | [INFO] [stdout] 819 | pub async fn connect(addr: A, _conf: &Configuration) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________- [INFO] [stdout] 820 | | impl From for BkError { [INFO] [stdout] | | ^^^^^----^---------^^^^^^------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | `BkError` is not local [INFO] [stdout] | | | `Error` is not local [INFO] [stdout] | | `From` is not local [INFO] [stdout] 821 | | fn from(_: io::Error) -> BkError { [INFO] [stdout] 822 | | BkError::with_description(ErrorKind::BookieNotAvailable, &"can't connect to bookie") [INFO] [stdout] ... | [INFO] [stdout] 830 | | Ok(client) [INFO] [stdout] 831 | | } [INFO] [stdout] | |_____- move the `impl` block outside of this async fn `` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] --> tests/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use testcontainers::clients::Cli as DockerCli; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `testcontainers`, use `cargo add testcontainers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] --> tests/client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use testcontainers::core::{Healthcheck, WaitFor}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `testcontainers`, use `cargo add testcontainers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] --> tests/client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use testcontainers::images::generic::GenericImage; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `testcontainers`, use `cargo add testcontainers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `testcontainers` [INFO] [stdout] --> tests/client.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use testcontainers::Container; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `testcontainers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `testcontainers`, use `cargo add testcontainers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `high_priority` is never read [INFO] [stdout] --> src/client/bookie.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct AddOptions<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 301 | pub recovery_add: bool, [INFO] [stdout] 302 | pub high_priority: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_add_confirmed` is never read [INFO] [stdout] --> src/client/bookie.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct FetchedEntry { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 309 | pub max_lac: EntryId, [INFO] [stdout] 310 | pub last_add_confirmed: EntryId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `high_priority` is never read [INFO] [stdout] --> src/client/bookie.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 315 | pub struct ReadOptions<'a> { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 316 | pub fence_ledger: bool, [INFO] [stdout] 317 | pub high_priority: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_quorum_coverage_set` is never used [INFO] [stdout] --> src/client/entry_distribution.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) trait HasEntryDistribution { [INFO] [stdout] | -------------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn new_quorum_coverage_set(&self) -> QuorumCoverageSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensemble_at` and `ensemble_iter` are never used [INFO] [stdout] --> src/client/metadata.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 379 | pub(crate) trait HasLedgerMetadata { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 382 | fn ensemble_at(&self, entry_id: EntryId) -> (EntryId, &[BookieId], EntryId) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | fn ensemble_iter(&self, entry_id: EntryId) -> EnsembleIterator<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `write_quorum`, `ack_quorum`, and `custom_metadata` are never read [INFO] [stdout] --> src/client/placement.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct EnsembleOptions<'a> { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 12 | pub ensemble_size: u32, [INFO] [stdout] 13 | pub write_quorum: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | pub ack_quorum: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub custom_metadata: &'a HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterable` is never used [INFO] [stdout] --> src/future.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Iterable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/marker.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Sendable(std::rc::Rc<()>); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `properties` is never read [INFO] [stdout] --> src/meta/types.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct BookieServiceInfo { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 58 | pub bookie_id: BookieId, [INFO] [stdout] 59 | pub properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BookieServiceInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/meta/types.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct BookieEndpoint { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 115 | pub id: CompactString, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BookieEndpoint` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LedgerRereplicationLayoutFormat` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/bookkeeper-client-1fc56f549ec71929/out/bookkeeper.rs:645:12 [INFO] [stdout] | [INFO] [stdout] 645 | pub struct LedgerRereplicationLayoutFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/client/bookie.rs:820:9 [INFO] [stdout] | [INFO] [stdout] 819 | pub async fn connect(addr: A, _conf: &Configuration) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________- [INFO] [stdout] 820 | | impl From for BkError { [INFO] [stdout] | | ^^^^^----^---------^^^^^^------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | `BkError` is not local [INFO] [stdout] | | | `Error` is not local [INFO] [stdout] | | `From` is not local [INFO] [stdout] 821 | | fn from(_: io::Error) -> BkError { [INFO] [stdout] 822 | | BkError::with_description(ErrorKind::BookieNotAvailable, &"can't connect to bookie") [INFO] [stdout] ... | [INFO] [stdout] 830 | | Ok(client) [INFO] [stdout] 831 | | } [INFO] [stdout] | |_____- move the `impl` block outside of this async fn `` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bookkeeper-client` (test "client") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "cd6b04c6ed59587787fbd4c8d50316484903793e2b827148a20a6028d37c4892", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd6b04c6ed59587787fbd4c8d50316484903793e2b827148a20a6028d37c4892", kill_on_drop: false }` [INFO] [stdout] cd6b04c6ed59587787fbd4c8d50316484903793e2b827148a20a6028d37c4892