[INFO] cloning repository https://github.com/huming2207/plunger-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huming2207/plunger-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49514b963f87d9cccb5fd2035db744ba46b0252d [INFO] checking huming2207/plunger-api against master#42bd138126b0a9d38d65bc9973e72de3c5b6c37f for pr-99217 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api" "/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/huming2207/plunger-api on toolchain 42bd138126b0a9d38d65bc9973e72de3c5b6c37f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huming2207/plunger-api [INFO] finished tweaking git repo https://github.com/huming2207/plunger-api [INFO] tweaked toml for git repo https://github.com/huming2207/plunger-api written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/huming2207/plunger-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/probe-rs/probe-rs` [INFO] [stderr] warning: skipping duplicate package `binary_project` found at `/workspace/cargo-home/git/checkouts/probe-rs-92d520f86d5696fc/7d61446/probe-rs-cli-util/tests/data/multiple_binary_project` [INFO] [stderr] warning: skipping duplicate package `library_project` found at `/workspace/cargo-home/git/checkouts/probe-rs-92d520f86d5696fc/7d61446/probe-rs-cli-util/tests/data/library_project` [INFO] [stderr] Updating git repository `https://github.com/magiclen/rocket-multipart-form-data` [INFO] [stderr] Updating git repository `https://github.com/SergioBenitez/Rocket` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded loom v0.5.0 [INFO] [stderr] Downloaded svg v0.9.2 [INFO] [stderr] Downloaded enum-primitive-derive v0.2.1 [INFO] [stderr] Downloaded boolean_expression v0.3.11 [INFO] [stderr] Downloaded devise_core v0.3.0 [INFO] [stderr] Downloaded bitmatch v0.1.1 [INFO] [stderr] Downloaded devise_codegen v0.3.0 [INFO] [stderr] Downloaded state v0.5.1 [INFO] [stderr] Downloaded jaylink v0.2.0 [INFO] [stderr] Downloaded jep106 v0.2.5 [INFO] [stderr] Downloaded devise v0.3.0 [INFO] [stderr] Downloaded figment v0.10.5 [INFO] [stderr] Downloaded cookie v0.15.0 [INFO] [stderr] Downloaded itm-decode v0.2.1 [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cd7217c9eb85f9d8a7606e4e4ed504ce859d8d8c40e315630e860c4dfe8470b [INFO] running `Command { std: "docker" "start" "-a" "9cd7217c9eb85f9d8a7606e4e4ed504ce859d8d8c40e315630e860c4dfe8470b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cd7217c9eb85f9d8a7606e4e4ed504ce859d8d8c40e315630e860c4dfe8470b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cd7217c9eb85f9d8a7606e4e4ed504ce859d8d8c40e315630e860c4dfe8470b", kill_on_drop: false }` [INFO] [stdout] 9cd7217c9eb85f9d8a7606e4e4ed504ce859d8d8c40e315630e860c4dfe8470b [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d78cf18dfab895158640f1070b3fd8d0f746cdbddcde9dfea700dc6bd7f4212 [INFO] running `Command { std: "docker" "start" "-a" "0d78cf18dfab895158640f1070b3fd8d0f746cdbddcde9dfea700dc6bd7f4212", kill_on_drop: false }` [INFO] [stderr] warning: skipping duplicate package `binary_project` found at `/opt/rustwide/cargo-home/git/checkouts/probe-rs-92d520f86d5696fc/7d61446/probe-rs-cli-util/tests/data/multiple_binary_project` [INFO] [stderr] warning: skipping duplicate package `library_project` found at `/opt/rustwide/cargo-home/git/checkouts/probe-rs-92d520f86d5696fc/7d61446/probe-rs-cli-util/tests/data/library_project` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling inlinable_string v0.1.14 [INFO] [stderr] Compiling state v0.5.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking spin v0.9.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling rusb v0.8.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking thousands v0.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Checking svg v0.9.2 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking ihex v3.0.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking radix_fmt v1.0.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling time v0.2.26 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling cookie v0.15.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling multer v2.0.0 [INFO] [stderr] Compiling figment v0.10.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling atomic v0.5.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking gimli v0.24.0 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling hidapi v1.2.6 [INFO] [stderr] Checking stable-pattern v0.1.0 [INFO] [stderr] Checking twoway v0.2.2 [INFO] [stderr] Checking object v0.25.2 [INFO] [stderr] Compiling boolean_expression v0.3.11 [INFO] [stderr] Checking bitvec v0.19.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking jaylink v0.2.0 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Compiling devise_core v0.3.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling devise_codegen v0.3.0 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling bitmatch v0.1.1 [INFO] [stderr] Compiling enum-primitive-derive v0.2.1 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling devise v0.3.0 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Checking itm-decode v0.2.1 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking ubyte v0.10.1 [INFO] [stderr] Checking jep106 v0.2.5 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking probe-rs-target v0.10.1 (https://github.com/probe-rs/probe-rs?branch=master#7d61446f) [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Compiling probe-rs v0.10.1 (https://github.com/probe-rs/probe-rs?branch=master#7d61446f) [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking rocket_http v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Checking rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Checking rocket-multipart-form-data v0.10.0 (https://github.com/magiclen/rocket-multipart-form-data#899ac578) [INFO] [stderr] Checking plunger-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `JoinError`, `spawn_blocking` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::tokio::task::{JoinError, spawn_blocking}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JoinError`, `spawn_blocking` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::tokio::task::{JoinError, spawn_blocking}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contextual` [INFO] [stdout] --> src/routes/production/erase_flash.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{form::{Contextual, Form}, http::Status, serde::json::Json}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contextual` [INFO] [stdout] --> src/routes/production/erase_flash.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{form::{Contextual, Form}, http::Status, serde::json::Json}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_result` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let download_result = match form.fw_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_result` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let download_result = match form.fw_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/routes/production/list_probes.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | ... Err(err) => return (Status::InternalServerError, Json(PlungerResponse { message: "Failed to get probes".to_string(), details: None ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/routes/production/list_probes.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | ... Err(err) => return (Status::InternalServerError, Json(PlungerResponse { message: "Failed to get probes".to_string(), details: None ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/routes/production/flash_firmware.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct CmFirmwareForm<'v> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 17 | #[field(validate = len(..32.mebibytes()))] [INFO] [stdout] 18 | blob: TempFile<'v>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | #[field(validate = one_of(vec!["bin", "hex", "elf"]))] [INFO] [stdout] 20 | fw_type: &'v str, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | #[field(validate = range(1..))] [INFO] [stdout] 22 | fw_ver: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | probe_sn: &'v str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | #[field(validate = range(100..))] [INFO] [stdout] 25 | speed_khz: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | target_name: &'v str, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | skip_erase: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `CmFirmwareForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cm_firmware_flash` is never used [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_probes` is never used [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `probe_sn`, `probe_vid`, `probe_pid` and `target_name` are never read [INFO] [stdout] --> src/routes/production/erase_flash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct CmFirmwareEraseForm { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 8 | probe_sn: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | target_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareEraseForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `erase_flash` is never used [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidTarget` is never constructed [INFO] [stdout] --> src/massprod/eraser/eraser_error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EraserError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 5 | #[error("Invalid target - probably not a STM32L0?")] [INFO] [stdout] 6 | InvalidTarget, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EraserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stm32L0EraserTask` is never constructed [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct Stm32L0EraserTask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(target_name: String, probe: DebugProbeSelector) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/routes/production/flash_firmware.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct CmFirmwareForm<'v> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 17 | #[field(validate = len(..32.mebibytes()))] [INFO] [stdout] 18 | blob: TempFile<'v>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | #[field(validate = one_of(vec!["bin", "hex", "elf"]))] [INFO] [stdout] 20 | fw_type: &'v str, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | #[field(validate = range(1..))] [INFO] [stdout] 22 | fw_ver: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | probe_sn: &'v str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | #[field(validate = range(100..))] [INFO] [stdout] 25 | speed_khz: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | target_name: &'v str, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | skip_erase: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `CmFirmwareForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cm_firmware_flash` is never used [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_probes` is never used [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `probe_sn`, `probe_vid`, `probe_pid` and `target_name` are never read [INFO] [stdout] --> src/routes/production/erase_flash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct CmFirmwareEraseForm { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 8 | probe_sn: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | target_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareEraseForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `erase_flash` is never used [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidTarget` is never constructed [INFO] [stdout] --> src/massprod/eraser/eraser_error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EraserError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 5 | #[error("Invalid target - probably not a STM32L0?")] [INFO] [stdout] 6 | InvalidTarget, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EraserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stm32L0EraserTask` is never constructed [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct Stm32L0EraserTask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(target_name: String, probe: DebugProbeSelector) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "0d78cf18dfab895158640f1070b3fd8d0f746cdbddcde9dfea700dc6bd7f4212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d78cf18dfab895158640f1070b3fd8d0f746cdbddcde9dfea700dc6bd7f4212", kill_on_drop: false }` [INFO] [stdout] 0d78cf18dfab895158640f1070b3fd8d0f746cdbddcde9dfea700dc6bd7f4212