[INFO] fetching crate rs-hack 0.5.3... [INFO] checking rs-hack-0.5.3 against master#c871d09d1cc32a649f4c5177bb819646260ed120 for pr-149291-1 [INFO] extracting crate rs-hack 0.5.3 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rs-hack 0.5.3 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rs-hack 0.5.3 [INFO] tweaked toml for crates.io crate rs-hack 0.5.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rs-hack 0.5.3 on toolchain c871d09d1cc32a649f4c5177bb819646260ed120 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c871d09d1cc32a649f4c5177bb819646260ed120" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rs-hack 0.5.3 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" "+c871d09d1cc32a649f4c5177bb819646260ed120" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c871d09d1cc32a649f4c5177bb819646260ed120" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c462f83f3f7fb50ffa8e552d9af44157a6393252ba2868286f954a288a9cf0ae [INFO] running `Command { std: "docker" "start" "-a" "c462f83f3f7fb50ffa8e552d9af44157a6393252ba2868286f954a288a9cf0ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c462f83f3f7fb50ffa8e552d9af44157a6393252ba2868286f954a288a9cf0ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c462f83f3f7fb50ffa8e552d9af44157a6393252ba2868286f954a288a9cf0ae", kill_on_drop: false }` [INFO] [stdout] c462f83f3f7fb50ffa8e552d9af44157a6393252ba2868286f954a288a9cf0ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c871d09d1cc32a649f4c5177bb819646260ed120" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e749584e8759bceab7449323a41bd50dba10b0013c278e1aabe1743db5a7bc78 [INFO] running `Command { std: "docker" "start" "-a" "e749584e8759bceab7449323a41bd50dba10b0013c278e1aabe1743db5a7bc78", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Checking syn v2.0.109 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking prettyplease v0.2.37 [INFO] [stderr] Checking clap v4.5.51 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking rs-hack v0.5.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::surgical::Replacement` [INFO] [stdout] --> src/editor.rs:4083:21 [INFO] [stdout] | [INFO] [stdout] 4083 | use crate::surgical::Replacement; [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 import: `crate::surgical::Replacement` [INFO] [stdout] --> src/editor.rs:4083:21 [INFO] [stdout] | [INFO] [stdout] 4083 | use crate::surgical::Replacement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `def_modified` is never read [INFO] [stdout] --> src/editor.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 237 | let mut def_modified = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `def_modified` is never read [INFO] [stdout] --> src/editor.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 237 | let mut def_modified = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2402:29 [INFO] [stdout] | [INFO] [stdout] 2402 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2477:29 [INFO] [stdout] | [INFO] [stdout] 2477 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2549:29 [INFO] [stdout] | [INFO] [stdout] 2549 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2621:29 [INFO] [stdout] | [INFO] [stdout] 2621 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2695:29 [INFO] [stdout] | [INFO] [stdout] 2695 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2402:29 [INFO] [stdout] | [INFO] [stdout] 2402 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2477:29 [INFO] [stdout] | [INFO] [stdout] 2477 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2549:29 [INFO] [stdout] | [INFO] [stdout] 2549 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2621:29 [INFO] [stdout] | [INFO] [stdout] 2621 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2695:29 [INFO] [stdout] | [INFO] [stdout] 2695 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/editor.rs:5216:18 [INFO] [stdout] | [INFO] [stdout] 5216 | for (i, comment_line) in comment_lines.iter().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/editor.rs:5216:18 [INFO] [stdout] | [INFO] [stdout] 5216 | for (i, comment_line) in comment_lines.iter().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reformat_item_isolated` is never used [INFO] [stdout] --> src/editor.rs:1351:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RustEditor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1351 | fn reformat_item_isolated(&mut self, predicate: F) -> Result [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 `StructLiteralFieldAdder` is never constructed [INFO] [stdout] --> src/editor.rs:4500:8 [INFO] [stdout] | [INFO] [stdout] 4500 | struct StructLiteralFieldAdder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reformat_item_isolated` is never used [INFO] [stdout] --> src/editor.rs:1351:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RustEditor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1351 | fn reformat_item_isolated(&mut self, predicate: F) -> Result [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 `StructLiteralFieldAdder` is never constructed [INFO] [stdout] --> src/editor.rs:4500:8 [INFO] [stdout] | [INFO] [stdout] 4500 | struct StructLiteralFieldAdder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [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 import: `crate::surgical::Replacement` [INFO] [stdout] --> src/editor.rs:4083:21 [INFO] [stdout] | [INFO] [stdout] 4083 | use crate::surgical::Replacement; [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 import: `FieldLocation` [INFO] [stdout] --> src/main.rs:2970:30 [INFO] [stdout] | [INFO] [stdout] 2970 | use operations::{FieldLocation, FieldContext}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated variant `Commands::AddStructLiteralField` [INFO] [stdout] --> src/main.rs:1629:19 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::surgical::Replacement` [INFO] [stdout] --> src/editor.rs:4083:21 [INFO] [stdout] | [INFO] [stdout] 4083 | use crate::surgical::Replacement; [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 import: `FieldLocation` [INFO] [stdout] --> src/main.rs:2970:30 [INFO] [stdout] | [INFO] [stdout] 2970 | use operations::{FieldLocation, FieldContext}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated variant `Commands::AddStructLiteralField` [INFO] [stdout] --> src/main.rs:1629:19 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::paths` [INFO] [stdout] --> src/main.rs:1629:43 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::struct_name` [INFO] [stdout] --> src/main.rs:1629:50 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::field` [INFO] [stdout] --> src/main.rs:1629:63 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::position` [INFO] [stdout] --> src/main.rs:1629:70 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::apply` [INFO] [stdout] --> src/main.rs:1629:80 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::paths` [INFO] [stdout] --> src/main.rs:1629:43 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::struct_name` [INFO] [stdout] --> src/main.rs:1629:50 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::field` [INFO] [stdout] --> src/main.rs:1629:63 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::position` [INFO] [stdout] --> src/main.rs:1629:70 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `Commands::AddStructLiteralField::apply` [INFO] [stdout] --> src/main.rs:1629:80 [INFO] [stdout] | [INFO] [stdout] 1629 | Commands::AddStructLiteralField { paths, struct_name, field, position, apply } => { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `def_modified` is never read [INFO] [stdout] --> src/editor.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 237 | let mut def_modified = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2402:29 [INFO] [stdout] | [INFO] [stdout] 2402 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2477:29 [INFO] [stdout] | [INFO] [stdout] 2477 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2549:29 [INFO] [stdout] | [INFO] [stdout] 2549 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2621:29 [INFO] [stdout] | [INFO] [stdout] 2621 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2695:29 [INFO] [stdout] | [INFO] [stdout] 2695 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `def_modified` is never read [INFO] [stdout] --> src/editor.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 237 | let mut def_modified = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/editor.rs:5216:18 [INFO] [stdout] | [INFO] [stdout] 5216 | for (i, comment_line) in comment_lines.iter().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2402:29 [INFO] [stdout] | [INFO] [stdout] 2402 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2477:29 [INFO] [stdout] | [INFO] [stdout] 2477 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2549:29 [INFO] [stdout] | [INFO] [stdout] 2549 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2621:29 [INFO] [stdout] | [INFO] [stdout] 2621 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preceding_comment` [INFO] [stdout] --> src/editor.rs:2695:29 [INFO] [stdout] | [INFO] [stdout] 2695 | let preceding_comment = if self.include_comments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preceding_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/editor.rs:5216:18 [INFO] [stdout] | [INFO] [stdout] 5216 | for (i, comment_line) in comment_lines.iter().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `syntax_tree` [INFO] [stdout] --> src/main.rs:1381:13 [INFO] [stdout] | [INFO] [stdout] 1381 | let syntax_tree: File = syn::parse_str(&content) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_syntax_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal_only` [INFO] [stdout] --> src/main.rs:2404:212 [INFO] [stdout] | [INFO] [stdout] 2404 | ...ind, node_type, literal_default, literal_only, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `literal_only: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `derive_macro` [INFO] [stdout] --> src/main.rs:2753:32 [INFO] [stdout] | [INFO] [stdout] 2753 | } else if let Some(derive_macro) = derive { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_derive_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enum_path` is never read [INFO] [stdout] --> src/main.rs:1333:9 [INFO] [stdout] | [INFO] [stdout] 1330 | struct VariantFinder<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1333 | enum_path: Option<&'a str>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_rust_files` is never used [INFO] [stdout] --> src/main.rs:3077:4 [INFO] [stdout] | [INFO] [stdout] 3077 | fn collect_rust_files(paths: &[PathBuf]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reformat_item_isolated` is never used [INFO] [stdout] --> src/editor.rs:1351:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RustEditor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1351 | fn reformat_item_isolated(&mut self, predicate: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructLiteralFieldAdder` is never constructed [INFO] [stdout] --> src/editor.rs:4500:8 [INFO] [stdout] | [INFO] [stdout] 4500 | struct StructLiteralFieldAdder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_simple_name` is never read [INFO] [stdout] --> src/path_resolver.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct PathResolver { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | target_simple_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PathResolver` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `simple`, `path_ends_with`, `target_name`, and `might_match_via_glob` are never used [INFO] [stdout] --> src/path_resolver.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl PathResolver { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn simple(name: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn path_ends_with(&self, path: &Path, preceding_segment: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn target_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn might_match_via_glob(&self, path: &Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `syntax_tree` [INFO] [stdout] --> src/main.rs:1381:13 [INFO] [stdout] | [INFO] [stdout] 1381 | let syntax_tree: File = syn::parse_str(&content) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_syntax_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal_only` [INFO] [stdout] --> src/main.rs:2404:212 [INFO] [stdout] | [INFO] [stdout] 2404 | ...ind, node_type, literal_default, literal_only, position, apply } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `literal_only: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `derive_macro` [INFO] [stdout] --> src/main.rs:2753:32 [INFO] [stdout] | [INFO] [stdout] 2753 | } else if let Some(derive_macro) = derive { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_derive_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enum_path` is never read [INFO] [stdout] --> src/main.rs:1333:9 [INFO] [stdout] | [INFO] [stdout] 1330 | struct VariantFinder<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1333 | enum_path: Option<&'a str>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_rust_files` is never used [INFO] [stdout] --> src/main.rs:3077:4 [INFO] [stdout] | [INFO] [stdout] 3077 | fn collect_rust_files(paths: &[PathBuf]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reformat_item_isolated` is never used [INFO] [stdout] --> src/editor.rs:1351:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RustEditor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1351 | fn reformat_item_isolated(&mut self, predicate: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructLiteralFieldAdder` is never constructed [INFO] [stdout] --> src/editor.rs:4500:8 [INFO] [stdout] | [INFO] [stdout] 4500 | struct StructLiteralFieldAdder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `simple` and `target_name` are never used [INFO] [stdout] --> src/path_resolver.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl PathResolver { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn simple(name: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn target_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.78s [INFO] running `Command { std: "docker" "inspect" "e749584e8759bceab7449323a41bd50dba10b0013c278e1aabe1743db5a7bc78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e749584e8759bceab7449323a41bd50dba10b0013c278e1aabe1743db5a7bc78", kill_on_drop: false }` [INFO] [stdout] e749584e8759bceab7449323a41bd50dba10b0013c278e1aabe1743db5a7bc78