[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/936c4086711e3b8ae02e2a5228fc29187910ae29 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femilio%2Fserial-port-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/emilio/serial-port-rs on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-1-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termios v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] caf1176f968c4e2cc85adac9107ae7fc53c647afed1af75ce7fe0f9756da24d5 [INFO] running `Command { std: "docker" "start" "-a" "caf1176f968c4e2cc85adac9107ae7fc53c647afed1af75ce7fe0f9756da24d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "caf1176f968c4e2cc85adac9107ae7fc53c647afed1af75ce7fe0f9756da24d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caf1176f968c4e2cc85adac9107ae7fc53c647afed1af75ce7fe0f9756da24d5", kill_on_drop: false }` [INFO] [stdout] caf1176f968c4e2cc85adac9107ae7fc53c647afed1af75ce7fe0f9756da24d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35591c7ff3e3ec889efafbc0089992985b9e9838b8be314d22618f2752db2844 [INFO] running `Command { std: "docker" "start" "-a" "35591c7ff3e3ec889efafbc0089992985b9e9838b8be314d22618f2752db2844", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.1.8 [INFO] [stderr] Checking termios v0.1.0 [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 [INFO] [stdout] | [INFO] [stdout] 38 | termios::c_cflag |= CREAD | CLOCAL; [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 [INFO] [stdout] | [INFO] [stdout] 38 | termios::c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 39 | termios::c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 39 | termios::c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 40 | termios::c_oflag &= !OPOST; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 40 | termios::c_oflag &= !OPOST; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 41 | termios::c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 41 | termios::c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 114 | termios::c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 114 | termios::c_cflag |= CREAD | CLOCAL; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 115 | termios::c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 115 | termios::c_lflag &= !(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG | IEXTEN); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 116 | termios::c_oflag &= !OPOST; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 116 | termios::c_oflag &= !OPOST; [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 117 | termios::c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ~~ [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 [INFO] [stdout] | [INFO] [stdout] 117 | termios::c_iflag &= !(INLCR | IGNCR | ICRNL | IGNBRK); [INFO] [stdout] | ~~ [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 `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 `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] 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] 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 `Result<(), Error>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), std::io::Error>` [INFO] [stdout] found unit type `()` [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 `Result<(), Error>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), std::io::Error>` [INFO] [stdout] found unit type `()` [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] [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` (lib) due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `serial_port` (lib test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "35591c7ff3e3ec889efafbc0089992985b9e9838b8be314d22618f2752db2844", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35591c7ff3e3ec889efafbc0089992985b9e9838b8be314d22618f2752db2844", kill_on_drop: false }` [INFO] [stdout] 35591c7ff3e3ec889efafbc0089992985b9e9838b8be314d22618f2752db2844