[INFO] fetching crate rumble 0.3.0... [INFO] checking rumble-0.3.0 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate rumble 0.3.0 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate rumble 0.3.0 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rumble 0.3.0 [INFO] finished tweaking crates.io crate rumble 0.3.0 [INFO] tweaked toml for crates.io crate rumble 0.3.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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] Locking 50 packages [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding bytes v0.4.12 (latest: v1.6.0) [INFO] [stderr] Adding cfg-if v0.1.10 (latest: v1.0.0) [INFO] [stderr] Adding log v0.3.9 (latest: v0.4.21) [INFO] [stderr] Adding nix v0.12.1 (latest: v0.28.0) [INFO] [stderr] Adding nom v4.2.3 (latest: v7.1.3) [INFO] [stderr] Adding num v0.1.42 (latest: v0.4.1) [INFO] [stderr] Adding num-bigint v0.1.44 (latest: v0.4.4) [INFO] [stderr] Adding num-complex v0.1.43 (latest: v0.4.5) [INFO] [stderr] Adding num-rational v0.1.42 (latest: v0.4.1) [INFO] [stderr] Adding num-traits v0.1.43 (latest: v0.2.18) [INFO] [stderr] Adding object v0.32.2 (latest: v0.34.0) [INFO] [stderr] Adding rand v0.4.6 (latest: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.58) [INFO] [stderr] Adding synstructure v0.12.6 (latest: v0.13.1) [INFO] [stderr] Adding version_check v0.1.5 (latest: v0.9.4) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nix v0.12.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a336faaeddb75ecf42bc6a0f5680c6ac84261f88607998e9cc1f64c9c8e2a7a7 [INFO] running `Command { std: "docker" "start" "-a" "a336faaeddb75ecf42bc6a0f5680c6ac84261f88607998e9cc1f64c9c8e2a7a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a336faaeddb75ecf42bc6a0f5680c6ac84261f88607998e9cc1f64c9c8e2a7a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a336faaeddb75ecf42bc6a0f5680c6ac84261f88607998e9cc1f64c9c8e2a7a7", kill_on_drop: false }` [INFO] [stdout] a336faaeddb75ecf42bc6a0f5680c6ac84261f88607998e9cc1f64c9c8e2a7a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0432d9ff3cc1f2fd414370cc6d7c93ac718bae996477356decadb7e62f89eb82 [INFO] running `Command { std: "docker" "start" "-a" "0432d9ff3cc1f2fd414370cc6d7c93ac718bae996477356decadb7e62f89eb82", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling nix v0.12.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking backtrace v0.3.71 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking rumble v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/manager/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/acl_stream.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/peripheral.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `nom` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | extern crate nom; [INFO] [stdout] | ----------------- the item `nom` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `le_u8` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/hci.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{le_u8, le_u16, le_u32, le_u64, le_i8, IResult, Err, ErrorKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | use bluez::protocol::*; [INFO] [stdout] | ------------------ the item `le_u8` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `le_u8` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/att.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{le_u8, le_u16, IResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | use bluez::protocol::*; [INFO] [stdout] | ------------------ the item `le_u8` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `nix` is imported redundantly [INFO] [stdout] --> src/bluez/util/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nix; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | extern crate nix; [INFO] [stdout] | ----------------- the item `nix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] 19 + (b'H' as (i32) << 0i32 + 8i32) as u32 | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:19:71 [INFO] [stdout] | [INFO] [stdout] 19 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] 19 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as u32) as [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | (usize) | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - (usize) | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] 20 + usize | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as u32 | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:71 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as u32) as (usize) | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:81 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as usize | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bluez/protocol/mod.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | named!(pub parse_uuid_128<&[u8], [u8; 16]>, count_fixed!(u8, le_u8, 16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:66:28 [INFO] [stdout] | [INFO] [stdout] 66 | pub type Callback = Box) + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | pub type Callback = Box) + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | pub type NotificationHandler = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 | pub type NotificationHandler = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:273:29 [INFO] [stdout] | [INFO] [stdout] 273 | pub type EventHandler = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 273 | pub type EventHandler = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/manager/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/acl_stream.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/peripheral.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `libc` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | extern crate libc; [INFO] [stdout] | ------------------ the item `libc` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `nom` is imported redundantly [INFO] [stdout] --> src/bluez/adapter/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | extern crate nom; [INFO] [stdout] | ----------------- the item `nom` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `le_u8` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/hci.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{le_u8, le_u16, le_u32, le_u64, le_i8, IResult, Err, ErrorKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | use bluez::protocol::*; [INFO] [stdout] | ------------------ the item `le_u8` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BDAddr` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/hci.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use ::api::BDAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | use super::*; [INFO] [stdout] | -------- the item `BDAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HCIStatus` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/hci.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | use super::*; [INFO] [stdout] | -------- the item `HCIStatus` is already imported here [INFO] [stdout] 15 | use super::LEAdvertisingData::*; [INFO] [stdout] 16 | use super::HCIStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `le_u8` is imported redundantly [INFO] [stdout] --> src/bluez/protocol/att.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{le_u8, le_u16, IResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | use bluez::protocol::*; [INFO] [stdout] | ------------------ the item `le_u8` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `nix` is imported redundantly [INFO] [stdout] --> src/bluez/util/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nix; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | extern crate nix; [INFO] [stdout] | ----------------- the item `nix` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] 19 + (b'H' as (i32) << 0i32 + 8i32) as u32 | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:19:71 [INFO] [stdout] | [INFO] [stdout] 19 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as (u32)) as [INFO] [stdout] 19 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (210i32 << 0i32) as u32) as [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | (usize) | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - (usize) | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] 20 + usize | 4 /* (sizeof(i32)) */ << 0i32 + 8i32 + 8i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as u32 | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:71 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as u32) as (usize) | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bluez/mod.rs:26:81 [INFO] [stdout] | [INFO] [stdout] 26 | (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as (usize) | [INFO] [stdout] 26 + (b'H' as (i32) << 0i32 + 8i32) as (u32) | (211i32 << 0i32) as (u32)) as usize | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bluez/protocol/mod.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | named!(pub parse_uuid_128<&[u8], [u8; 16]>, count_fixed!(u8, le_u8, 16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:66:28 [INFO] [stdout] | [INFO] [stdout] 66 | pub type Callback = Box) + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | pub type Callback = Box) + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | pub type NotificationHandler = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 | pub type NotificationHandler = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:273:29 [INFO] [stdout] | [INFO] [stdout] 273 | pub type EventHandler = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 273 | pub type EventHandler = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | (self as &Display).fmt(f) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | (self as &dyn Display).fmt(f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | (self as &Display).fmt(f) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | (self as &dyn Display).fmt(f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/bluez/adapter/acl_stream.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ACLStream { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 48 | adapter: Adapter, [INFO] [stdout] 49 | pub address: BDAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ACLStream` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bluez/protocol/hci.rs:632:24 [INFO] [stdout] | [INFO] [stdout] 632 | data: i.clone().to_owned() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bluez/protocol/hci.rs:721:24 [INFO] [stdout] | [INFO] [stdout] 721 | data: i.clone().to_owned(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | (self as &Display).fmt(f) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | (self as &dyn Display).fmt(f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/api/mod.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | (self as &Display).fmt(f) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | (self as &dyn Display).fmt(f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/bluez/adapter/acl_stream.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ACLStream { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 48 | adapter: Adapter, [INFO] [stdout] 49 | pub address: BDAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ACLStream` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bluez/protocol/hci.rs:632:24 [INFO] [stdout] | [INFO] [stdout] 632 | data: i.clone().to_owned() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bluez/protocol/hci.rs:721:24 [INFO] [stdout] | [INFO] [stdout] 721 | data: i.clone().to_owned(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.75s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3, num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "0432d9ff3cc1f2fd414370cc6d7c93ac718bae996477356decadb7e62f89eb82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0432d9ff3cc1f2fd414370cc6d7c93ac718bae996477356decadb7e62f89eb82", kill_on_drop: false }` [INFO] [stdout] 0432d9ff3cc1f2fd414370cc6d7c93ac718bae996477356decadb7e62f89eb82