[INFO] cloning repository https://github.com/hjeldin/dive-computer-proto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hjeldin/dive-computer-proto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhjeldin%2Fdive-computer-proto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhjeldin%2Fdive-computer-proto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91161c3319637e194871d9aa75c718209923aeff [INFO] checking hjeldin/dive-computer-proto against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhjeldin%2Fdive-computer-proto" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hjeldin/dive-computer-proto [INFO] finished tweaking git repo https://github.com/hjeldin/dive-computer-proto [INFO] tweaked toml for git repo https://github.com/hjeldin/dive-computer-proto written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hjeldin/dive-computer-proto on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hjeldin/dive-computer-proto 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 974d1b7c42d5239d7d72ac256b66f17afa3926b13ffafd0599b283dfccb4adca [INFO] running `Command { std: "docker" "start" "-a" "974d1b7c42d5239d7d72ac256b66f17afa3926b13ffafd0599b283dfccb4adca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "974d1b7c42d5239d7d72ac256b66f17afa3926b13ffafd0599b283dfccb4adca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "974d1b7c42d5239d7d72ac256b66f17afa3926b13ffafd0599b283dfccb4adca", kill_on_drop: false }` [INFO] [stdout] 974d1b7c42d5239d7d72ac256b66f17afa3926b13ffafd0599b283dfccb4adca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96971737a8e9367abe4d3e8949e449975e603ac1f4762f547194939e82a1133d [INFO] running `Command { std: "docker" "start" "-a" "96971737a8e9367abe4d3e8949e449975e603ac1f4762f547194939e82a1133d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking postcard v1.1.1 [INFO] [stderr] Checking dive-computer-proto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MessageType` and `ResponseStatus` [INFO] [stdout] --> src/examples.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::commands::{Command, Response, ResponseStatus, ResponsePayload, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageType` and `ResponseStatus` [INFO] [stdout] --> src/examples.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::commands::{Command, Response, ResponseStatus, ResponsePayload, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_sensor` [INFO] [stdout] --> src/examples.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let depth_sensor = Sensor::new(1, *b"Depth Sensor "); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_sensor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_reading` [INFO] [stdout] --> src/examples.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let depth_reading = SensorResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_reading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_sensor` [INFO] [stdout] --> src/examples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let temp_sensor = Sensor::new(2, *b"Temp Sensor "); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_sensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_reading` [INFO] [stdout] --> src/examples.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let temp_reading = SensorResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_command` [INFO] [stdout] --> src/examples.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let id_command = Command::ID; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_depth_command` [INFO] [stdout] --> src/examples.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let read_depth_command = Command::ReadSensor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_depth_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_dive_command` [INFO] [stdout] --> src/examples.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let start_dive_command = Command::StartDive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_dive_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_params_command` [INFO] [stdout] --> src/examples.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let set_params_command = Command::SetParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_params_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_response` [INFO] [stdout] --> src/examples.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let id_response = Response::success( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_response` [INFO] [stdout] --> src/examples.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let error_response = Response::error( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ndl` [INFO] [stdout] --> src/examples.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let ndl = calculate_ndl(depth_meters as u16, dive_profile.gas); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppo2` [INFO] [stdout] --> src/examples.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let ppo2 = calculate_ppo2(depth_meters as u16, dive_profile.gas); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ppo2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nitrox_profile` [INFO] [stdout] --> src/examples.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let nitrox_profile = DiveProfile::new(GasType::Nitrox { oxygen_percent: 32 }); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nitrox_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nitrox_ndl` [INFO] [stdout] --> src/examples.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let nitrox_ndl = calculate_ndl(18, GasType::Nitrox { oxygen_percent: 32 }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nitrox_ndl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/examples.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | let (size, buffer) = command_message.serialize()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/examples.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | let (size, buffer) = command_message.serialize()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_size` [INFO] [stdout] --> src/examples.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | let (response_size, response_buffer) = response_message.serialize()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_buffer` [INFO] [stdout] --> src/examples.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let (response_size, response_buffer) = response_message.serialize()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_sensor` [INFO] [stdout] --> src/examples.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let depth_sensor = Sensor::new(1, *b"Depth Sensor "); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_sensor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_reading` [INFO] [stdout] --> src/examples.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let depth_reading = SensorResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_reading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_sensor` [INFO] [stdout] --> src/examples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let temp_sensor = Sensor::new(2, *b"Temp Sensor "); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_sensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_reading` [INFO] [stdout] --> src/examples.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let temp_reading = SensorResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_command` [INFO] [stdout] --> src/examples.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let id_command = Command::ID; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_depth_command` [INFO] [stdout] --> src/examples.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let read_depth_command = Command::ReadSensor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_depth_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_dive_command` [INFO] [stdout] --> src/examples.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let start_dive_command = Command::StartDive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_dive_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_params_command` [INFO] [stdout] --> src/examples.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let set_params_command = Command::SetParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_params_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_response` [INFO] [stdout] --> src/examples.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let id_response = Response::success( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_response` [INFO] [stdout] --> src/examples.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let error_response = Response::error( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ndl` [INFO] [stdout] --> src/examples.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let ndl = calculate_ndl(depth_meters as u16, dive_profile.gas); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppo2` [INFO] [stdout] --> src/examples.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let ppo2 = calculate_ppo2(depth_meters as u16, dive_profile.gas); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ppo2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nitrox_profile` [INFO] [stdout] --> src/examples.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let nitrox_profile = DiveProfile::new(GasType::Nitrox { oxygen_percent: 32 }); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nitrox_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nitrox_ndl` [INFO] [stdout] --> src/examples.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let nitrox_ndl = calculate_ndl(18, GasType::Nitrox { oxygen_percent: 32 }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nitrox_ndl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/examples.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | let (size, buffer) = command_message.serialize()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/examples.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | let (size, buffer) = command_message.serialize()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_size` [INFO] [stdout] --> src/examples.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | let (response_size, response_buffer) = response_message.serialize()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_buffer` [INFO] [stdout] --> src/examples.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let (response_size, response_buffer) = response_message.serialize()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.97s [INFO] running `Command { std: "docker" "inspect" "96971737a8e9367abe4d3e8949e449975e603ac1f4762f547194939e82a1133d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96971737a8e9367abe4d3e8949e449975e603ac1f4762f547194939e82a1133d", kill_on_drop: false }` [INFO] [stdout] 96971737a8e9367abe4d3e8949e449975e603ac1f4762f547194939e82a1133d