[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] testing dhylands/usb-ser-mon-rs/a43047e55b8069a482370cf3d8cc9f1a822075dc against master#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhylands%2Fusb-ser-mon-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] 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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dhylands/usb-ser-mon-rs on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wildmatch v2.3.4 [INFO] [stderr] Downloaded proc-macro-nested v0.1.6 [INFO] [stderr] Downloaded mio-serial v5.0.5 [INFO] [stderr] Downloaded futures-sink v0.3.8 [INFO] [stderr] Downloaded unescaper v0.1.5 [INFO] [stderr] Downloaded signal-hook-mio v0.2.4 [INFO] [stderr] Downloaded futures-channel v0.3.8 [INFO] [stderr] Downloaded pin-project v1.0.3 [INFO] [stderr] Downloaded futures v0.3.8 [INFO] [stderr] Downloaded once_cell v1.5.2 [INFO] [stderr] Downloaded crossterm v0.28.1 [INFO] [stderr] Downloaded syn v2.0.72 [INFO] [stderr] Downloaded mio v1.0.1 [INFO] [stderr] Downloaded pin-project-internal v1.0.3 [INFO] [stderr] Downloaded libudev v0.3.0 [INFO] [stderr] Downloaded futures-util v0.3.8 [INFO] [stderr] Downloaded cc v1.1.8 [INFO] [stderr] Downloaded futures-executor v0.3.8 [INFO] [stderr] Downloaded futures-io v0.3.8 [INFO] [stderr] Downloaded syn v1.0.58 [INFO] [stderr] Downloaded futures-macro v0.3.8 [INFO] [stderr] Downloaded futures-task v0.3.8 [INFO] [stderr] Downloaded mach2 v0.4.2 [INFO] [stderr] Downloaded futures-core v0.3.8 [INFO] [stderr] Downloaded serialport v4.5.0 [INFO] [stderr] Downloaded tokio-serial v5.4.4 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f0320461363f030321a3ec4e985fb1673044731612a7dab2296aa6c1fba4fe02 [INFO] running `Command { std: "docker" "start" "-a" "f0320461363f030321a3ec4e985fb1673044731612a7dab2296aa6c1fba4fe02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f0320461363f030321a3ec4e985fb1673044731612a7dab2296aa6c1fba4fe02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0320461363f030321a3ec4e985fb1673044731612a7dab2296aa6c1fba4fe02", kill_on_drop: false }` [INFO] [stdout] f0320461363f030321a3ec4e985fb1673044731612a7dab2296aa6c1fba4fe02 [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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66fd2903dd85e1d0b9deacc034fa356c1001a6bd8013d15e36d13c78258da243 [INFO] running `Command { std: "docker" "start" "-a" "66fd2903dd85e1d0b9deacc034fa356c1001a6bd8013d15e36d13c78258da243", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.36 [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 log v0.4.11 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.39 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling wildmatch v2.3.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling libudev v0.3.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling thiserror-impl v1.0.39 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling structopt v0.3.21 [INFO] [stderr] Compiling unescaper v0.1.5 [INFO] [stderr] Compiling serialport v4.5.0 [INFO] [stderr] Compiling pin-project v1.0.3 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling mio-serial v5.0.5 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tokio-serial v5.4.4 [INFO] [stderr] Compiling 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/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/option.rs:1087: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] running `Command { std: "docker" "inspect" "66fd2903dd85e1d0b9deacc034fa356c1001a6bd8013d15e36d13c78258da243", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66fd2903dd85e1d0b9deacc034fa356c1001a6bd8013d15e36d13c78258da243", kill_on_drop: false }` [INFO] [stdout] 66fd2903dd85e1d0b9deacc034fa356c1001a6bd8013d15e36d13c78258da243