[INFO] cloning repository https://github.com/emilio/serial-port-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emilio/serial-port-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femilio%2Fserial-port-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femilio%2Fserial-port-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 936c4086711e3b8ae02e2a5228fc29187910ae29 [INFO] checking emilio/serial-port-rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femilio%2Fserial-port-rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/emilio/serial-port-rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/emilio/serial-port-rs [INFO] finished tweaking git repo https://github.com/emilio/serial-port-rs [INFO] tweaked toml for git repo https://github.com/emilio/serial-port-rs written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/emilio/serial-port-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-11/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c12cda1d18814c3d52faae2ff649cd20a293046ae1916861c3683f04c9377eb [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" "0c12cda1d18814c3d52faae2ff649cd20a293046ae1916861c3683f04c9377eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c12cda1d18814c3d52faae2ff649cd20a293046ae1916861c3683f04c9377eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c12cda1d18814c3d52faae2ff649cd20a293046ae1916861c3683f04c9377eb", kill_on_drop: false }` [INFO] [stdout] 0c12cda1d18814c3d52faae2ff649cd20a293046ae1916861c3683f04c9377eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 27aa39b048756ef29ab094836718dd14383d4ed8a836e8e0e454eaed0f5989ae [INFO] running `Command { std: "docker" "start" "-a" "27aa39b048756ef29ab094836718dd14383d4ed8a836e8e0e454eaed0f5989ae", kill_on_drop: false }` [INFO] [stderr] Checking termios v0.3.3 [INFO] [stderr] Checking serial_port v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | termios.c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_cflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | termios.c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_lflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | termios.c_oflag &= !OPOST; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_oflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | termios.c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_iflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | termios.c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_cflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | termios.c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_lflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | termios.c_oflag &= !OPOST; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_oflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | termios.c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_iflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BaudRate` in this scope [INFO] [stdout] --> src/lib.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | pub baud_rate: BaudRate, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharSize` in this scope [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub char_size: CharSize, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Parity` in this scope [INFO] [stdout] --> src/lib.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | pub parity: Parity [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cfsetispeed`, `cfsetospeed` [INFO] [stdout] --> src/platform/unix/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use termios::{cfsetispeed, cfsetospeed, tcsetattr, tcdrain, Termios}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | let mut device_data = try!(Termios::from_fd(port)); [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/platform/unix/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | try!(tcsetattr(port, TCSAFLUSH, &device_data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | let mut device_data = try!(Termios::from_fd(port)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | try!(tcsetattr(port, TCSAFLUSH, &device_data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connect` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{connect}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | let connection = try!(NativeConnection::new(name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | termios.c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_cflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | termios.c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_lflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | termios.c_oflag &= !OPOST; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_oflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | termios.c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_iflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | termios.c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_cflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | termios.c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_lflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | termios.c_oflag &= !OPOST; [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_oflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `termios` [INFO] [stdout] --> src/platform/unix/mod.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | termios.c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `termios::c_iflag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BaudRate` in this scope [INFO] [stdout] --> src/lib.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | pub baud_rate: BaudRate, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharSize` in this scope [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub char_size: CharSize, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Parity` in this scope [INFO] [stdout] --> src/lib.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | pub parity: Parity [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cfsetispeed`, `cfsetospeed` [INFO] [stdout] --> src/platform/unix/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use termios::{cfsetispeed, cfsetospeed, tcsetattr, tcdrain, Termios}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | let mut device_data = try!(Termios::from_fd(port)); [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/platform/unix/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | try!(tcsetattr(port, TCSAFLUSH, &device_data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | let mut device_data = try!(Termios::from_fd(port)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/unix/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | try!(tcsetattr(port, TCSAFLUSH, &device_data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connect` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{connect}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | let connection = try!(NativeConnection::new(name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:36:63 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_params(&mut self, params: SerialPortParams) -> io::Result<()> { [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), std::io::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/platform/unix/mod.rs:68:69 [INFO] [stdout] | [INFO] [stdout] 68 | read(self.as_raw_fd(), buf.as_mut_ptr() as *mut c_void, buf.len() as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 68 | read(self.as_raw_fd(), buf.as_mut_ptr() as *mut c_void, (buf.len() as u64).try_into().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/platform/unix/mod.rs:82:68 [INFO] [stdout] | [INFO] [stdout] 82 | write(self.as_raw_fd(), buf.as_ptr() as *const c_void, buf.len() as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 82 | write(self.as_raw_fd(), buf.as_ptr() as *const c_void, (buf.len() as u64).try_into().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serial_port` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:36:63 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_params(&mut self, params: SerialPortParams) -> io::Result<()> { [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), std::io::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/platform/unix/mod.rs:68:69 [INFO] [stdout] | [INFO] [stdout] 68 | read(self.as_raw_fd(), buf.as_mut_ptr() as *mut c_void, buf.len() as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 68 | read(self.as_raw_fd(), buf.as_mut_ptr() as *mut c_void, (buf.len() as u64).try_into().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/platform/unix/mod.rs:82:68 [INFO] [stdout] | [INFO] [stdout] 82 | write(self.as_raw_fd(), buf.as_ptr() as *const c_void, buf.len() as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 82 | write(self.as_raw_fd(), buf.as_ptr() as *const c_void, (buf.len() as u64).try_into().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "27aa39b048756ef29ab094836718dd14383d4ed8a836e8e0e454eaed0f5989ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27aa39b048756ef29ab094836718dd14383d4ed8a836e8e0e454eaed0f5989ae", kill_on_drop: false }` [INFO] [stdout] 27aa39b048756ef29ab094836718dd14383d4ed8a836e8e0e454eaed0f5989ae