[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/a43047e55b8069a482370cf3d8cc9f1a822075dc against master#4cf5f9580233c36f6bc8db76e282ba8a1c1ea491 for pr-154585 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhylands%2Fusb-ser-mon-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dhylands/usb-ser-mon-rs on toolchain 4cf5f9580233c36f6bc8db76e282ba8a1c1ea491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "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" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unescaper v0.1.5 [INFO] [stderr] Downloaded wildmatch v2.3.4 [INFO] [stderr] Downloaded thiserror v1.0.39 [INFO] [stderr] Downloaded once_cell v1.5.2 [INFO] [stderr] Downloaded structopt v0.3.21 [INFO] [stderr] Downloaded thiserror-impl v1.0.39 [INFO] [stderr] Downloaded structopt-derive v0.4.14 [INFO] [stderr] Downloaded pin-project v1.0.3 [INFO] [stderr] Downloaded heck v0.3.2 [INFO] [stderr] Downloaded serialport v4.5.0 [INFO] [stderr] Downloaded pin-project-internal v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce8fb9d5379726826e00efc85a0ad99c1c37bfb3d34494c211117b7fd3da3104 [INFO] running `Command { std: "docker" "start" "-a" "ce8fb9d5379726826e00efc85a0ad99c1c37bfb3d34494c211117b7fd3da3104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce8fb9d5379726826e00efc85a0ad99c1c37bfb3d34494c211117b7fd3da3104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce8fb9d5379726826e00efc85a0ad99c1c37bfb3d34494c211117b7fd3da3104", kill_on_drop: false }` [INFO] [stdout] ce8fb9d5379726826e00efc85a0ad99c1c37bfb3d34494c211117b7fd3da3104 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 461dbc6a49e3f95443cc9b8a7af2b1ba85047fd758645efb40c204fa4027fbb0 [INFO] running `Command { std: "docker" "start" "-a" "461dbc6a49e3f95443cc9b8a7af2b1ba85047fd758645efb40c204fa4027fbb0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [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] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Compiling memoffset v0.7.1 [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] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling thiserror v1.0.39 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking wildmatch v2.3.4 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking libudev v0.3.0 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking crossterm v0.28.1 [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-macros v2.4.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking unescaper v0.1.5 [INFO] [stderr] Checking serialport v4.5.0 [INFO] [stderr] Checking mio-serial v5.0.5 [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] --> /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/default.rs:154:8 [INFO] [stdout] ::: /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/default.rs:170:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] note: required by a bound in `Option::::unwrap_or_default` [INFO] [stdout] --> /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/option.rs:1093:4 [INFO] [stdout] = note: this error originates in the macro `default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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] --> /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/default.rs:154:8 [INFO] [stdout] ::: /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/default.rs:170:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] note: required by a bound in `Option::::unwrap_or_default` [INFO] [stdout] --> /rustc/4cf5f9580233c36f6bc8db76e282ba8a1c1ea491/library/core/src/option.rs:1093:4 [INFO] [stdout] = note: this error originates in the macro `default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [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] 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" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "461dbc6a49e3f95443cc9b8a7af2b1ba85047fd758645efb40c204fa4027fbb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "461dbc6a49e3f95443cc9b8a7af2b1ba85047fd758645efb40c204fa4027fbb0", kill_on_drop: false }` [INFO] [stdout] 461dbc6a49e3f95443cc9b8a7af2b1ba85047fd758645efb40c204fa4027fbb0