[INFO] cloning repository https://github.com/we-and/rust_gcode_analyzer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/we-and/rust_gcode_analyzer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_gcode_analyzer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_gcode_analyzer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c18fe7bed37ea3c16471533efa0b90b304417feb [INFO] building we-and/rust_gcode_analyzer against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwe-and%2Frust_gcode_analyzer" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/we-and/rust_gcode_analyzer [INFO] finished tweaking git repo https://github.com/we-and/rust_gcode_analyzer [INFO] tweaked toml for git repo https://github.com/we-and/rust_gcode_analyzer written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/we-and/rust_gcode_analyzer on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/we-and/rust_gcode_analyzer 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4d02e876852a6a4ba1fb24a15aa89bc3ad8ff2be2f418c79c00d35b50bcd8a62 [INFO] running `Command { std: "docker" "start" "-a" "4d02e876852a6a4ba1fb24a15aa89bc3ad8ff2be2f418c79c00d35b50bcd8a62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4d02e876852a6a4ba1fb24a15aa89bc3ad8ff2be2f418c79c00d35b50bcd8a62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d02e876852a6a4ba1fb24a15aa89bc3ad8ff2be2f418c79c00d35b50bcd8a62", kill_on_drop: false }` [INFO] [stdout] 4d02e876852a6a4ba1fb24a15aa89bc3ad8ff2be2f418c79c00d35b50bcd8a62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] beb67fa6f5c1a13edf1256a65660446f74cabd55adb66aa30ceee828702e6cf8 [INFO] running `Command { std: "docker" "start" "-a" "beb67fa6f5c1a13edf1256a65660446f74cabd55adb66aa30ceee828702e6cf8", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling cc v1.0.96 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling waker-fn v1.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling piper v0.2.1 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling parking_lot v0.12.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling crossbeam-channel v0.5.12 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling event-listener v5.3.0 [INFO] [stderr] Compiling async-executor v1.11.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling fltk-sys v1.4.29 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling async-channel v2.2.1 [INFO] [stderr] Compiling blocking v1.6.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling polling v3.7.0 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling fltk v1.4.29 [INFO] [stderr] Compiling rust_gcode_analyzer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use async_std::io::{self,}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | fn command_linear_movement_process(&mut self, command: &str, line: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:125:66 [INFO] [stdout] | [INFO] [stdout] 125 | fn command_linear_movement_process(&mut self, command: &str, line: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_lines` [INFO] [stdout] --> src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn process_line(&mut self, line: &str, total_lines: Option) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:129:46 [INFO] [stdout] | [INFO] [stdout] 129 | fn try_extract_print_estimate(&mut self, line: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `gather_info_after`, `version`, and `info_finder` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct SlicerInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 13 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | gather_info_after: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | version: Regex, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | info_finder: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlicerInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `slicer_identifiers`, `active_slicer`, `malicious_gcode_list`, and `result` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct GcodeAnalyzer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 21 | slicer_identifiers: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | active_slicer: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | current_line_number: usize, [INFO] [stdout] 24 | malicious_gcode_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | result: AnalysisResult, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `estimate` is never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct AnalysisResult { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 37 | estimate: Option, // estimation time in seconds [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `File` and `Array` are never constructed [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 150 | enum FileType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 151 | Path, [INFO] [stdout] 152 | File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 153 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `progress_callback` and `error_callback` are never read [INFO] [stdout] --> src/main.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 156 | struct FileAnalyzer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 159 | progress_callback: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 160 | done_callback: Box, [INFO] [stdout] 161 | error_callback: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.90s [INFO] running `Command { std: "docker" "inspect" "beb67fa6f5c1a13edf1256a65660446f74cabd55adb66aa30ceee828702e6cf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "beb67fa6f5c1a13edf1256a65660446f74cabd55adb66aa30ceee828702e6cf8", kill_on_drop: false }` [INFO] [stdout] beb67fa6f5c1a13edf1256a65660446f74cabd55adb66aa30ceee828702e6cf8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7c435bad19958766db9f85fd58f07bdbf0e2ca3d0b591534ed823b5ba2253d3 [INFO] running `Command { std: "docker" "start" "-a" "d7c435bad19958766db9f85fd58f07bdbf0e2ca3d0b591534ed823b5ba2253d3", kill_on_drop: false }` [INFO] [stderr] Compiling rust_gcode_analyzer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use async_std::io::{self,}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | fn command_linear_movement_process(&mut self, command: &str, line: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:125:66 [INFO] [stdout] | [INFO] [stdout] 125 | fn command_linear_movement_process(&mut self, command: &str, line: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:129:46 [INFO] [stdout] | [INFO] [stdout] 129 | fn try_extract_print_estimate(&mut self, line: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_lines` [INFO] [stdout] --> src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn process_line(&mut self, line: &str, total_lines: Option) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `gather_info_after`, `version`, and `info_finder` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct SlicerInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 13 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | gather_info_after: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | version: Regex, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | info_finder: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlicerInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `slicer_identifiers`, `active_slicer`, `malicious_gcode_list`, and `result` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct GcodeAnalyzer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 21 | slicer_identifiers: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | active_slicer: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | current_line_number: usize, [INFO] [stdout] 24 | malicious_gcode_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | result: AnalysisResult, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `estimate` is never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct AnalysisResult { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 37 | estimate: Option, // estimation time in seconds [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `File` and `Array` are never constructed [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 150 | enum FileType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 151 | Path, [INFO] [stdout] 152 | File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 153 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `progress_callback` and `error_callback` are never read [INFO] [stdout] --> src/main.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 156 | struct FileAnalyzer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 159 | progress_callback: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 160 | done_callback: Box, [INFO] [stdout] 161 | error_callback: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "d7c435bad19958766db9f85fd58f07bdbf0e2ca3d0b591534ed823b5ba2253d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7c435bad19958766db9f85fd58f07bdbf0e2ca3d0b591534ed823b5ba2253d3", kill_on_drop: false }` [INFO] [stdout] d7c435bad19958766db9f85fd58f07bdbf0e2ca3d0b591534ed823b5ba2253d3