[INFO] cloning repository https://github.com/ryankurte/rust-remote-hal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryankurte/rust-remote-hal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryankurte%2Frust-remote-hal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryankurte%2Frust-remote-hal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 087e139d0166b928c4569e446b0a2d5a47fa9a5c [INFO] checking ryankurte/rust-remote-hal against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryankurte%2Frust-remote-hal" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryankurte/rust-remote-hal on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/ryankurte/rust-remote-hal [INFO] finished tweaking git repo https://github.com/ryankurte/rust-remote-hal [INFO] tweaked toml for git repo https://github.com/ryankurte/rust-remote-hal written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryankurte/rust-remote-hal 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7bcd66a90e5e828e62b5dca85256d18446d7052315c3a7c99f0b6c973cc9864a [INFO] running `Command { std: "docker" "start" "-a" "7bcd66a90e5e828e62b5dca85256d18446d7052315c3a7c99f0b6c973cc9864a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7bcd66a90e5e828e62b5dca85256d18446d7052315c3a7c99f0b6c973cc9864a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bcd66a90e5e828e62b5dca85256d18446d7052315c3a7c99f0b6c973cc9864a", kill_on_drop: false }` [INFO] [stdout] 7bcd66a90e5e828e62b5dca85256d18446d7052315c3a7c99f0b6c973cc9864a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13c828002cec8e447d0554a17cfd3607044203d9d2f4b5234bd8c795fdc98385 [INFO] running `Command { std: "docker" "start" "-a" "13c828002cec8e447d0554a17cfd3607044203d9d2f4b5234bd8c795fdc98385", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking futures v0.1.25 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.29 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling serde v1.0.89 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling nix v0.10.0 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking tokio-trace-core v0.1.0 [INFO] [stderr] Compiling nix v0.6.0 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Compiling derive_builder v0.7.1 [INFO] [stderr] Compiling unicode-segmentation v1.2.1 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Checking crossbeam-epoch v0.7.1 [INFO] [stderr] Checking nb v0.1.1 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking cast v0.2.2 [INFO] [stderr] Checking try_from v0.3.2 [INFO] [stderr] Checking embedded-hal v0.2.2 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking crate v0.0.2 [INFO] [stderr] Checking simple-error v0.1.13 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking term v0.5.2 [INFO] [stderr] Checking users v0.7.0 [INFO] [stderr] Checking tokio-executor v0.1.7 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking tokio-sync v0.1.4 [INFO] [stderr] Checking tokio-serde v0.2.0 [INFO] [stderr] Checking futures-timer v0.1.1 [INFO] [stderr] Checking tokio-timer v0.2.10 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking uuid v0.6.5 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking tokio-threadpool v0.1.13 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking spidev v0.3.0 [INFO] [stderr] Checking simplelog v0.5.3 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio v0.1.18 [INFO] [stderr] Checking tokio-core v0.1.17 [INFO] [stderr] Checking i2cdev v0.4.1 [INFO] [stderr] Checking sysfs_gpio v0.5.3 [INFO] [stderr] Checking linux-embedded-hal v0.2.2 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking tokio-serde-json-mirror v0.1.0 [INFO] [stderr] Compiling darling_core v0.8.6 [INFO] [stderr] Compiling structopt-derive v0.2.15 [INFO] [stderr] Compiling serde_derive v1.0.89 [INFO] [stderr] Checking structopt v0.2.15 [INFO] [stderr] Compiling darling_macro v0.8.6 [INFO] [stderr] Compiling darling v0.8.6 [INFO] [stderr] Compiling derive_builder_core v0.4.1 [INFO] [stderr] Checking rr-mux v0.7.0 [INFO] [stderr] Checking daemon-engine v0.5.1 [INFO] [stderr] Checking remote-hal v0.5.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | fn i2c(&mut self, path: &str) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn i2c(&mut self, path: &str) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:35:68 [INFO] [stdout] | [INFO] [stdout] 35 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box+ Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box+ Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:45:57 [INFO] [stdout] | [INFO] [stdout] 45 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:173:68 [INFO] [stdout] | [INFO] [stdout] 173 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 173 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:191:57 [INFO] [stdout] | [INFO] [stdout] 191 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 191 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:209:42 [INFO] [stdout] | [INFO] [stdout] 209 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 209 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | fn i2c(&mut self, path: &str) -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn i2c(&mut self, path: &str) -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:35:68 [INFO] [stdout] | [INFO] [stdout] 35 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box+ Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box+ Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:45:57 [INFO] [stdout] | [INFO] [stdout] 45 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/local/mod.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 | fn do_request(&mut self, path: &str, req: RequestKind) -> Box + Send + 'static> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:173:68 [INFO] [stdout] | [INFO] [stdout] 173 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 173 | fn spi(&mut self, path: &str, baud: u32, mode: SpiMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:191:57 [INFO] [stdout] | [INFO] [stdout] 191 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 191 | fn pin(&mut self, path: &str, mode: PinMode) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/remote/mod.rs:209:42 [INFO] [stdout] | [INFO] [stdout] 209 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 209 | fn i2c(&mut self, path: &str) -> Box + Send> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/remote/mod.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(|r| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 160 | self.do_init(r) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/remote/mod.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(|r| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 160 | self.do_init(r) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/remote/mod.rs:159:45 [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(|r| { [INFO] [stdout] | ^^^ may outlive borrowed value `self` [INFO] [stdout] 160 | self.do_init(r) [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/remote/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | future::join_all(f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(move |r| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/remote/mod.rs:159:45 [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(|r| { [INFO] [stdout] | ^^^ may outlive borrowed value `self` [INFO] [stdout] 160 | self.do_init(r) [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/remote/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | future::join_all(f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 159 | let f: Vec<_> = requests.iter().map(move |r| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `remote-hal` (lib) due to 3 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `remote-hal` (lib test) due to 3 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "13c828002cec8e447d0554a17cfd3607044203d9d2f4b5234bd8c795fdc98385", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13c828002cec8e447d0554a17cfd3607044203d9d2f4b5234bd8c795fdc98385", kill_on_drop: false }` [INFO] [stdout] 13c828002cec8e447d0554a17cfd3607044203d9d2f4b5234bd8c795fdc98385