[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] ce027f7e506a576ed27f7141634a99845c95107c [INFO] testing szopqa/cnc-rustberry against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszopqa%2Fcnc-rustberry" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/szopqa/cnc-rustberry on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/szopqa/cnc-rustberry 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 079e37a771af68df0d97e0a1d449c408313ea5f63a71d05dd634a0d9639acb71 [INFO] running `Command { std: "docker" "start" "-a" "079e37a771af68df0d97e0a1d449c408313ea5f63a71d05dd634a0d9639acb71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "079e37a771af68df0d97e0a1d449c408313ea5f63a71d05dd634a0d9639acb71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "079e37a771af68df0d97e0a1d449c408313ea5f63a71d05dd634a0d9639acb71", kill_on_drop: false }` [INFO] [stdout] 079e37a771af68df0d97e0a1d449c408313ea5f63a71d05dd634a0d9639acb71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 822a6d1a73563caf8e54eebb0aed122fb0a92ad786437f60aa93127025b4ad60 [INFO] running `Command { std: "docker" "start" "-a" "822a6d1a73563caf8e54eebb0aed122fb0a92ad786437f60aa93127025b4ad60", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling enigo v0.0.14 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling rppal v0.11.3 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling line_drawing v0.8.0 [INFO] [stderr] Compiling cnc-rustberry v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `enigo::*` [INFO] [stdout] --> src/moveables/dummy.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enigo::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dummy::DummyMoveable` [INFO] [stdout] --> src/main.rs:16:64 [INFO] [stdout] | [INFO] [stdout] 16 | use moveables::{moveable::Moveable, pc_mouse::PcMouseMoveable, dummy::DummyMoveable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedNum` [INFO] [stdout] --> src/geometry/path.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | SignedNum [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_hardware` is never used [INFO] [stdout] --> src/main.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn test_hardware() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/gcode/gcode_driver.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct GCodeDriver { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub position: Position [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sg90` is never constructed [INFO] [stdout] --> src/device/servo/sg90.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Sg90 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/device/servo/sg90.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sg90 { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(output_pin: OutputPin) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Servo` is never used [INFO] [stdout] --> src/device/servo/servo.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Servo { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CncPlotterDevice` is never constructed [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 items `new` and `run` are never used [INFO] [stdout] --> src/device/cnc_plotter_device.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl CncPlotterDevice { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(_marker_servo: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn run(&mut self) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Stepper` is never used [INFO] [stdout] --> src/device/stepper/stepper.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Stepper { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SteppingDirection` is never used [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 `UlnStepperStepperDriver` is never constructed [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 items `new`, `evaluate_step`, `rotate_full_circle`, and `rotate_for_angle` are never used [INFO] [stdout] --> src/device/stepper/uln2003.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UlnStepperStepperDriver { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(_gpio_output_pins: [u8;4]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn evaluate_step (_stepping_mode: SteppingDirection) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn rotate_full_circle(&mut self, _stepping_mode: SteppingDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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: methods `calibrate`, `move_up`, and `move_down` are never used [INFO] [stdout] --> src/moveables/moveable.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Moveable { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 4 | fn calibrate(&mut self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn move_up(&mut self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | fn move_down(&mut self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DummyMoveable` is never constructed [INFO] [stdout] --> src/moveables/dummy.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DummyMoveable{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/moveables/dummy.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl DummyMoveable { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 18 | pub fn new(_x: f32, _y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_z` is never used [INFO] [stdout] --> src/geometry/position.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn set_z(&mut self, _z: ZPosition) {self._z = _z;} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/gcode/parser.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | _ => panic!(_command.to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 52 | _ => panic!("{}", _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)]` (part of `#[warn(nonstandard_style)]`) 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] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustc8I0t9q/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libenigo-d37c2ef9866fcd04,librppal-8f88c8ddba99b2e0,liblibc-35327eed175f2fa8,liblazy_static-2bb390fee0230a38,libline_drawing-4448e75b81813849,libnum_traits-d542770400ee9bdc,libnum_traits-dc078702aa771f49}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lxdo" "-ldl" "-lutil" "-ldl" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustc8I0t9q/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/cnc_rustberry-67539bcb11fb112e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lxdo [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cnc-rustberry` (bin "cnc-rustberry") due to 1 previous error; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "822a6d1a73563caf8e54eebb0aed122fb0a92ad786437f60aa93127025b4ad60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "822a6d1a73563caf8e54eebb0aed122fb0a92ad786437f60aa93127025b4ad60", kill_on_drop: false }` [INFO] [stdout] 822a6d1a73563caf8e54eebb0aed122fb0a92ad786437f60aa93127025b4ad60