[INFO] fetching crate keypad 0.1.4... [INFO] testing keypad-0.1.4 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate keypad 0.1.4 into /workspace/builds/worker-89/source [INFO] validating manifest of crates.io crate keypad 0.1.4 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate keypad 0.1.4 [INFO] finished tweaking crates.io crate keypad 0.1.4 [INFO] tweaked toml for crates.io crate keypad 0.1.4 written to /workspace/builds/worker-89/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 376be51b4be4cd66b25215e648749f93c2c3b20fd80c21ef0d4599c7b72a65b2 [INFO] running `Command { std: "docker" "start" "-a" "376be51b4be4cd66b25215e648749f93c2c3b20fd80c21ef0d4599c7b72a65b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "376be51b4be4cd66b25215e648749f93c2c3b20fd80c21ef0d4599c7b72a65b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "376be51b4be4cd66b25215e648749f93c2c3b20fd80c21ef0d4599c7b72a65b2", kill_on_drop: false }` [INFO] [stdout] 376be51b4be4cd66b25215e648749f93c2c3b20fd80c21ef0d4599c7b72a65b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcbdc316deaa66256389d6c28aa69b46fc340a9f44792dd6bd658f670e5e847a [INFO] running `Command { std: "docker" "start" "-a" "bcbdc316deaa66256389d6c28aa69b46fc340a9f44792dd6bd658f670e5e847a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling keypad v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:180:10 [INFO] [stdout] | [INFO] [stdout] 180 | impl<'a> InputPin for KeypadInput<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 155 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | impl InputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (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/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - row: &'a InputPin, [INFO] [stdout] 169 + row: &'a dyn InputPin, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 - col: &'a RefCell, [INFO] [stdout] 170 + col: &'a RefCell, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a dyn InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:188:31 [INFO] [stdout] | [INFO] [stdout] 188 | self.col.borrow_mut().set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | let out = self.row.is_low(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:190:31 [INFO] [stdout] | [INFO] [stdout] 190 | self.col.borrow_mut().set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 180 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "bcbdc316deaa66256389d6c28aa69b46fc340a9f44792dd6bd658f670e5e847a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcbdc316deaa66256389d6c28aa69b46fc340a9f44792dd6bd658f670e5e847a", kill_on_drop: false }` [INFO] [stdout] bcbdc316deaa66256389d6c28aa69b46fc340a9f44792dd6bd658f670e5e847a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36fbd8a2a193e5b42ff5e5125c4678a5a70153f295f5bc837e0776fef359b806 [INFO] running `Command { std: "docker" "start" "-a" "36fbd8a2a193e5b42ff5e5125c4678a5a70153f295f5bc837e0776fef359b806", kill_on_drop: false }` [INFO] [stderr] Compiling keypad v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:180:10 [INFO] [stdout] | [INFO] [stdout] 180 | impl<'a> InputPin for KeypadInput<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 155 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | impl InputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (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/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - row: &'a InputPin, [INFO] [stdout] 169 + row: &'a dyn InputPin, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 - col: &'a RefCell, [INFO] [stdout] 170 + col: &'a RefCell, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a dyn InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:188:31 [INFO] [stdout] | [INFO] [stdout] 188 | self.col.borrow_mut().set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | let out = self.row.is_low(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:190:31 [INFO] [stdout] | [INFO] [stdout] 190 | self.col.borrow_mut().set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 180 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> examples/basic.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(nll)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `keypad::embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/basic.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | use keypad::embedded_hal::digital::InputPin; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `keypad::embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/basic.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / keypad_struct!{ [INFO] [stdout] 20 | | pub struct ExampleKeypad { [INFO] [stdout] 21 | | rows: ( [INFO] [stdout] 22 | | mock_hal::gpioa::PA0>, [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `keypad::embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/basic.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / keypad_struct!{ [INFO] [stdout] 20 | | pub struct ExampleKeypad { [INFO] [stdout] 21 | | rows: ( [INFO] [stdout] 22 | | mock_hal::gpioa::PA0>, [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> examples/basic.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / keypad_struct!{ [INFO] [stdout] 20 | | pub struct ExampleKeypad { [INFO] [stdout] 21 | | rows: ( [INFO] [stdout] 22 | | mock_hal::gpioa::PA0>, [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keypad::embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/basic.rs:64:54 [INFO] [stdout] | [INFO] [stdout] 64 | println!("Is first key pressed? {}\n", first_key.is_low()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keypad::embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/basic.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | let is_pressed = if key.is_low() { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0554`. [INFO] [stdout] [INFO] [stderr] error: could not compile `keypad` due to 2 previous errors; 6 warnings emitted [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:180:10 [INFO] [stdout] | [INFO] [stdout] 180 | impl<'a> InputPin for KeypadInput<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 155 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::OutputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | impl OutputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `embedded_hal::digital::InputPin`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | impl InputPin for $Pin> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (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/lib.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | row: &'a InputPin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - row: &'a InputPin, [INFO] [stdout] 169 + row: &'a dyn InputPin, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:170:22 [INFO] [stdout] | [INFO] [stdout] 170 | col: &'a RefCell, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 - col: &'a RefCell, [INFO] [stdout] 170 + col: &'a RefCell, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a dyn InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:52 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] 175 + pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:188:31 [INFO] [stdout] | [INFO] [stdout] 188 | self.col.borrow_mut().set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | let out = self.row.is_low(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/lib.rs:190:31 [INFO] [stdout] | [INFO] [stdout] 190 | self.col.borrow_mut().set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embedded_hal::digital::InputPin::is_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> src/mock_hal.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 180 | !self.is_low() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stdout] 203 | | (PA0, pa0, Input), [INFO] [stdout] 204 | | (PA1, pa1, Input), [INFO] [stdout] 205 | | (PA2, pa2, Input), [INFO] [stdout] ... | [INFO] [stdout] 218 | | (PA15, pa15, Input), [INFO] [stdout] 219 | | ]); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "36fbd8a2a193e5b42ff5e5125c4678a5a70153f295f5bc837e0776fef359b806", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36fbd8a2a193e5b42ff5e5125c4678a5a70153f295f5bc837e0776fef359b806", kill_on_drop: false }` [INFO] [stdout] 36fbd8a2a193e5b42ff5e5125c4678a5a70153f295f5bc837e0776fef359b806