[INFO] cloning repository https://github.com/uglyoldbob/bluetooth-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uglyoldbob/bluetooth-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuglyoldbob%2Fbluetooth-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuglyoldbob%2Fbluetooth-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6596964c02caf32a198cd49237def500537c7aa2 [INFO] checking uglyoldbob/bluetooth-rust against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuglyoldbob%2Fbluetooth-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/uglyoldbob/bluetooth-rust [INFO] finished tweaking git repo https://github.com/uglyoldbob/bluetooth-rust [INFO] tweaked toml for git repo https://github.com/uglyoldbob/bluetooth-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/uglyoldbob/bluetooth-rust 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] crate git repo https://github.com/uglyoldbob/bluetooth-rust already has a lockfile, it will not be regenerated [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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e996d7fda7d30c5d3b793085987cddf61c08fbe5ebb4983f4c8351b24d51181a [INFO] running `Command { std: "docker" "start" "-a" "e996d7fda7d30c5d3b793085987cddf61c08fbe5ebb4983f4c8351b24d51181a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e996d7fda7d30c5d3b793085987cddf61c08fbe5ebb4983f4c8351b24d51181a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e996d7fda7d30c5d3b793085987cddf61c08fbe5ebb4983f4c8351b24d51181a", kill_on_drop: false }` [INFO] [stdout] e996d7fda7d30c5d3b793085987cddf61c08fbe5ebb4983f4c8351b24d51181a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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] 069511cbc5f43af5ab71fbd672b341a930f9f6ad25cc18197803233d3e2fb92e [INFO] running `Command { std: "docker" "start" "-a" "069511cbc5f43af5ab71fbd672b341a930f9f6ad25cc18197803233d3e2fb92e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling libdbus-sys v0.2.5 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking macaddr v1.0.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking ouroboros v0.18.5 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling custom_debug_derive v0.6.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking custom_debug v0.6.2 [INFO] [stderr] Checking dbus v0.9.7 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking dbus-crossroads v0.5.2 [INFO] [stderr] Checking dbus-tokio v0.7.6 [INFO] [stderr] Compiling bluer v0.17.3 [INFO] [stderr] Checking bluetooth-rust v0.3.0 (/opt/rustwide/workdir/bluetooth-rust) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceProperty` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use bluer::{AdapterEvent, DeviceProperty}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:427:29 [INFO] [stdout] | [INFO] [stdout] 427 | for p in ps {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> bluetooth-rust/src/lib.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 316 | / return Ok(BluetoothAdapter::Bluez( [INFO] [stdout] 317 | | linux::BluetoothHandler::new(self.s.unwrap()).await?, [INFO] [stdout] 318 | | )); [INFO] [stdout] | |______________- any code following this expression is unreachable [INFO] [stdout] 319 | } [INFO] [stdout] 320 | Err("No builders available".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | uuid: crate::BluetoothUuid, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_secure` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | is_secure: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | uuid: crate::BluetoothUuid, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_secure` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | is_secure: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | settings: super::BluetoothL2capProfileSettings, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceProperty` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use bluer::{AdapterEvent, DeviceProperty}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adapter` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | for adapter in &self.adapters { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> bluetooth-rust/src/lib.rs:363:36 [INFO] [stdout] | [INFO] [stdout] 363 | BluetoothStream::Bluez(pin) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> bluetooth-rust/src/lib.rs:373:36 [INFO] [stdout] | [INFO] [stdout] 373 | BluetoothStream::Bluez(pin) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> bluetooth-rust/src/linux.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct BluetoothRfcommSocket { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 69 | /// The rfcomm socket data, TODO [INFO] [stdout] 70 | inner: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable` and `disable` are never used [INFO] [stdout] --> bluetooth-rust/src/linux.rs:222:14 [INFO] [stdout] | [INFO] [stdout] 187 | impl BluetoothHandler { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | async fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | async fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/lib.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 237 | ) -> Result; [INFO] [stdout] | --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 237 | ) -> Result, String>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 244 | ) -> Result; [INFO] [stdout] | --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 244 | ) -> Result, String>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | async fn accept(self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 384 - async fn accept(self) -> Result; [INFO] [stdout] 384 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 418 | async fn accept(self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 418 - async fn accept(self) -> Result; [INFO] [stdout] 418 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:451:5 [INFO] [stdout] | [INFO] [stdout] 451 | async fn connectable(&mut self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 451 - async fn connectable(&mut self) -> Result; [INFO] [stdout] 451 + fn connectable(&mut self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/linux.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 53 | ) -> Result { [INFO] [stdout] | ---------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 53 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/linux.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 62 | ) -> Result { [INFO] [stdout] | ---------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 62 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:427:29 [INFO] [stdout] | [INFO] [stdout] 427 | for p in ps {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> bluetooth-rust/src/lib.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 316 | / return Ok(BluetoothAdapter::Bluez( [INFO] [stdout] 317 | | linux::BluetoothHandler::new(self.s.unwrap()).await?, [INFO] [stdout] 318 | | )); [INFO] [stdout] | |______________- any code following this expression is unreachable [INFO] [stdout] 319 | } [INFO] [stdout] 320 | Err("No builders available".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | uuid: crate::BluetoothUuid, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_secure` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | is_secure: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | uuid: crate::BluetoothUuid, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_secure` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | is_secure: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | settings: super::BluetoothL2capProfileSettings, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adapter` [INFO] [stdout] --> bluetooth-rust/src/linux.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | for adapter in &self.adapters { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> bluetooth-rust/src/lib.rs:363:36 [INFO] [stdout] | [INFO] [stdout] 363 | BluetoothStream::Bluez(pin) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> bluetooth-rust/src/lib.rs:373:36 [INFO] [stdout] | [INFO] [stdout] 373 | BluetoothStream::Bluez(pin) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> bluetooth-rust/src/linux.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct BluetoothRfcommSocket { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 69 | /// The rfcomm socket data, TODO [INFO] [stdout] 70 | inner: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable` and `disable` are never used [INFO] [stdout] --> bluetooth-rust/src/linux.rs:222:14 [INFO] [stdout] | [INFO] [stdout] 187 | impl BluetoothHandler { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | async fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | async fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/lib.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 237 | ) -> Result; [INFO] [stdout] | --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 237 | ) -> Result, String>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 244 | ) -> Result; [INFO] [stdout] | --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 244 | ) -> Result, String>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | async fn accept(self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 384 - async fn accept(self) -> Result; [INFO] [stdout] 384 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 418 | async fn accept(self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 418 - async fn accept(self) -> Result; [INFO] [stdout] 418 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> bluetooth-rust/src/lib.rs:451:5 [INFO] [stdout] | [INFO] [stdout] 451 | async fn connectable(&mut self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 451 - async fn connectable(&mut self) -> Result; [INFO] [stdout] 451 + fn connectable(&mut self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/linux.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 53 | ) -> Result { [INFO] [stdout] | ---------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 53 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> bluetooth-rust/src/linux.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 62 | ) -> Result { [INFO] [stdout] | ---------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 62 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.43s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bluer v0.17.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "069511cbc5f43af5ab71fbd672b341a930f9f6ad25cc18197803233d3e2fb92e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "069511cbc5f43af5ab71fbd672b341a930f9f6ad25cc18197803233d3e2fb92e", kill_on_drop: false }` [INFO] [stdout] 069511cbc5f43af5ab71fbd672b341a930f9f6ad25cc18197803233d3e2fb92e