[INFO] fetching crate keypad 0.1.4... [INFO] testing keypad-0.1.4 against try#ddc023471205c186b40f4bf8ffb598008dbf4885 for pr-87041-1 [INFO] extracting crate keypad 0.1.4 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate keypad 0.1.4 on toolchain ddc023471205c186b40f4bf8ffb598008dbf4885 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "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-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76f83ba0d33881a37b4168ace94de5131140f7504efc112d145f97a7ec0745e7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "76f83ba0d33881a37b4168ace94de5131140f7504efc112d145f97a7ec0745e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76f83ba0d33881a37b4168ace94de5131140f7504efc112d145f97a7ec0745e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76f83ba0d33881a37b4168ace94de5131140f7504efc112d145f97a7ec0745e7", kill_on_drop: false }` [INFO] [stdout] 76f83ba0d33881a37b4168ace94de5131140f7504efc112d145f97a7ec0745e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c14b6554d285637ae07ab85ac7c955a680994bfba8c69426807d6895cd1131e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5c14b6554d285637ae07ab85ac7c955a680994bfba8c69426807d6895cd1131e", kill_on_drop: false }` [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.6 [INFO] [stderr] Compiling keypad v0.1.4 (/opt/rustwide/workdir) [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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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: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: 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.40s [INFO] running `Command { std: "docker" "inspect" "5c14b6554d285637ae07ab85ac7c955a680994bfba8c69426807d6895cd1131e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c14b6554d285637ae07ab85ac7c955a680994bfba8c69426807d6895cd1131e", kill_on_drop: false }` [INFO] [stdout] 5c14b6554d285637ae07ab85ac7c955a680994bfba8c69426807d6895cd1131e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a9bfe57f6cbe96a663a4920e82a218104872d0bff7da2f34bed0a4ac26b01ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3a9bfe57f6cbe96a663a4920e82a218104872d0bff7da2f34bed0a4ac26b01ac", kill_on_drop: false }` [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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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: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: 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] Compiling keypad v0.1.4 (/opt/rustwide/workdir) [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] 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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [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] [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] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [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] [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: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: 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] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.23s [INFO] running `Command { std: "docker" "inspect" "3a9bfe57f6cbe96a663a4920e82a218104872d0bff7da2f34bed0a4ac26b01ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a9bfe57f6cbe96a663a4920e82a218104872d0bff7da2f34bed0a4ac26b01ac", kill_on_drop: false }` [INFO] [stdout] 3a9bfe57f6cbe96a663a4920e82a218104872d0bff7da2f34bed0a4ac26b01ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+ddc023471205c186b40f4bf8ffb598008dbf4885" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a8c31a13d3f392aac5ef8edab4f01d2a7d50d36700a97fb2f0e4405c266877e8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a8c31a13d3f392aac5ef8edab4f01d2a7d50d36700a97fb2f0e4405c266877e8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:169:14 [INFO] [stderr] | [INFO] [stderr] 169 | row: &'a InputPin, [INFO] [stderr] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:170:22 [INFO] [stderr] | [INFO] [stderr] 170 | col: &'a RefCell, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:175:25 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stderr] | ^^^^^^^^ help: use `dyn`: `dyn InputPin` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:175:52 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn OutputPin` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:148:29 [INFO] [stderr] | [INFO] [stderr] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:148:39 [INFO] [stderr] | [INFO] [stderr] 148 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:169:14 [INFO] [stderr] | [INFO] [stderr] 169 | row: &'a InputPin, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:170:22 [INFO] [stderr] | [INFO] [stderr] 170 | col: &'a RefCell, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:180:10 [INFO] [stderr] | [INFO] [stderr] 180 | impl<'a> InputPin for KeypadInput<'a> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:175:25 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:175:52 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn new(row: &'a InputPin, col: &'a RefCell) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:64:41 [INFO] [stderr] | [INFO] [stderr] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:64:51 [INFO] [stderr] | [INFO] [stderr] 64 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:155:22 [INFO] [stderr] | [INFO] [stderr] 155 | impl OutputPin for $Pin> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:166:22 [INFO] [stderr] | [INFO] [stderr] 166 | impl OutputPin for $Pin> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:177:28 [INFO] [stderr] | [INFO] [stderr] 177 | impl InputPin for $Pin> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:183:15 [INFO] [stderr] | [INFO] [stderr] 183 | !self.is_low() [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:188:31 [INFO] [stderr] | [INFO] [stderr] 188 | self.col.borrow_mut().set_low(); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:189:28 [INFO] [stderr] | [INFO] [stderr] 189 | let out = self.row.is_low(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:190:31 [INFO] [stderr] | [INFO] [stderr] 190 | self.col.borrow_mut().set_high(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/mock_hal.rs:180:31 [INFO] [stderr] | [INFO] [stderr] 180 | !self.is_low() [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 202 | / gpio!( GPIOA, gpioa, [ [INFO] [stderr] 203 | | (PA0, pa0, Input), [INFO] [stderr] 204 | | (PA1, pa1, Input), [INFO] [stderr] 205 | | (PA2, pa2, Input), [INFO] [stderr] ... | [INFO] [stderr] 218 | | (PA15, pa15, Input), [INFO] [stderr] 219 | | ]); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gpio` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `keypad` (lib) generated 21 warnings [INFO] [stderr] warning: `keypad` (lib test) generated 21 warnings (21 duplicates) [INFO] [stderr] 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] [stderr] --> examples/basic.rs:11:36 [INFO] [stderr] | [INFO] [stderr] 11 | use keypad::embedded_hal::digital::InputPin; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> examples/basic.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / keypad_struct!{ [INFO] [stderr] 20 | | pub struct ExampleKeypad { [INFO] [stderr] 21 | | rows: ( [INFO] [stderr] 22 | | mock_hal::gpioa::PA0>, [INFO] [stderr] ... | [INFO] [stderr] 34 | | } [INFO] [stderr] 35 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> examples/basic.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / keypad_struct!{ [INFO] [stderr] 20 | | pub struct ExampleKeypad { [INFO] [stderr] 21 | | rows: ( [INFO] [stderr] 22 | | mock_hal::gpioa::PA0>, [INFO] [stderr] ... | [INFO] [stderr] 34 | | } [INFO] [stderr] 35 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> examples/basic.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / keypad_struct!{ [INFO] [stderr] 20 | | pub struct ExampleKeypad { [INFO] [stderr] 21 | | rows: ( [INFO] [stderr] 22 | | mock_hal::gpioa::PA0>, [INFO] [stderr] ... | [INFO] [stderr] 34 | | } [INFO] [stderr] 35 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `keypad_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> examples/basic.rs:64:54 [INFO] [stderr] | [INFO] [stderr] 64 | println!("Is first key pressed? {}\n", first_key.is_low()); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> examples/basic.rs:72:37 [INFO] [stderr] | [INFO] [stderr] 72 | let is_pressed = if key.is_low() { 1 } else { 0 }; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `keypad` (example "basic") generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/keypad-57fcf103e62512ec) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests keypad [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - keypad_new (line 377) ... ok [INFO] [stdout] test src/lib.rs - keypad_struct (line 211) ... ok [INFO] [stdout] test src/lib.rs - (line 56) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 56) 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] --> src/lib.rs:62:36 [INFO] [stdout] | [INFO] [stdout] 7 | use keypad::embedded_hal::digital::InputPin; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [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] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 12 | / keypad_struct!{ [INFO] [stdout] 13 | | #[doc="My super-special keypad."] [INFO] [stdout] 14 | | pub struct ExampleKeypad { [INFO] [stdout] 15 | | rows: ( [INFO] [stdout] ... | [INFO] [stdout] 28 | | } [INFO] [stdout] 29 | | } [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] 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] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 12 | / keypad_struct!{ [INFO] [stdout] 13 | | #[doc="My super-special keypad."] [INFO] [stdout] 14 | | pub struct ExampleKeypad { [INFO] [stdout] 15 | | rows: ( [INFO] [stdout] ... | [INFO] [stdout] 28 | | } [INFO] [stdout] 29 | | } [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] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 12 | / keypad_struct!{ [INFO] [stdout] 13 | | #[doc="My super-special keypad."] [INFO] [stdout] 14 | | pub struct ExampleKeypad { [INFO] [stdout] 15 | | rows: ( [INFO] [stdout] ... | [INFO] [stdout] 28 | | } [INFO] [stdout] 29 | | } [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] 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] --> src/lib.rs:113:54 [INFO] [stdout] | [INFO] [stdout] 58 | println!("Is first key pressed? {}\n", first_key.is_low()); [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] --> src/lib.rs:120:37 [INFO] [stdout] | [INFO] [stdout] 65 | let is_pressed = if key.is_low() { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] Test executable failed (exit code 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'attempted to leave type `[[keypad::KeypadInput; 5]; 4]` uninitialized, which is invalid', src/lib.rs:12:1 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5578bf0d4a3c - std::backtrace_rs::backtrace::libunwind::trace::hf7449935ead7573e [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5578bf0d4a3c - std::backtrace_rs::backtrace::trace_unsynchronized::h221aa2d88d72372a [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5578bf0d4a3c - std::sys_common::backtrace::_print_fmt::h1c77e8983e1df895 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x5578bf0d4a3c - ::fmt::hd4ec41a9a6b0d22c [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x5578bf0eeb2c - core::fmt::write::h72801a82c94e6ff1 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/core/src/fmt/mod.rs:1149:17 [INFO] [stdout] 5: 0x5578bf0d22b5 - std::io::Write::write_fmt::haf74340a8cbeaa88 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/io/mod.rs:1660:15 [INFO] [stdout] 6: 0x5578bf0d6040 - std::sys_common::backtrace::_print::h2d15cd157796a64a [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x5578bf0d6040 - std::sys_common::backtrace::print::h52d286d22e2398eb [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x5578bf0d6040 - std::panicking::default_hook::{{closure}}::h6da08fba6306daf2 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:211:50 [INFO] [stdout] 9: 0x5578bf0d5beb - std::panicking::default_hook::h266f67a22e76b11a [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:228:9 [INFO] [stdout] 10: 0x5578bf0d66f4 - std::panicking::rust_panic_with_hook::he55698a957f4fb6d [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:606:17 [INFO] [stdout] 11: 0x5578bf0d61a2 - std::panicking::begin_panic_handler::{{closure}}::h01f453c3ac181895 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:500:13 [INFO] [stdout] 12: 0x5578bf0d4ee4 - std::sys_common::backtrace::__rust_end_short_backtrace::h675d77c6e5a3926d [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/sys_common/backtrace.rs:139:18 [INFO] [stdout] 13: 0x5578bf0d6139 - rust_begin_unwind [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:498:5 [INFO] [stdout] 14: 0x5578bf0bc451 - core::panicking::panic_fmt::h7b8580d81fcbbacd [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/core/src/panicking.rs:107:14 [INFO] [stdout] 15: 0x5578bf0bc39d - core::panicking::panic::h50b51d19800453c0 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x5578bf0be496 - rust_out::ExampleKeypad::decompose::h9e533a468bc7c194 [INFO] [stdout] 17: 0x5578bf0bdfdc - rust_out::main::h61823b600df25383 [INFO] [stdout] 18: 0x5578bf0bd233 - core::ops::function::FnOnce::call_once::h827fb1f4029b40e6 [INFO] [stdout] 19: 0x5578bf0bcf19 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0e9f87eb2e4c4393 [INFO] [stdout] 20: 0x5578bf0bcf89 - std::rt::lang_start::{{closure}}::h04567423c4bf759f [INFO] [stdout] 21: 0x5578bf0d4281 - core::ops::function::impls:: for &F>::call_once::h3ab949a23c24b3b3 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 22: 0x5578bf0d4281 - std::panicking::try::do_call::hd77545f815897665 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:406:40 [INFO] [stdout] 23: 0x5578bf0d4281 - std::panicking::try::h7ce07831cfe77010 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:370:19 [INFO] [stdout] 24: 0x5578bf0d4281 - std::panic::catch_unwind::h3a6382eb739fc3cb [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panic.rs:133:14 [INFO] [stdout] 25: 0x5578bf0d4281 - std::rt::lang_start_internal::{{closure}}::ha0ce13fbefa6ed19 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/rt.rs:128:48 [INFO] [stdout] 26: 0x5578bf0d4281 - std::panicking::try::do_call::hbacbc27e75105135 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:406:40 [INFO] [stdout] 27: 0x5578bf0d4281 - std::panicking::try::he42832d690a14084 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panicking.rs:370:19 [INFO] [stdout] 28: 0x5578bf0d4281 - std::panic::catch_unwind::h868b7b91fa924314 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/panic.rs:133:14 [INFO] [stdout] 29: 0x5578bf0d4281 - std::rt::lang_start_internal::h7797a51a89d842a3 [INFO] [stdout] at /rustc/ddc023471205c186b40f4bf8ffb598008dbf4885/library/std/src/rt.rs:128:20 [INFO] [stdout] 30: 0x5578bf0bcf71 - std::rt::lang_start::h0c1b83845e9dc1b0 [INFO] [stdout] 31: 0x5578bf0be7c3 - main [INFO] [stdout] 32: 0x7fe2bd2da0b3 - __libc_start_main [INFO] [stdout] 33: 0x5578bf0bcb4e - _start [INFO] [stdout] 34: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 56) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.59s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a8c31a13d3f392aac5ef8edab4f01d2a7d50d36700a97fb2f0e4405c266877e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8c31a13d3f392aac5ef8edab4f01d2a7d50d36700a97fb2f0e4405c266877e8", kill_on_drop: false }` [INFO] [stdout] a8c31a13d3f392aac5ef8edab4f01d2a7d50d36700a97fb2f0e4405c266877e8