[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] testing uglyoldbob/bluetooth-rust against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuglyoldbob%2Fbluetooth-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/uglyoldbob/bluetooth-rust on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded custom_debug v0.6.2 [INFO] [stderr] Downloaded macaddr v1.0.1 [INFO] [stderr] Downloaded java-locator v0.1.9 [INFO] [stderr] Downloaded custom_debug_derive v0.6.2 [INFO] [stderr] Downloaded dbus-tokio v0.7.6 [INFO] [stderr] Downloaded dbus-crossroads v0.5.2 [INFO] [stderr] Downloaded dbus v0.9.7 [INFO] [stderr] Downloaded jni-min-helper v0.3.0 [INFO] [stderr] Downloaded bluer v0.17.3 [INFO] [stderr] Downloaded libdbus-sys v0.2.5 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f04cb750b76fe0634c61f9a7ec708f8d3c10e2f55fb7932911a2463e1a18019 [INFO] running `Command { std: "docker" "start" "-a" "5f04cb750b76fe0634c61f9a7ec708f8d3c10e2f55fb7932911a2463e1a18019", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f04cb750b76fe0634c61f9a7ec708f8d3c10e2f55fb7932911a2463e1a18019", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f04cb750b76fe0634c61f9a7ec708f8d3c10e2f55fb7932911a2463e1a18019", kill_on_drop: false }` [INFO] [stdout] 5f04cb750b76fe0634c61f9a7ec708f8d3c10e2f55fb7932911a2463e1a18019 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 68aec8a100132255a54e83dd5a0fc1a8785109db6d288ff2050f8b710b66ad3c [INFO] running `Command { std: "docker" "start" "-a" "68aec8a100132255a54e83dd5a0fc1a8785109db6d288ff2050f8b710b66ad3c", kill_on_drop: false }` [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling libdbus-sys v0.2.5 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling macaddr v1.0.1 [INFO] [stderr] Compiling once_cell v1.21.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 strum_macros v0.26.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling ouroboros v0.18.5 [INFO] [stderr] Compiling 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 custom_debug v0.6.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling dbus v0.9.7 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling bluer v0.17.3 [INFO] [stderr] Compiling dbus-crossroads v0.5.2 [INFO] [stderr] Compiling dbus-tokio v0.7.6 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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] [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)]` (part of `#[warn(unused)]`) 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 1m 04s [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 4` [INFO] running `Command { std: "docker" "inspect" "68aec8a100132255a54e83dd5a0fc1a8785109db6d288ff2050f8b710b66ad3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68aec8a100132255a54e83dd5a0fc1a8785109db6d288ff2050f8b710b66ad3c", kill_on_drop: false }` [INFO] [stdout] 68aec8a100132255a54e83dd5a0fc1a8785109db6d288ff2050f8b710b66ad3c [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 3f9f7a4c95c2f529d1176ed80604280f643deaaed8b847de2d000edc962ca4bb [INFO] running `Command { std: "docker" "start" "-a" "3f9f7a4c95c2f529d1176ed80604280f643deaaed8b847de2d000edc962ca4bb", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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] [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)]` (part of `#[warn(unused)]`) 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] Compiling 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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] [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)]` (part of `#[warn(unused)]`) 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 `test` profile [unoptimized + debuginfo] target(s) in 1.33s [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 4` [INFO] running `Command { std: "docker" "inspect" "3f9f7a4c95c2f529d1176ed80604280f643deaaed8b847de2d000edc962ca4bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f9f7a4c95c2f529d1176ed80604280f643deaaed8b847de2d000edc962ca4bb", kill_on_drop: false }` [INFO] [stdout] 3f9f7a4c95c2f529d1176ed80604280f643deaaed8b847de2d000edc962ca4bb [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 24452bb10bc4e7f8eeb1ff4825772e4d65767becb40c7c2111124c7e54bd5a5d [INFO] running `Command { std: "docker" "start" "-a" "24452bb10bc4e7f8eeb1ff4825772e4d65767becb40c7c2111124c7e54bd5a5d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `HashSet` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:3:33 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::marker::PhantomData` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::marker::PhantomData; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `DeviceProperty` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:6:27 [INFO] [stderr] | [INFO] [stderr] 6 | use bluer::{AdapterEvent, DeviceProperty}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> bluetooth-rust/src/lib.rs:320:9 [INFO] [stderr] | [INFO] [stderr] 316 | / return Ok(BluetoothAdapter::Bluez( [INFO] [stderr] 317 | | linux::BluetoothHandler::new(self.s.unwrap()).await?, [INFO] [stderr] 318 | | )); [INFO] [stderr] | |______________- any code following this expression is unreachable [INFO] [stderr] 319 | } [INFO] [stderr] 320 | Err("No builders available".to_string()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uuid` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | uuid: crate::BluetoothUuid, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_secure` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | is_secure: bool, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uuid` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | uuid: crate::BluetoothUuid, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_secure` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | is_secure: bool, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_secure` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `settings` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 141 | settings: super::BluetoothL2capProfileSettings, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `adapter` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:163:13 [INFO] [stderr] | [INFO] [stderr] 163 | for adapter in &self.adapters { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adapter` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> bluetooth-rust/src/linux.rs:427:29 [INFO] [stderr] | [INFO] [stderr] 427 | for p in ps {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pin` [INFO] [stderr] --> bluetooth-rust/src/lib.rs:363:36 [INFO] [stderr] | [INFO] [stderr] 363 | BluetoothStream::Bluez(pin) => None, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pin` [INFO] [stderr] --> bluetooth-rust/src/lib.rs:373:36 [INFO] [stderr] | [INFO] [stderr] 373 | BluetoothStream::Bluez(pin) => None, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stderr] [INFO] [stderr] warning: field `inner` is never read [INFO] [stderr] --> bluetooth-rust/src/linux.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 68 | pub struct BluetoothRfcommSocket { [INFO] [stderr] | --------------------- field in this struct [INFO] [stderr] 69 | /// The rfcomm socket data, TODO [INFO] [stderr] 70 | inner: u32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `enable` and `disable` are never used [INFO] [stderr] --> bluetooth-rust/src/linux.rs:222:14 [INFO] [stderr] | [INFO] [stderr] 187 | impl BluetoothHandler { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 222 | async fn enable(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 230 | async fn disable(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> bluetooth-rust/src/lib.rs:234:9 [INFO] [stderr] | [INFO] [stderr] 234 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 237 | ) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 237 | ) -> Result, String>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> bluetooth-rust/src/lib.rs:241:9 [INFO] [stderr] | [INFO] [stderr] 241 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 244 | ) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 244 | ) -> Result, String>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> bluetooth-rust/src/lib.rs:384:5 [INFO] [stderr] | [INFO] [stderr] 384 | async fn accept(self) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stderr] 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] [stderr] | [INFO] [stderr] 384 - async fn accept(self) -> Result; [INFO] [stderr] 384 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> bluetooth-rust/src/lib.rs:418:5 [INFO] [stderr] | [INFO] [stderr] 418 | async fn accept(self) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 418 - async fn accept(self) -> Result; [INFO] [stderr] 418 + fn accept(self) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> bluetooth-rust/src/lib.rs:451:5 [INFO] [stderr] | [INFO] [stderr] 451 | async fn connectable(&mut self) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 451 - async fn connectable(&mut self) -> Result; [INFO] [stderr] 451 + fn connectable(&mut self) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> bluetooth-rust/src/linux.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 53 | ) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 53 | ) -> Result, String> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> bluetooth-rust/src/linux.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 62 | ) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 62 | ) -> Result, String> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `bluetooth-rust` (lib) generated 22 warnings (run `cargo fix --lib -p bluetooth-rust` to apply 16 suggestions) [INFO] [stderr] warning: `bluetooth-rust` (lib test) generated 22 warnings (22 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [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 4` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/bluetooth-rust/d9999fe14f5fa134/deps/bluetooth_rust-d9999fe14f5fa134) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests bluetooth_rust [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "24452bb10bc4e7f8eeb1ff4825772e4d65767becb40c7c2111124c7e54bd5a5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24452bb10bc4e7f8eeb1ff4825772e4d65767becb40c7c2111124c7e54bd5a5d", kill_on_drop: false }` [INFO] [stdout] 24452bb10bc4e7f8eeb1ff4825772e4d65767becb40c7c2111124c7e54bd5a5d