[INFO] cloning repository https://github.com/szopqa/cnc-rustberry [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/szopqa/cnc-rustberry" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszopqa%2Fcnc-rustberry", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszopqa%2Fcnc-rustberry'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 260dac063ef51407221db95d431f11add8e51437 [INFO] checking szopqa/cnc-rustberry against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszopqa%2Fcnc-rustberry" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/szopqa/cnc-rustberry on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/szopqa/cnc-rustberry [INFO] finished tweaking git repo https://github.com/szopqa/cnc-rustberry [INFO] tweaked toml for git repo https://github.com/szopqa/cnc-rustberry written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/szopqa/cnc-rustberry already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 67d8e27a862474d98352a39cf584c81807e3497d5583313e33f795ad3f8c1b0e [INFO] running `Command { std: "docker" "start" "-a" "67d8e27a862474d98352a39cf584c81807e3497d5583313e33f795ad3f8c1b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67d8e27a862474d98352a39cf584c81807e3497d5583313e33f795ad3f8c1b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67d8e27a862474d98352a39cf584c81807e3497d5583313e33f795ad3f8c1b0e", kill_on_drop: false }` [INFO] [stdout] 67d8e27a862474d98352a39cf584c81807e3497d5583313e33f795ad3f8c1b0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e73899fd285cfaabca34278bb37bdc406693b782319f0f038756a11c73b1468e [INFO] running `Command { std: "docker" "start" "-a" "e73899fd285cfaabca34278bb37bdc406693b782319f0f038756a11c73b1468e", kill_on_drop: false }` [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling enigo v0.0.14 [INFO] [stderr] Checking rppal v0.11.3 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking line_drawing v0.8.0 [INFO] [stderr] Checking cnc-rustberry v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/servo/sg90.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(output_pin: OutputPin) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CncPlotterDevice` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CncPlotterDevice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(_marker_servo: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run(&mut self) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SteppingDirection` [INFO] [stdout] --> src/device/stepper/stepper.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum SteppingDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UlnStepperStepperDriver` [INFO] [stdout] --> src/device/stepper/uln2003.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UlnStepperStepperDriver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/stepper/uln2003.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(_gpio_output_pins: [u8;4]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate_step` [INFO] [stdout] --> src/device/stepper/uln2003.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn evaluate_step (_stepping_mode: SteppingDirection) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_full_circle` [INFO] [stdout] --> src/device/stepper/uln2003.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn rotate_full_circle(&mut self, _stepping_mode: SteppingDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_for_angle` [INFO] [stdout] --> src/device/stepper/uln2003.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn rotate_for_angle(&mut self, _angle: f32, _stepping_mode: SteppingDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_z` [INFO] [stdout] --> src/geometry/position.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_z(&mut self, _z: ZPosition) {self._z = _z;} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GPIO_PWM` [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const GPIO_PWM: u8 = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `X_AXIS_STEPPER_PINS` [INFO] [stdout] --> src/main.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const X_AXIS_STEPPER_PINS: [u8; 4] = [19, 26, 20, 21]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Y_AXIS_STEPPER_PINS` [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const Y_AXIS_STEPPER_PINS: [u8; 4] = [17, 22, 23, 24]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_hardware` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test_hardware() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/gcode/parser.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!(_command.to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!("{}", _command.to_string()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 49 | _ => std::panic::panic_any(_command.to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MANUAL_SERVO_DOWN_INPUT` should have a snake case name [INFO] [stdout] --> src/device/cnc_plotter_device.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let MANUAL_SERVO_DOWN_INPUT: String = String::from("d\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `manual_servo_down_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MANUAL_SERVO_UP_INPUT` should have a snake case name [INFO] [stdout] --> src/device/cnc_plotter_device.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let MANUAL_SERVO_UP_INPUT: String = String::from("u\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `manual_servo_up_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/servo/sg90.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(output_pin: OutputPin) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CncPlotterDevice` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CncPlotterDevice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(_marker_servo: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/device/cnc_plotter_device.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run(&mut self) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `SteppingDirection` [INFO] [stdout] --> src/device/stepper/stepper.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum SteppingDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UlnStepperStepperDriver` [INFO] [stdout] --> src/device/stepper/uln2003.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UlnStepperStepperDriver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/device/stepper/uln2003.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(_gpio_output_pins: [u8;4]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate_step` [INFO] [stdout] --> src/device/stepper/uln2003.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn evaluate_step (_stepping_mode: SteppingDirection) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_full_circle` [INFO] [stdout] --> src/device/stepper/uln2003.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn rotate_full_circle(&mut self, _stepping_mode: SteppingDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_for_angle` [INFO] [stdout] --> src/device/stepper/uln2003.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn rotate_for_angle(&mut self, _angle: f32, _stepping_mode: SteppingDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_z` [INFO] [stdout] --> src/geometry/position.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_z(&mut self, _z: ZPosition) {self._z = _z;} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GPIO_PWM` [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const GPIO_PWM: u8 = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `X_AXIS_STEPPER_PINS` [INFO] [stdout] --> src/main.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const X_AXIS_STEPPER_PINS: [u8; 4] = [19, 26, 20, 21]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Y_AXIS_STEPPER_PINS` [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const Y_AXIS_STEPPER_PINS: [u8; 4] = [17, 22, 23, 24]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_hardware` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test_hardware() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/gcode/parser.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!(_command.to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!("{}", _command.to_string()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 49 | _ => std::panic::panic_any(_command.to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MANUAL_SERVO_DOWN_INPUT` should have a snake case name [INFO] [stdout] --> src/device/cnc_plotter_device.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let MANUAL_SERVO_DOWN_INPUT: String = String::from("d\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `manual_servo_down_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MANUAL_SERVO_UP_INPUT` should have a snake case name [INFO] [stdout] --> src/device/cnc_plotter_device.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let MANUAL_SERVO_UP_INPUT: String = String::from("u\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `manual_servo_up_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.36s [INFO] running `Command { std: "docker" "inspect" "e73899fd285cfaabca34278bb37bdc406693b782319f0f038756a11c73b1468e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e73899fd285cfaabca34278bb37bdc406693b782319f0f038756a11c73b1468e", kill_on_drop: false }` [INFO] [stdout] e73899fd285cfaabca34278bb37bdc406693b782319f0f038756a11c73b1468e