[INFO] fetching crate rusty-keys 0.0.2... [INFO] checking rusty-keys-0.0.2 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate rusty-keys 0.0.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate rusty-keys 0.0.2 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rusty-keys 0.0.2 [INFO] finished tweaking crates.io crate rusty-keys 0.0.2 [INFO] tweaked toml for crates.io crate rusty-keys 0.0.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26608fc72ad3e5a641163d1d64c8549c3cd95a199aecc24633c55efb7d117ffc [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" "26608fc72ad3e5a641163d1d64c8549c3cd95a199aecc24633c55efb7d117ffc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26608fc72ad3e5a641163d1d64c8549c3cd95a199aecc24633c55efb7d117ffc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26608fc72ad3e5a641163d1d64c8549c3cd95a199aecc24633c55efb7d117ffc", kill_on_drop: false }` [INFO] [stdout] 26608fc72ad3e5a641163d1d64c8549c3cd95a199aecc24633c55efb7d117ffc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85a2f908bd95ba3f074bfbfd0d3ff4f7412c31b217f1bab191a765e38a464fd6 [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" "85a2f908bd95ba3f074bfbfd0d3ff4f7412c31b217f1bab191a765e38a464fd6", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking ioctl-sys v0.5.2 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Checking uinput-sys v0.1.7 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Checking rusty-keys v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/keymapper.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | keymaps: Vec>, [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn KeyMapper` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/keymapper.rs:101:34 [INFO] [stdout] | [INFO] [stdout] 101 | let mut keymaps: Vec> = vec!(Box::new(Key::Noop)); // todo: can we share the box? [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn KeyMapper` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fd: try!(fcntl::open(path.as_ref(), fcntl::O_WRONLY | fcntl::O_NONBLOCK, stat::Mode::empty())), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | let context = try!(udev::Context::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | let mut enumerator = try!(udev::Enumerator::new(&context)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | try!(enumerator.match_subsystem("misc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | try!(enumerator.match_sysname("uinput")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | let device = try!(try!(enumerator.scan_devices()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let device = try!(try!(enumerator.scan_devices()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | Builder::open(try!(device.devnode().ok_or(Error::NotFound))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | let string = try!(CString::new(value.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | try!(Err(nix::Error::from_errno(nix::Errno::EINVAL))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:279:4 [INFO] [stdout] | [INFO] [stdout] 279 | try!(unistd::write(self.fd, slice::from_raw_parts(ptr, size))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | try!(unistd::write(self.fd, slice::from_raw_parts(ptr, size))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | try!(self.press(kind, code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 70 | try!(self.release(kind, code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | f.write_str(error::Error::description(self)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/keymapper.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | keymaps: Vec>, [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn KeyMapper` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/keymapper.rs:101:34 [INFO] [stdout] | [INFO] [stdout] 101 | let mut keymaps: Vec> = vec!(Box::new(Key::Noop)); // todo: can we share the box? [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn KeyMapper` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fd: try!(fcntl::open(path.as_ref(), fcntl::O_WRONLY | fcntl::O_NONBLOCK, stat::Mode::empty())), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | let context = try!(udev::Context::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | let mut enumerator = try!(udev::Enumerator::new(&context)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | try!(enumerator.match_subsystem("misc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | try!(enumerator.match_sysname("uinput")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | let device = try!(try!(enumerator.scan_devices()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let device = try!(try!(enumerator.scan_devices()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | Builder::open(try!(device.devnode().ok_or(Error::NotFound))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | let string = try!(CString::new(value.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | try!(Err(nix::Error::from_errno(nix::Errno::EINVAL))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:279:4 [INFO] [stdout] | [INFO] [stdout] 279 | try!(unistd::write(self.fd, slice::from_raw_parts(ptr, size))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | try!(unistd::write(self.fd, slice::from_raw_parts(ptr, size))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | try!(self.press(kind, code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device/device.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 70 | try!(self.release(kind, code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | f.write_str(error::Error::description(self)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | ui_set_evbit(self.fd, EV_KEY as *const c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found *-ptr [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found raw pointer `*const i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/device/builder.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | ui_set_evbit(self.fd, EV_KEY as *const c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] = note: required by `branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:100:28 [INFO] [stdout] | [INFO] [stdout] 100 | ui_set_keybit(self.fd, *key_code)?; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found *-ptr [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found raw pointer `*const i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/device/builder.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | ui_set_keybit(self.fd, *key_code)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] = note: required by `branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^^^----------------------^^ [INFO] [stdout] | | | [INFO] [stdout] | | this expression has type `i32` [INFO] [stdout] | expected `i32`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^^^----------------------^^ [INFO] [stdout] | | | [INFO] [stdout] | | this expression has type `i32` [INFO] [stdout] | expected `i32`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for type `i32` in the current scope [INFO] [stdout] --> src/device/device.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | ui_dev_destroy(self.fd).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-keys` due to 8 previous errors; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | ui_set_evbit(self.fd, EV_KEY as *const c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found *-ptr [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found raw pointer `*const i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/device/builder.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | ui_set_evbit(self.fd, EV_KEY as *const c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] = note: required by `branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:100:28 [INFO] [stdout] | [INFO] [stdout] 100 | ui_set_keybit(self.fd, *key_code)?; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found *-ptr [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found raw pointer `*const i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/device/builder.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | ui_set_keybit(self.fd, *key_code)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] = note: required by `branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^^^----------------------^^ [INFO] [stdout] | | | [INFO] [stdout] | | this expression has type `i32` [INFO] [stdout] | expected `i32`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/device/builder.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | try!(ui_dev_create(self.fd)); [INFO] [stdout] | ^^^^^----------------------^^ [INFO] [stdout] | | | [INFO] [stdout] | | this expression has type `i32` [INFO] [stdout] | expected `i32`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for type `i32` in the current scope [INFO] [stdout] --> src/device/device.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | ui_dev_destroy(self.fd).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "85a2f908bd95ba3f074bfbfd0d3ff4f7412c31b217f1bab191a765e38a464fd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85a2f908bd95ba3f074bfbfd0d3ff4f7412c31b217f1bab191a765e38a464fd6", kill_on_drop: false }` [INFO] [stdout] 85a2f908bd95ba3f074bfbfd0d3ff4f7412c31b217f1bab191a765e38a464fd6