[INFO] cloning repository https://github.com/dhylands/usb-ser-mon-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dhylands/usb-ser-mon-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhylands%2Fusb-ser-mon-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhylands%2Fusb-ser-mon-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a43047e55b8069a482370cf3d8cc9f1a822075dc [INFO] checking dhylands/usb-ser-mon-rs against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhylands%2Fusb-ser-mon-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dhylands/usb-ser-mon-rs [INFO] finished tweaking git repo https://github.com/dhylands/usb-ser-mon-rs [INFO] tweaked toml for git repo https://github.com/dhylands/usb-ser-mon-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dhylands/usb-ser-mon-rs on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dhylands/usb-ser-mon-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8fae80a0d2f80f465de922b83566f24871936f4e7cc6a009a5cf9280c48e6cfc [INFO] running `Command { std: "docker" "start" "-a" "8fae80a0d2f80f465de922b83566f24871936f4e7cc6a009a5cf9280c48e6cfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8fae80a0d2f80f465de922b83566f24871936f4e7cc6a009a5cf9280c48e6cfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fae80a0d2f80f465de922b83566f24871936f4e7cc6a009a5cf9280c48e6cfc", kill_on_drop: false }` [INFO] [stdout] 8fae80a0d2f80f465de922b83566f24871936f4e7cc6a009a5cf9280c48e6cfc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f2bde3bd8cf2dd3d475f7bd410a73396cc2ab699b1affadfb046551b7868f02 [INFO] running `Command { std: "docker" "start" "-a" "6f2bde3bd8cf2dd3d475f7bd410a73396cc2ab699b1affadfb046551b7868f02", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling thiserror v1.0.39 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking wildmatch v2.3.4 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking libudev v0.3.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Compiling thiserror-impl v1.0.39 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking unescaper v0.1.5 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking serialport v4.5.0 [INFO] [stderr] Checking mio-serial v5.0.5 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking tokio-serial v5.4.4 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking serial-monitor v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the trait bound `&u8: Default` is not satisfied [INFO] [stdout] --> src/string_decoder.rs:58:54 [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `&u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Default` is implemented for `u8` [INFO] [stdout] note: required by a bound in `Option::::unwrap_or_default` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/option.rs:1086:5 [INFO] [stdout] help: consider removing this method call, as the receiver has type `BytesMut` and `BytesMut: Default` trivially holds [INFO] [stdout] | [INFO] [stdout] 58 - buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] 58 + buf[*index] = src.split_to(1).unwrap_or_default(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/string_decoder.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `&u8` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = *src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&u8: Default` is not satisfied [INFO] [stdout] --> src/string_decoder.rs:58:54 [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `&u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Default` is implemented for `u8` [INFO] [stdout] note: required by a bound in `Option::::unwrap_or_default` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/option.rs:1086:5 [INFO] [stdout] help: consider removing this method call, as the receiver has type `BytesMut` and `BytesMut: Default` trivially holds [INFO] [stdout] | [INFO] [stdout] 58 - buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] 58 + buf[*index] = src.split_to(1).unwrap_or_default(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/string_decoder.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `&u8` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 58 | buf[*index] = *src.split_to(1).get(0).unwrap_or_default(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serial-monitor` (bin "serial-monitor") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serial-monitor` (bin "serial-monitor" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "6f2bde3bd8cf2dd3d475f7bd410a73396cc2ab699b1affadfb046551b7868f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f2bde3bd8cf2dd3d475f7bd410a73396cc2ab699b1affadfb046551b7868f02", kill_on_drop: false }` [INFO] [stdout] 6f2bde3bd8cf2dd3d475f7bd410a73396cc2ab699b1affadfb046551b7868f02