[INFO] cloning repository https://github.com/quartzsystems/field-management-system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quartzsystems/field-management-system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquartzsystems%2Ffield-management-system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquartzsystems%2Ffield-management-system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dbb19e323f8f11df62af206b6809000f84c17251 [INFO] checking quartzsystems/field-management-system against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquartzsystems%2Ffield-management-system" "/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/quartzsystems/field-management-system [INFO] finished tweaking git repo https://github.com/quartzsystems/field-management-system [INFO] tweaked toml for git repo https://github.com/quartzsystems/field-management-system written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/quartzsystems/field-management-system on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/quartzsystems/field-management-system 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 435ca74b51acb287c6c3da55b131375da85158613dae078d479c596fe0bd2fee [INFO] running `Command { std: "docker" "start" "-a" "435ca74b51acb287c6c3da55b131375da85158613dae078d479c596fe0bd2fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "435ca74b51acb287c6c3da55b131375da85158613dae078d479c596fe0bd2fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "435ca74b51acb287c6c3da55b131375da85158613dae078d479c596fe0bd2fee", kill_on_drop: false }` [INFO] [stdout] 435ca74b51acb287c6c3da55b131375da85158613dae078d479c596fe0bd2fee [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f248b5258e9bf79f492d88430ff869e90e344659a70f64c011874ea0ca1aaa4b [INFO] running `Command { std: "docker" "start" "-a" "f248b5258e9bf79f492d88430ff869e90e344659a70f64c011874ea0ca1aaa4b", kill_on_drop: false }` [INFO] [stderr] Checking s7 v0.1.9 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking field-management-system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/field/driver_station.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let packet = self [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/field/driver_station.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let packet = self [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Alliance` is never used [INFO] [stdout] --> src/field/alliance.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Alliance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllianceStation` is never constructed [INFO] [stdout] --> src/field/alliance.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AllianceStation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_ds_number` are never used [INFO] [stdout] --> src/field/alliance.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl AllianceStation { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(alliance: Alliance, station: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn to_ds_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DriverStation` is never constructed [INFO] [stdout] --> src/field/driver_station.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DriverStation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `listen_for_packets`, `encode_control_packet`, and `send_control_packet` are never used [INFO] [stdout] --> src/field/driver_station.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl DriverStation { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn listen_for_packets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn encode_control_packet(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub async fn send_control_packet(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RobotState` is never used [INFO] [stdout] --> src/field/driver_station_status.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RobotState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TournamentLevel` is never used [INFO] [stdout] --> src/field/driver_station_status.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum TournamentLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `APStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct APStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FMSStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct FMSStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RobotStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct RobotStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DSStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct DSStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StackLight` is never used [INFO] [stdout] --> src/plc/common.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum StackLight { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RobotStatus` is never used [INFO] [stdout] --> src/plc/common.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum RobotStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BypassStatus` is never used [INFO] [stdout] --> src/plc/common.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum BypassStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLC` is never constructed [INFO] [stdout] --> src/plc/plc.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PLC { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/plc/plc.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl PLC { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 24 | // Initializes a new PLC object. [INFO] [stdout] 25 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn connect(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn read_inputs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn write_outputs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_alliance_station_stack_light(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn set_alliance_station_estop(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn set_field_stack_light(&mut self, red: bool, blue: bool, amber: bool, green: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLCInputs` is never constructed [INFO] [stdout] --> src/plc/plc_inputs.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PLCInputs { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_array`, `to_array`, and `equals` are never used [INFO] [stdout] --> src/plc/plc_inputs.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PLCInputs { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 17 | // Converts an array of PLC inputs to a PLCInputs object. [INFO] [stdout] 18 | pub fn from_array(&mut self, inputs: [bool; 7]) -> &mut PLCInputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn to_array(&self) -> [bool; 7] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn equals(&self, plc_inputs: Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLCOutputs` is never constructed [INFO] [stdout] --> src/plc/plc_outputs.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PLCOutputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_array`, `to_array`, and `equals` are never used [INFO] [stdout] --> src/plc/plc_outputs.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PLCOutputs { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 20 | // Converts an array of PLC outputs to a PLCOutputs object. [INFO] [stdout] 21 | pub fn from_array(&mut self, outputs: [bool; 10]) -> &mut PLCOutputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn to_array(&self) -> [bool; 10] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn equals(&self, plc_outputs: Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encoder` is never used [INFO] [stdout] --> src/protocol/codec.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Encoder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Decoder` is never used [INFO] [stdout] --> src/protocol/codec.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Decoder: Sized { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/protocol/common.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AllianceColor` is never used [INFO] [stdout] --> src/protocol/common.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AllianceColor { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TournamentLevel` is never used [INFO] [stdout] --> src/protocol/common.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum TournamentLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllianceStation` is never constructed [INFO] [stdout] --> src/protocol/common.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct AllianceStation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `to_ds_number` are never used [INFO] [stdout] --> src/protocol/common.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl AllianceStation { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 34 | pub fn init(alliance_color: AllianceColor, alliance_station: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn to_ds_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Control` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Control { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Date` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Date { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/protocol/field_management_system.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Date { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 32 | pub fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UDPControlPacket` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UDPControlPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/protocol/field_management_system.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl UDPControlPacket { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 89 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Alliance` is never used [INFO] [stdout] --> src/field/alliance.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Alliance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllianceStation` is never constructed [INFO] [stdout] --> src/field/alliance.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AllianceStation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_ds_number` are never used [INFO] [stdout] --> src/field/alliance.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl AllianceStation { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(alliance: Alliance, station: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn to_ds_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DriverStation` is never constructed [INFO] [stdout] --> src/field/driver_station.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DriverStation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `listen_for_packets`, `encode_control_packet`, and `send_control_packet` are never used [INFO] [stdout] --> src/field/driver_station.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl DriverStation { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn listen_for_packets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn encode_control_packet(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub async fn send_control_packet(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RobotState` is never used [INFO] [stdout] --> src/field/driver_station_status.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RobotState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TournamentLevel` is never used [INFO] [stdout] --> src/field/driver_station_status.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum TournamentLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `APStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct APStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FMSStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct FMSStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RobotStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct RobotStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DSStatus` is never constructed [INFO] [stdout] --> src/field/driver_station_status.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct DSStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StackLight` is never used [INFO] [stdout] --> src/plc/common.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum StackLight { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RobotStatus` is never used [INFO] [stdout] --> src/plc/common.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum RobotStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BypassStatus` is never used [INFO] [stdout] --> src/plc/common.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum BypassStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLC` is never constructed [INFO] [stdout] --> src/plc/plc.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PLC { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/plc/plc.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl PLC { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 24 | // Initializes a new PLC object. [INFO] [stdout] 25 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn connect(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn read_inputs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn write_outputs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_alliance_station_stack_light(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn set_alliance_station_estop(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn set_field_stack_light(&mut self, red: bool, blue: bool, amber: bool, green: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLCInputs` is never constructed [INFO] [stdout] --> src/plc/plc_inputs.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PLCInputs { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_array`, `to_array`, and `equals` are never used [INFO] [stdout] --> src/plc/plc_inputs.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PLCInputs { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 17 | // Converts an array of PLC inputs to a PLCInputs object. [INFO] [stdout] 18 | pub fn from_array(&mut self, inputs: [bool; 7]) -> &mut PLCInputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn to_array(&self) -> [bool; 7] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn equals(&self, plc_inputs: Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PLCOutputs` is never constructed [INFO] [stdout] --> src/plc/plc_outputs.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PLCOutputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_array`, `to_array`, and `equals` are never used [INFO] [stdout] --> src/plc/plc_outputs.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PLCOutputs { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 20 | // Converts an array of PLC outputs to a PLCOutputs object. [INFO] [stdout] 21 | pub fn from_array(&mut self, outputs: [bool; 10]) -> &mut PLCOutputs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn to_array(&self) -> [bool; 10] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn equals(&self, plc_outputs: Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encoder` is never used [INFO] [stdout] --> src/protocol/codec.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Encoder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Decoder` is never used [INFO] [stdout] --> src/protocol/codec.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Decoder: Sized { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/protocol/common.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AllianceColor` is never used [INFO] [stdout] --> src/protocol/common.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AllianceColor { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TournamentLevel` is never used [INFO] [stdout] --> src/protocol/common.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum TournamentLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllianceStation` is never constructed [INFO] [stdout] --> src/protocol/common.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct AllianceStation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `to_ds_number` are never used [INFO] [stdout] --> src/protocol/common.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl AllianceStation { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 34 | pub fn init(alliance_color: AllianceColor, alliance_station: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn to_ds_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Control` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Control { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Date` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Date { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/protocol/field_management_system.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Date { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 32 | pub fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UDPControlPacket` is never constructed [INFO] [stdout] --> src/protocol/field_management_system.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UDPControlPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/protocol/field_management_system.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl UDPControlPacket { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 89 | pub fn init( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/field/alliance.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | let station = ((self.station - 1) % 3).try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/field/alliance.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | let station = ((self.station - 1) % 3).try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `field-management-system` (bin "field-management-system") due to 1 previous error; 33 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `field-management-system` (bin "field-management-system" test) due to 1 previous error; 33 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f248b5258e9bf79f492d88430ff869e90e344659a70f64c011874ea0ca1aaa4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f248b5258e9bf79f492d88430ff869e90e344659a70f64c011874ea0ca1aaa4b", kill_on_drop: false }` [INFO] [stdout] f248b5258e9bf79f492d88430ff869e90e344659a70f64c011874ea0ca1aaa4b