[INFO] cloning repository https://github.com/Ursus-GIT5805/rubiksbot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ursus-GIT5805/rubiksbot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUrsus-GIT5805%2Frubiksbot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUrsus-GIT5805%2Frubiksbot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 662575e6994da679b48bfd382d345b4ed8359f1f [INFO] building Ursus-GIT5805/rubiksbot against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUrsus-GIT5805%2Frubiksbot" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ursus-GIT5805/rubiksbot on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ursus-GIT5805/rubiksbot [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Ursus-GIT5805/rubiksbot [INFO] tweaked toml for git repo https://github.com/Ursus-GIT5805/rubiksbot written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Ursus-GIT5805/rubiksbot 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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14d4895bafc625be27d5762778b380c95655d07ded301fb58aedd5952c77f774 [INFO] running `Command { std: "docker" "start" "-a" "14d4895bafc625be27d5762778b380c95655d07ded301fb58aedd5952c77f774", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14d4895bafc625be27d5762778b380c95655d07ded301fb58aedd5952c77f774", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14d4895bafc625be27d5762778b380c95655d07ded301fb58aedd5952c77f774", kill_on_drop: false }` [INFO] [stdout] 14d4895bafc625be27d5762778b380c95655d07ded301fb58aedd5952c77f774 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47e5286e6beeb9c57f379bcec1e52c9ee8ecc3c0253b1be43a9ff820351d84c1 [INFO] running `Command { std: "docker" "start" "-a" "47e5286e6beeb9c57f379bcec1e52c9ee8ecc3c0253b1be43a9ff820351d84c1", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling pulldown-cmark v0.11.3 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling embedded-hal-nb v1.0.0 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling spin_sleep v1.2.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling const_for v0.1.5 [INFO] [stderr] Compiling rubiksbot v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling cc v1.1.22 [INFO] [stderr] Compiling clang v2.0.0 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling rppal v0.19.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling gpio-cdev v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling unescaper v0.1.5 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling opencv-binding-generator v0.91.0 [INFO] [stderr] Compiling i2cdev v0.6.1 [INFO] [stderr] Compiling spidev v0.6.0 [INFO] [stderr] Compiling serialport v4.5.1 [INFO] [stderr] Compiling sysfs_gpio v0.6.2 [INFO] [stderr] Compiling linux-embedded-hal v0.4.0 [INFO] [stderr] Compiling maybe-async-cfg v0.2.4 [INFO] [stderr] Compiling pwm-pca9685 v1.0.0 [INFO] [stderr] Compiling adafruit_motorkit v0.2.0 [INFO] [stderr] Compiling opencv v0.93.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling rubikscube v0.3.0 (https://github.com/Ursus-GIT5805/rubikscube#d8cce542) [INFO] [stdout] warning: unused import: `rubikscube::prelude::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rubikscube::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gpio::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use gpio::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `motor::StepperController` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use motor::StepperController; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_PATH` is never used [INFO] [stdout] --> src/main.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DATA_PATH: &str = "kociemba.dat"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMID1` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const CAMID1: i32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMROT1` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const CAMROT1: i32 = cv::core::ROTATE_90_CLOCKWISE; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMID2` is never used [INFO] [stdout] --> src/main.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const CAMID2: i32 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMROT2` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const CAMROT2: i32 = cv::core::ROTATE_90_COUNTERCLOCKWISE; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `grab`, `retrieve`, and `insert_helping_points` are never used [INFO] [stdout] --> src/camera/mod.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 423 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn grab(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub fn retrieve(&mut self) -> CVResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub fn insert_helping_points(&mut self) -> CVResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calibrate` is never used [INFO] [stdout] --> src/camera/mod.rs:536:8 [INFO] [stdout] | [INFO] [stdout] 536 | pub fn calibrate(cam1: &mut Camera, cam2: &mut Camera, data: &mut CalibrationData) -> CVResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cube` is never used [INFO] [stdout] --> src/camera/mod.rs:886:8 [INFO] [stdout] | [INFO] [stdout] 886 | pub fn read_cube( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GPIOResult` is never used [INFO] [stdout] --> src/gpio.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type GPIOResult = rppal::gpio::Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_RED` is never used [INFO] [stdout] --> src/gpio.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LED_RED: u8 = 17; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_GREEN` is never used [INFO] [stdout] --> src/gpio.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LED_GREEN: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_BLUE` is never used [INFO] [stdout] --> src/gpio.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const LED_BLUE: u8 = 18; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok`, `Wait`, and `LidOpen` are never constructed [INFO] [stdout] --> src/gpio.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum LEDMessage { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 19 | None, [INFO] [stdout] 20 | Ok, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | LidOpen, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LEDMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new` and `set_led_msg_for_duration` are never used [INFO] [stdout] --> src/gpio.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | impl LEDHandler { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 36 | pub fn try_new() -> GPIOResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn set_led_msg_for_duration(&mut self, msg: LEDMessage, duration: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LID_PIN` is never used [INFO] [stdout] --> src/gpio.rs:97:7 [INFO] [stdout] | [INFO] [stdout] 97 | const LID_PIN: u8 = 22; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUTTON_PIN` is never used [INFO] [stdout] --> src/gpio.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | const BUTTON_PIN: u8 = 23; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InputHandler` is never constructed [INFO] [stdout] --> src/gpio.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct InputHandler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new`, `lid_open`, `lid_closed`, and `just_pressed` are never used [INFO] [stdout] --> src/gpio.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 106 | impl InputHandler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 107 | pub fn try_new() -> GPIOResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn lid_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn lid_closed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn just_pressed(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STEP_DELAY` is never used [INFO] [stdout] --> src/motor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STEP_DELAY: std::time::Duration = std::time::Duration::from_micros(2500); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STEP_DELAY_ADVANCED` is never used [INFO] [stdout] --> src/motor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STEP_DELAY_ADVANCED: std::time::Duration = STEP_DELAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TURN_DELAY` is never used [INFO] [stdout] --> src/motor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TURN_DELAY: std::time::Duration = std::time::Duration::from_millis(60); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXTRA_STEPS` is never used [INFO] [stdout] --> src/motor.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const EXTRA_STEPS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pwm` is never used [INFO] [stdout] --> src/motor.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Pwm = Pca9685; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MotorResult` is never used [INFO] [stdout] --> src/motor.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type MotorResult = Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepperController` is never constructed [INFO] [stdout] --> src/motor.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct StepperController { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_pca` is never used [INFO] [stdout] --> src/motor.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn init_pca(address: impl Into
) -> MotorResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_instruction` is never used [INFO] [stdout] --> src/motor.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_instruction(wise: TurnWise) -> (usize, StepDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new`, `get_motor`, `execute_single`, `execute_double`, `execute_turn`, and `unpower_motors` are never used [INFO] [stdout] --> src/motor.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | impl StepperController { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 49 | pub fn try_new() -> MotorResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_motor(&self, side: Side) -> (usize, Motor) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn execute_single( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn execute_double( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn execute_turn(&mut self, turn: Turn) -> MotorResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn unpower_motors(&mut self) -> MotorResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "47e5286e6beeb9c57f379bcec1e52c9ee8ecc3c0253b1be43a9ff820351d84c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47e5286e6beeb9c57f379bcec1e52c9ee8ecc3c0253b1be43a9ff820351d84c1", kill_on_drop: false }` [INFO] [stdout] 47e5286e6beeb9c57f379bcec1e52c9ee8ecc3c0253b1be43a9ff820351d84c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e24dca40dff6372cd929f5cce8d9848e9d43342e97a713c78ff3bab69133402 [INFO] running `Command { std: "docker" "start" "-a" "1e24dca40dff6372cd929f5cce8d9848e9d43342e97a713c78ff3bab69133402", kill_on_drop: false }` [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling portable-atomic v1.9.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling font-kit v0.14.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling bytemuck v1.19.0 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling fdeflate v0.3.5 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling png v0.17.14 [INFO] [stderr] Compiling indicatif v0.17.8 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling plotters-bitmap v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling rubiksbot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rubikscube::prelude::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rubikscube::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gpio::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use gpio::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `motor::StepperController` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use motor::StepperController; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_PATH` is never used [INFO] [stdout] --> src/main.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DATA_PATH: &str = "kociemba.dat"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMID1` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const CAMID1: i32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMROT1` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const CAMROT1: i32 = cv::core::ROTATE_90_CLOCKWISE; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMID2` is never used [INFO] [stdout] --> src/main.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const CAMID2: i32 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAMROT2` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const CAMROT2: i32 = cv::core::ROTATE_90_COUNTERCLOCKWISE; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `grab`, `retrieve`, and `insert_helping_points` are never used [INFO] [stdout] --> src/camera/mod.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 423 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn grab(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub fn retrieve(&mut self) -> CVResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub fn insert_helping_points(&mut self) -> CVResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calibrate` is never used [INFO] [stdout] --> src/camera/mod.rs:536:8 [INFO] [stdout] | [INFO] [stdout] 536 | pub fn calibrate(cam1: &mut Camera, cam2: &mut Camera, data: &mut CalibrationData) -> CVResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cube` is never used [INFO] [stdout] --> src/camera/mod.rs:886:8 [INFO] [stdout] | [INFO] [stdout] 886 | pub fn read_cube( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GPIOResult` is never used [INFO] [stdout] --> src/gpio.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type GPIOResult = rppal::gpio::Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_RED` is never used [INFO] [stdout] --> src/gpio.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LED_RED: u8 = 17; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_GREEN` is never used [INFO] [stdout] --> src/gpio.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LED_GREEN: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LED_BLUE` is never used [INFO] [stdout] --> src/gpio.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const LED_BLUE: u8 = 18; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok`, `Wait`, and `LidOpen` are never constructed [INFO] [stdout] --> src/gpio.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum LEDMessage { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 19 | None, [INFO] [stdout] 20 | Ok, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | LidOpen, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LEDMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new` and `set_led_msg_for_duration` are never used [INFO] [stdout] --> src/gpio.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | impl LEDHandler { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 36 | pub fn try_new() -> GPIOResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn set_led_msg_for_duration(&mut self, msg: LEDMessage, duration: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LID_PIN` is never used [INFO] [stdout] --> src/gpio.rs:97:7 [INFO] [stdout] | [INFO] [stdout] 97 | const LID_PIN: u8 = 22; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUTTON_PIN` is never used [INFO] [stdout] --> src/gpio.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | const BUTTON_PIN: u8 = 23; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InputHandler` is never constructed [INFO] [stdout] --> src/gpio.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct InputHandler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new`, `lid_open`, `lid_closed`, and `just_pressed` are never used [INFO] [stdout] --> src/gpio.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 106 | impl InputHandler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 107 | pub fn try_new() -> GPIOResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn lid_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn lid_closed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn just_pressed(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STEP_DELAY` is never used [INFO] [stdout] --> src/motor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STEP_DELAY: std::time::Duration = std::time::Duration::from_micros(2500); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STEP_DELAY_ADVANCED` is never used [INFO] [stdout] --> src/motor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STEP_DELAY_ADVANCED: std::time::Duration = STEP_DELAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TURN_DELAY` is never used [INFO] [stdout] --> src/motor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TURN_DELAY: std::time::Duration = std::time::Duration::from_millis(60); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXTRA_STEPS` is never used [INFO] [stdout] --> src/motor.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const EXTRA_STEPS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pwm` is never used [INFO] [stdout] --> src/motor.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Pwm = Pca9685; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MotorResult` is never used [INFO] [stdout] --> src/motor.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type MotorResult = Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepperController` is never constructed [INFO] [stdout] --> src/motor.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct StepperController { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_pca` is never used [INFO] [stdout] --> src/motor.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn init_pca(address: impl Into
) -> MotorResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_instruction` is never used [INFO] [stdout] --> src/motor.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_instruction(wise: TurnWise) -> (usize, StepDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `try_new`, `get_motor`, `execute_single`, `execute_double`, `execute_turn`, and `unpower_motors` are never used [INFO] [stdout] --> src/motor.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | impl StepperController { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 49 | pub fn try_new() -> MotorResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_motor(&self, side: Side) -> (usize, Motor) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn execute_single( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn execute_double( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn execute_turn(&mut self, turn: Turn) -> MotorResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn unpower_motors(&mut self) -> MotorResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.48s [INFO] running `Command { std: "docker" "inspect" "1e24dca40dff6372cd929f5cce8d9848e9d43342e97a713c78ff3bab69133402", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e24dca40dff6372cd929f5cce8d9848e9d43342e97a713c78ff3bab69133402", kill_on_drop: false }` [INFO] [stdout] 1e24dca40dff6372cd929f5cce8d9848e9d43342e97a713c78ff3bab69133402