[INFO] cloning repository https://github.com/gregberns/rs-wiringpi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gregberns/rs-wiringpi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04415b22db9335ff6c1ce90762942c49ccf01f97 [INFO] checking gregberns/rs-wiringpi against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gregberns/rs-wiringpi on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gregberns/rs-wiringpi [INFO] finished tweaking git repo https://github.com/gregberns/rs-wiringpi [INFO] tweaked toml for git repo https://github.com/gregberns/rs-wiringpi written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/gregberns/rs-wiringpi already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8413f3f69bb2c41adeddc9bda5bb18b8da52833584f11c4685093ae7c8569644 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8413f3f69bb2c41adeddc9bda5bb18b8da52833584f11c4685093ae7c8569644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8413f3f69bb2c41adeddc9bda5bb18b8da52833584f11c4685093ae7c8569644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8413f3f69bb2c41adeddc9bda5bb18b8da52833584f11c4685093ae7c8569644", kill_on_drop: false }` [INFO] [stdout] 8413f3f69bb2c41adeddc9bda5bb18b8da52833584f11c4685093ae7c8569644 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfd86c3f7cc6a906bf3517723418a777ad1ae55e1c6c2a2ea8b797811b09a66c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cfd86c3f7cc6a906bf3517723418a777ad1ae55e1c6c2a2ea8b797811b09a66c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling rs-wiringpi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnixListener`, `UnixStream` [INFO] [stdout] --> src/main.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::net::{UnixListener, UnixStream}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::mpsc::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vehicle` [INFO] [stdout] --> src/main.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::wiringpi::{motors_test, Vehicle}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnixListener`, `UnixStream` [INFO] [stdout] --> src/main.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::net::{UnixListener, UnixStream}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::mpsc::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vehicle` [INFO] [stdout] --> src/main.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::wiringpi::{motors_test, Vehicle}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/wiringpi.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let i: u8 = count_low(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wiringpi.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | let mut motors: [bool; 8] = [false, false, false, false, false, false, false, false]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/wiringpi.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let i: u8 = count_low(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_ms_to_cm` [INFO] [stdout] --> src/wiringpi.rs:286:4 [INFO] [stdout] | [INFO] [stdout] 286 | fn convert_ms_to_cm(usec: u128) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wiringpi.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | let mut motors: [bool; 8] = [false, false, false, false, false, false, false, false]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.75s [INFO] running `Command { std: "docker" "inspect" "cfd86c3f7cc6a906bf3517723418a777ad1ae55e1c6c2a2ea8b797811b09a66c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfd86c3f7cc6a906bf3517723418a777ad1ae55e1c6c2a2ea8b797811b09a66c", kill_on_drop: false }` [INFO] [stdout] cfd86c3f7cc6a906bf3517723418a777ad1ae55e1c6c2a2ea8b797811b09a66c