[INFO] fetching crate ferrous-serialport 4.0.2... [INFO] checking ferrous-serialport-4.0.2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate ferrous-serialport 4.0.2 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate ferrous-serialport 4.0.2 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ferrous-serialport 4.0.2 [INFO] finished tweaking crates.io crate ferrous-serialport 4.0.2 [INFO] tweaked toml for crates.io crate ferrous-serialport 4.0.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate crates.io crate ferrous-serialport 4.0.2 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff3164fef43d7c95dcece00ac2cb667d1be194de8934b235e2cb815d628c5993 [INFO] running `Command { std: "docker" "start" "-a" "ff3164fef43d7c95dcece00ac2cb667d1be194de8934b235e2cb815d628c5993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff3164fef43d7c95dcece00ac2cb667d1be194de8934b235e2cb815d628c5993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff3164fef43d7c95dcece00ac2cb667d1be194de8934b235e2cb815d628c5993", kill_on_drop: false }` [INFO] [stdout] ff3164fef43d7c95dcece00ac2cb667d1be194de8934b235e2cb815d628c5993 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ba1c9a25c7e4d17380ce74dbe5359b2676237e7bfcd25b05a59ba666b8e3ea5 [INFO] running `Command { std: "docker" "start" "-a" "0ba1c9a25c7e4d17380ce74dbe5359b2676237e7bfcd25b05a59ba666b8e3ea5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling nix v0.16.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Checking ferrous-serialport v4.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:219:5 [INFO] [stdout] | [INFO] [stdout] 219 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:219:5 [INFO] [stdout] | [INFO] [stdout] 219 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/termios.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/tty.rs:445:9 [INFO] [stdout] | [INFO] [stdout] 445 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/tty.rs:588:9 [INFO] [stdout] | [INFO] [stdout] 588 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/tty.rs:445:9 [INFO] [stdout] | [INFO] [stdout] 445 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dragonflybsd` [INFO] [stdout] --> src/posix/tty.rs:588:9 [INFO] [stdout] | [INFO] [stdout] 588 | target_os = "dragonflybsd", [INFO] [stdout] | ^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"dragonfly"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serialport` [INFO] [stdout] --> examples/clear_output_buffer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use serialport::ClearBuffer; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serialport` [INFO] [stdout] --> examples/pseudo_terminal.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use serialport::{SerialPort, TTYPort}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude` [INFO] [stdout] --> examples/pseudo_terminal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::unix::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> examples/pseudo_terminal.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> examples/pseudo_terminal.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serialport` [INFO] [stdout] --> examples/list_ports.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serialport::{available_ports, SerialPortType}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serialport` [INFO] [stdout] --> tests/test_serialport.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serialport::*; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serialport` [INFO] [stdout] --> examples/clear_output_buffer.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | let mut port = serialport::new(port_name, rate) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrous-serialport` (example "pseudo_terminal") due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/clear_output_buffer.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), [INFO] [stdout] | ^^^^ cannot infer type for type parameter `E` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrous-serialport` (example "list_ports") due to 2 previous errors [INFO] [stdout] error[E0463]: can't find crate for `serialport` [INFO] [stdout] --> tests/test_try_clone.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate serialport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `serialport` [INFO] [stdout] --> tests/test_tty.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate serialport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> tests/test_try_clone.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serialport` [INFO] [stdout] --> examples/duplex.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let port_name = &serialport::available_ports().expect("No serial port")[0].port_name; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serialport` [INFO] [stdout] --> examples/duplex.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let mut port = serialport::new(port_name, 9600) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> tests/test_try_clone.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/duplex.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), [INFO] [stdout] | ^^^^ cannot infer type for type parameter `E` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_tty.rs:88:42 [INFO] [stdout] | [INFO] [stdout] 88 | Some(Err(ref e)) => assert_eq!(e.kind(), std::io::ErrorKind::TimedOut), [INFO] [stdout] | ^^^^ cannot infer type for type parameter `E` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> examples/duplex.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude` [INFO] [stdout] --> tests/test_tty.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::unix::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> tests/test_tty.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> tests/test_tty.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrous-serialport` (test "test_try_clone") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] error: could not compile `ferrous-serialport` (example "clear_output_buffer") due to 4 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serialport` [INFO] [stdout] --> examples/receive_data.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | let port = serialport::new(port_name, baud_rate) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serialport` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrous-serialport` (example "duplex") due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `ferrous-serialport` (test "test_tty") due to 3 previous errors; 3 warnings emitted [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/receive_data.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), [INFO] [stdout] | ^^^^ cannot infer type for type parameter `E` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrous-serialport` (example "receive_data") due to 3 previous errors [INFO] [stderr] error: could not compile `ferrous-serialport` (test "test_serialport") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "0ba1c9a25c7e4d17380ce74dbe5359b2676237e7bfcd25b05a59ba666b8e3ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ba1c9a25c7e4d17380ce74dbe5359b2676237e7bfcd25b05a59ba666b8e3ea5", kill_on_drop: false }` [INFO] [stdout] 0ba1c9a25c7e4d17380ce74dbe5359b2676237e7bfcd25b05a59ba666b8e3ea5