[INFO] cloning repository https://github.com/ankeris/cnc_printer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ankeris/cnc_printer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankeris%2Fcnc_printer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankeris%2Fcnc_printer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9721ad0435827bb48f1f01038c0e5c87739cf60b [INFO] checking ankeris/cnc_printer/9721ad0435827bb48f1f01038c0e5c87739cf60b against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fankeris%2Fcnc_printer" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ankeris/cnc_printer on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ankeris/cnc_printer [INFO] finished tweaking git repo https://github.com/ankeris/cnc_printer [INFO] tweaked toml for git repo https://github.com/ankeris/cnc_printer written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ankeris/cnc_printer 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gcode v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3beece72d791ebf062a3179fc5b4d8fb4f72022f670fb442ac6dd4fda571aa47 [INFO] running `Command { std: "docker" "start" "-a" "3beece72d791ebf062a3179fc5b4d8fb4f72022f670fb442ac6dd4fda571aa47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3beece72d791ebf062a3179fc5b4d8fb4f72022f670fb442ac6dd4fda571aa47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3beece72d791ebf062a3179fc5b4d8fb4f72022f670fb442ac6dd4fda571aa47", kill_on_drop: false }` [INFO] [stdout] 3beece72d791ebf062a3179fc5b4d8fb4f72022f670fb442ac6dd4fda571aa47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecb424f00c8d32d31593aa9f8961e25d0a8b459d42e3c58f3c91064814c29618 [INFO] running `Command { std: "docker" "start" "-a" "ecb424f00c8d32d31593aa9f8961e25d0a8b459d42e3c58f3c91064814c29618", kill_on_drop: false }` [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking rppal v0.11.3 [INFO] [stderr] Checking gcode v0.5.2 [INFO] [stderr] Checking stepper-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/stepper_28byj48/mod.rs:48:50 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn motor_sequence_setup(&self) -> Result<([OutputPin; 4]), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - pub fn motor_sequence_setup(&self) -> Result<([OutputPin; 4]), Box> { [INFO] [stdout] 48 + pub fn motor_sequence_setup(&self) -> Result<[OutputPin; 4], Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/stepper_28byj48/mod.rs:48:50 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn motor_sequence_setup(&self) -> Result<([OutputPin; 4]), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - pub fn motor_sequence_setup(&self) -> Result<([OutputPin; 4]), Box> { [INFO] [stdout] 48 + pub fn motor_sequence_setup(&self) -> Result<[OutputPin; 4], Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `micro_stepping_values` is never read [INFO] [stdout] --> src/stepper_nema17/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct StepperNEMA17 { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | micro_stepping_values: MicroStepping, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StepperNEMA17` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/stepper_nema17/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | calibrate(17, &x_thread_sender, Direction::CW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = calibrate(17, &x_thread_sender, Direction::CW); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | calibrate(10, &y_thread_sender, Direction::CCW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = calibrate(10, &y_thread_sender, Direction::CCW); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `micro_stepping_values` is never read [INFO] [stdout] --> src/stepper_nema17/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct StepperNEMA17 { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | micro_stepping_values: MicroStepping, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StepperNEMA17` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/stepper_nema17/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | calibrate(17, &x_thread_sender, Direction::CW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = calibrate(17, &x_thread_sender, Direction::CW); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | calibrate(10, &y_thread_sender, Direction::CCW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = calibrate(10, &y_thread_sender, Direction::CCW); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.75s [INFO] running `Command { std: "docker" "inspect" "ecb424f00c8d32d31593aa9f8961e25d0a8b459d42e3c58f3c91064814c29618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecb424f00c8d32d31593aa9f8961e25d0a8b459d42e3c58f3c91064814c29618", kill_on_drop: false }` [INFO] [stdout] ecb424f00c8d32d31593aa9f8961e25d0a8b459d42e3c58f3c91064814c29618