[INFO] cloning repository https://github.com/untoldwind/razer_test_test
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/untoldwind/razer_test_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Funtoldwind%2Frazer_test_test", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Funtoldwind%2Frazer_test_test'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b289383f7304d827b3b92aa4ae22c97b46e74ffa
[INFO] testing untoldwind/razer_test_test against try#9f93af291970322f4f1c6315ccde4d7078201159 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Funtoldwind%2Frazer_test_test" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/untoldwind/razer_test_test
[INFO] finished tweaking git repo https://github.com/untoldwind/razer_test_test
[INFO] tweaked toml for git repo https://github.com/untoldwind/razer_test_test written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/untoldwind/razer_test_test on toolchain 9f93af291970322f4f1c6315ccde4d7078201159
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/untoldwind/razer_test_test already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded quote v0.6.8
[INFO] [stderr]   Downloaded failure_derive v0.1.2
[INFO] [stderr]   Downloaded failure v0.1.2
[INFO] [stderr]   Downloaded synstructure v0.9.0
[INFO] [stderr]   Downloaded log v0.4.5
[INFO] [stderr]   Downloaded proc-macro2 v0.4.20
[INFO] [stderr]   Downloaded memchr v2.1.0
[INFO] [stderr]   Downloaded aho-corasick v0.6.8
[INFO] [stderr]   Downloaded utf8-ranges v1.0.1
[INFO] [stderr]   Downloaded env_logger v0.5.13
[INFO] [stderr]   Downloaded lazy_static v1.1.0
[INFO] [stderr]   Downloaded cc v1.0.25
[INFO] [stderr]   Downloaded hidapi v0.5.0
[INFO] [stderr]   Downloaded syn v0.14.9
[INFO] [stderr]   Downloaded regex-syntax v0.6.2
[INFO] [stderr]   Downloaded regex v1.0.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a80a44e352578b9fd1fc795dc2f3a1423f1b12daa48341843d96b29a80e64b28
[INFO] running `Command { std: "docker" "start" "-a" "a80a44e352578b9fd1fc795dc2f3a1423f1b12daa48341843d96b29a80e64b28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a80a44e352578b9fd1fc795dc2f3a1423f1b12daa48341843d96b29a80e64b28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a80a44e352578b9fd1fc795dc2f3a1423f1b12daa48341843d96b29a80e64b28", kill_on_drop: false }`
[INFO] [stdout] a80a44e352578b9fd1fc795dc2f3a1423f1b12daa48341843d96b29a80e64b28
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0f0783e2b1cde54ba8bbd5210ff97405ad4be7be203e6572251b8a762aee8fd5
[INFO] running `Command { std: "docker" "start" "-a" "0f0783e2b1cde54ba8bbd5210ff97405ad4be7be203e6572251b8a762aee8fd5", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]    Compiling libc v0.2.43
[INFO] [stderr]    Compiling cfg-if v0.1.5
[INFO] [stderr]    Compiling cc v1.0.25
[INFO] [stderr]    Compiling proc-macro2 v0.4.20
[INFO] [stderr]    Compiling rustc-demangle v0.1.9
[INFO] [stderr]    Compiling failure_derive v0.1.2
[INFO] [stderr]    Compiling ucd-util v0.1.1
[INFO] [stderr]    Compiling pkg-config v0.3.14
[INFO] [stderr]    Compiling regex v1.0.5
[INFO] [stderr]    Compiling utf8-ranges v1.0.1
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling memchr v2.1.0
[INFO] [stderr]    Compiling lazy_static v1.1.0
[INFO] [stderr]    Compiling humantime v1.1.1
[INFO] [stderr]    Compiling textwrap v0.10.0
[INFO] [stderr]    Compiling termcolor v1.0.4
[INFO] [stderr]    Compiling log v0.4.5
[INFO] [stderr]    Compiling regex-syntax v0.6.2
[INFO] [stderr]    Compiling atty v0.2.11
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling clap v2.32.0
[INFO] [stderr]    Compiling backtrace-sys v0.1.24
[INFO] [stderr]    Compiling hidapi v0.5.0
[INFO] [stderr]    Compiling aho-corasick v0.6.8
[INFO] [stderr]    Compiling quote v0.6.8
[INFO] [stderr]    Compiling syn v0.14.9
[INFO] [stderr]    Compiling backtrace v0.3.9
[INFO] [stderr]    Compiling error-chain v0.12.0
[INFO] [stderr]    Compiling synstructure v0.9.0
[INFO] [stderr]    Compiling env_logger v0.5.13
[INFO] [stderr]    Compiling failure v0.1.2
[INFO] [stderr]    Compiling razer_test_test v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |     types {
[INFO] [stdout]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (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/devices/matrix_keyboard.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/mod.rs:33:50
[INFO] [stdout]    |
[INFO] [stdout] 33 |     fn open(&self, hid_device: HidDevice) -> Box<Device>;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device>;
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/matrix_mice.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/soft_keyboard.rs:21:50
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:126:53
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<dyn DeviceFactory>> = {
[INFO] [stdout]     |                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:145:41
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub fn list_devices() -> Result<Vec<Box<Device>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub fn list_devices() -> Result<Vec<Box<dyn Device>>> {
[INFO] [stdout]     |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:127:47
[INFO] [stdout]     |
[INFO] [stdout] 127 |         let mut map = HashMap::<DeviceId, Box<DeviceFactory>>::new();
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 127 |         let mut map = HashMap::<DeviceId, Box<dyn DeviceFactory>>::new();
[INFO] [stdout]     |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:147:30
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut devices: Vec<Box<Device>> = Vec::new();
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut devices: Vec<Box<dyn Device>> = Vec::new();
[INFO] [stdout]     |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |     types {
[INFO] [stdout]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `name` is never used
[INFO] [stdout]   --> src/devices/mod.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait DeviceFactory: Sync {
[INFO] [stdout]    |           ------------- method in this trait
[INFO] [stdout] 31 |     fn name(&self) -> &'static str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_manufacturer` is never used
[INFO] [stdout]   --> src/devices/mod.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub trait Device {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 47 |     fn get_manufacturer(&self) -> Result<Option<String>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `report_id`, `remaining_packets`, `protocol_type`, and `reserved` are never read
[INFO] [stdout]   --> src/devices/razer_report.rs:81:9
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct RazerReport {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 81 |     pub report_id: u8,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub remaining_packets: u16,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 85 |     pub protocol_type: u8,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     pub reserved: u8,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `known_devices` should have an upper case name
[INFO] [stdout]    --> src/devices/mod.rs:126:16
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout]     |                ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]     |
[INFO] [stdout] 126 -     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout] 126 +     static ref KNOWN_DEVICES: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/devices/soft_keyboard.rs:18:18
[INFO] [stdout]    |
[INFO] [stdout] 18 |         self.name.clone()
[INFO] [stdout]    |                  ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.85s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "0f0783e2b1cde54ba8bbd5210ff97405ad4be7be203e6572251b8a762aee8fd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0f0783e2b1cde54ba8bbd5210ff97405ad4be7be203e6572251b8a762aee8fd5", kill_on_drop: false }`
[INFO] [stdout] 0f0783e2b1cde54ba8bbd5210ff97405ad4be7be203e6572251b8a762aee8fd5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6cd58757dc465ffe781f0aeb38dd41b5c98d1378ee898829d54728dc72d41be4
[INFO] running `Command { std: "docker" "start" "-a" "6cd58757dc465ffe781f0aeb38dd41b5c98d1378ee898829d54728dc72d41be4", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]    Compiling razer_test_test v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |     types {
[INFO] [stdout]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (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/devices/matrix_keyboard.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/mod.rs:33:50
[INFO] [stdout]    |
[INFO] [stdout] 33 |     fn open(&self, hid_device: HidDevice) -> Box<Device>;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device>;
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/matrix_mice.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/devices/soft_keyboard.rs:21:50
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:126:53
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<dyn DeviceFactory>> = {
[INFO] [stdout]     |                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:145:41
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub fn list_devices() -> Result<Vec<Box<Device>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub fn list_devices() -> Result<Vec<Box<dyn Device>>> {
[INFO] [stdout]     |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:127:47
[INFO] [stdout]     |
[INFO] [stdout] 127 |         let mut map = HashMap::<DeviceId, Box<DeviceFactory>>::new();
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 127 |         let mut map = HashMap::<DeviceId, Box<dyn DeviceFactory>>::new();
[INFO] [stdout]     |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/devices/mod.rs:147:30
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut devices: Vec<Box<Device>> = Vec::new();
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut devices: Vec<Box<dyn Device>> = Vec::new();
[INFO] [stdout]     |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |     types {
[INFO] [stdout]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `name` is never used
[INFO] [stdout]   --> src/devices/mod.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait DeviceFactory: Sync {
[INFO] [stdout]    |           ------------- method in this trait
[INFO] [stdout] 31 |     fn name(&self) -> &'static str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_manufacturer` is never used
[INFO] [stdout]   --> src/devices/mod.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub trait Device {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 47 |     fn get_manufacturer(&self) -> Result<Option<String>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `report_id`, `remaining_packets`, `protocol_type`, and `reserved` are never read
[INFO] [stdout]   --> src/devices/razer_report.rs:81:9
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct RazerReport {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 81 |     pub report_id: u8,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub remaining_packets: u16,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 85 |     pub protocol_type: u8,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     pub reserved: u8,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `known_devices` should have an upper case name
[INFO] [stdout]    --> src/devices/mod.rs:126:16
[INFO] [stdout]     |
[INFO] [stdout] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout]     |                ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]     |
[INFO] [stdout] 126 -     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout] 126 +     static ref KNOWN_DEVICES: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/devices/soft_keyboard.rs:18:18
[INFO] [stdout]    |
[INFO] [stdout] 18 |         self.name.clone()
[INFO] [stdout]    |                  ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "6cd58757dc465ffe781f0aeb38dd41b5c98d1378ee898829d54728dc72d41be4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6cd58757dc465ffe781f0aeb38dd41b5c98d1378ee898829d54728dc72d41be4", kill_on_drop: false }`
[INFO] [stdout] 6cd58757dc465ffe781f0aeb38dd41b5c98d1378ee898829d54728dc72d41be4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e113583c284139657f917e36fe4896c09a76de620a9d3f027e162af1a2e2d8b5
[INFO] running `Command { std: "docker" "start" "-a" "e113583c284139657f917e36fe4896c09a76de620a9d3f027e162af1a2e2d8b5", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/errors.rs:1:1
[INFO] [stderr]    |
[INFO] [stderr]  1 | / error_chain! {
[INFO] [stderr]  2 | |     types {
[INFO] [stderr]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stderr] ...  |
[INFO] [stderr] 32 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/devices/matrix_keyboard.rs:23:50
[INFO] [stderr]    |
[INFO] [stderr] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[INFO] [stderr]    |                                                  ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stderr]    |                                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/devices/mod.rs:33:50
[INFO] [stderr]    |
[INFO] [stderr] 33 |     fn open(&self, hid_device: HidDevice) -> Box<Device>;
[INFO] [stderr]    |                                                  ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 33 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device>;
[INFO] [stderr]    |                                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/devices/matrix_mice.rs:23:50
[INFO] [stderr]    |
[INFO] [stderr] 23 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[INFO] [stderr]    |                                                  ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 23 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stderr]    |                                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/devices/soft_keyboard.rs:21:50
[INFO] [stderr]    |
[INFO] [stderr] 21 |     fn open(&self, hid_device: HidDevice) -> Box<Device> {
[INFO] [stderr]    |                                                  ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 21 |     fn open(&self, hid_device: HidDevice) -> Box<dyn Device> {
[INFO] [stderr]    |                                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/devices/mod.rs:126:53
[INFO] [stderr]     |
[INFO] [stderr] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stderr]     |                                                     ^^^^^^^^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 126 |     static ref known_devices: HashMap<DeviceId, Box<dyn DeviceFactory>> = {
[INFO] [stderr]     |                                                     +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/devices/mod.rs:145:41
[INFO] [stderr]     |
[INFO] [stderr] 145 | pub fn list_devices() -> Result<Vec<Box<Device>>> {
[INFO] [stderr]     |                                         ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 145 | pub fn list_devices() -> Result<Vec<Box<dyn Device>>> {
[INFO] [stderr]     |                                         +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/devices/mod.rs:127:47
[INFO] [stderr]     |
[INFO] [stderr] 127 |         let mut map = HashMap::<DeviceId, Box<DeviceFactory>>::new();
[INFO] [stderr]     |                                               ^^^^^^^^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 127 |         let mut map = HashMap::<DeviceId, Box<dyn DeviceFactory>>::new();
[INFO] [stderr]     |                                               +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/devices/mod.rs:147:30
[INFO] [stderr]     |
[INFO] [stderr] 147 |     let mut devices: Vec<Box<Device>> = Vec::new();
[INFO] [stderr]     |                              ^^^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 147 |     let mut devices: Vec<Box<dyn Device>> = Vec::new();
[INFO] [stderr]     |                              +++
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stderr]   --> src/errors.rs:1:1
[INFO] [stderr]    |
[INFO] [stderr]  1 | / error_chain! {
[INFO] [stderr]  2 | |     types {
[INFO] [stderr]  3 | |         Error, ErrorKind, ResultExt, Result;
[INFO] [stderr] ...  |
[INFO] [stderr] 32 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: method `name` is never used
[INFO] [stderr]   --> src/devices/mod.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub trait DeviceFactory: Sync {
[INFO] [stderr]    |           ------------- method in this trait
[INFO] [stderr] 31 |     fn name(&self) -> &'static str;
[INFO] [stderr]    |        ^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_manufacturer` is never used
[INFO] [stderr]   --> src/devices/mod.rs:47:8
[INFO] [stderr]    |
[INFO] [stderr] 36 | pub trait Device {
[INFO] [stderr]    |           ------ method in this trait
[INFO] [stderr] ...
[INFO] [stderr] 47 |     fn get_manufacturer(&self) -> Result<Option<String>> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `report_id`, `remaining_packets`, `protocol_type`, and `reserved` are never read
[INFO] [stderr]   --> src/devices/razer_report.rs:81:9
[INFO] [stderr]    |
[INFO] [stderr] 80 | pub struct RazerReport {
[INFO] [stderr]    |            ----------- fields in this struct
[INFO] [stderr] 81 |     pub report_id: u8,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 84 |     pub remaining_packets: u16,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 85 |     pub protocol_type: u8,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 91 |     pub reserved: u8,
[INFO] [stderr]    |         ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `known_devices` should have an upper case name
[INFO] [stderr]    --> src/devices/mod.rs:126:16
[INFO] [stderr]     |
[INFO] [stderr] 126 |     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stderr]     |                ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]     |
[INFO] [stderr] 126 -     static ref known_devices: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stderr] 126 +     static ref KNOWN_DEVICES: HashMap<DeviceId, Box<DeviceFactory>> = {
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stderr]   --> src/devices/soft_keyboard.rs:18:18
[INFO] [stderr]    |
[INFO] [stderr] 18 |         self.name.clone()
[INFO] [stderr]    |                  ^^^^^^^^ help: remove this redundant call
[INFO] [stderr]    |
[INFO] [stderr]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stderr]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `razer_test_test` (bin "razer_test_test" test) generated 15 warnings (run `cargo fix --bin "razer_test_test" -p razer_test_test --tests` to apply 10 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/razer_test_test-d7946632a71f8ab5)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "e113583c284139657f917e36fe4896c09a76de620a9d3f027e162af1a2e2d8b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e113583c284139657f917e36fe4896c09a76de620a9d3f027e162af1a2e2d8b5", kill_on_drop: false }`
[INFO] [stdout] e113583c284139657f917e36fe4896c09a76de620a9d3f027e162af1a2e2d8b5
