[INFO] cloning repository https://github.com/nkconnor/zim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nkconnor/zim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkconnor%2Fzim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkconnor%2Fzim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ea572bf438df74ff6d6e5cf6c267f63abcb7453 [INFO] building nkconnor/zim against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkconnor%2Fzim" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nkconnor/zim [INFO] finished tweaking git repo https://github.com/nkconnor/zim [INFO] tweaked toml for git repo https://github.com/nkconnor/zim written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nkconnor/zim 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/nkconnor/zim 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] dcee9f4e63a844700e3f76e1ca42b9a5cae587089c86a00f266437592ee7c0fa [INFO] running `Command { std: "docker" "start" "-a" "dcee9f4e63a844700e3f76e1ca42b9a5cae587089c86a00f266437592ee7c0fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcee9f4e63a844700e3f76e1ca42b9a5cae587089c86a00f266437592ee7c0fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcee9f4e63a844700e3f76e1ca42b9a5cae587089c86a00f266437592ee7c0fa", kill_on_drop: false }` [INFO] [stdout] dcee9f4e63a844700e3f76e1ca42b9a5cae587089c86a00f266437592ee7c0fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] e34af395389d53ad2057b2d7aef29422ed161cfe362c28fd69f0ee26a9cf7479 [INFO] running `Command { std: "docker" "start" "-a" "e34af395389d53ad2057b2d7aef29422ed161cfe362c28fd69f0ee26a9cf7479", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling grep-matcher v0.1.7 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling encoding_rs_io v0.1.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling quick-xml v0.32.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling clap_builder v4.5.31 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling fuzzy-matcher v0.3.7 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling crossterm v0.26.1 [INFO] [stderr] Compiling ratatui v0.22.0 [INFO] [stderr] Compiling bstr v1.11.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling grep-searcher v0.1.14 [INFO] [stderr] Compiling grep-regex v0.1.13 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling grep-cli v0.1.11 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling clap v4.5.31 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling onig v6.4.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling plist v1.7.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling grep-printer v0.2.2 [INFO] [stderr] Compiling syntect v5.2.0 [INFO] [stderr] Compiling grep v0.3.2 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling zim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/editor/buffer.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::{min, max}; [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: `KeyModifiers` [INFO] [stdout] --> src/editor/mod.rs:840:41 [INFO] [stdout] | [INFO] [stdout] 840 | use crossterm::event::{KeyCode, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyModifiers` [INFO] [stdout] --> src/editor/mod.rs:905:41 [INFO] [stdout] | [INFO] [stdout] 905 | use crossterm::event::{KeyCode, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/ui/mod.rs:10:68 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::editor::{Editor, Mode, HighlightedLine, Tab, GameState, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `code_context` is never read [INFO] [stdout] --> src/editor/diagnostics.rs:413:25 [INFO] [stdout] | [INFO] [stdout] 413 | let mut code_context = String::new(); [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: `current_line_idx` [INFO] [stdout] --> src/ui/mod.rs:713:17 [INFO] [stdout] | [INFO] [stdout] 713 | let current_line_idx = start_line + idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 713 | let _current_line_idx = start_line + idx; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_RECENT_FILES` [INFO] [stdout] | [INFO] [stdout] 713 - let current_line_idx = start_line + idx; [INFO] [stdout] 713 + let editor::file_finder::MAX_RECENT_FILES = start_line + idx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `char_pos` is never read [INFO] [stdout] --> src/ui/mod.rs:823:29 [INFO] [stdout] | [INFO] [stdout] 823 | ... char_pos += before_text.len(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `char_pos` is never read [INFO] [stdout] --> src/ui/mod.rs:890:29 [INFO] [stdout] | [INFO] [stdout] 890 | ... char_pos += diagnostic_text.len(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/editor/mod.rs:1198:36 [INFO] [stdout] | [INFO] [stdout] 1198 | if let Err(e) = self.current_tab_mut().buffer.save(None) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `display_text` [INFO] [stdout] --> src/ui/mod.rs:1637:21 [INFO] [stdout] | [INFO] [stdout] 1637 | let display_text = format!( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_display_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `style` [INFO] [stdout] --> src/ui/mod.rs:1644:21 [INFO] [stdout] | [INFO] [stdout] 1644 | let style = if i == selected_index { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_style` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ui/mod.rs:901:29 [INFO] [stdout] | [INFO] [stdout] 901 | let mut char_pos = pos; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `editor` [INFO] [stdout] --> src/ui/mod.rs:1830:51 [INFO] [stdout] | [INFO] [stdout] 1830 | fn render_help_page(f: &mut Frame, editor: &Editor, area: Rect) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_editor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_line_content` [INFO] [stdout] --> src/editor/mod.rs:2110:25 [INFO] [stdout] | [INFO] [stdout] 2110 | let current_line_content = tab.buffer.get_line(tab.cursor.y).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_line_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EditorCommand` is never used [INFO] [stdout] --> src/editor/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum EditorCommand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SetContent` is never constructed [INFO] [stdout] --> src/editor/history.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ActionType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | SetContent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActionType` 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: field `cursor_after` is never read [INFO] [stdout] --> src/editor/history.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct EditorAction { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | pub cursor_after: Cursor, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EditorAction` 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: method `clear` is never used [INFO] [stdout] --> src/editor/history.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/config/mod.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn save(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config_dir` is never used [INFO] [stdout] --> src/config/key_bindings.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn get_config_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load` and `save` are never used [INFO] [stdout] --> src/config/key_bindings.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl KeyBindings { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 223 | pub fn load() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn save(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_theme`, `list_themes`, `current_theme`, and `supported_languages` are never used [INFO] [stdout] --> src/editor/syntax.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl SyntaxHighlighter { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_theme(&mut self, theme_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn list_themes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn current_theme(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn supported_languages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hint` is never constructed [INFO] [stdout] --> src/editor/diagnostics.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum DiagnosticSeverity { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Hint, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticSeverity` 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: method `contains` is never used [INFO] [stdout] --> src/editor/diagnostics.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TextSpan { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn contains(&self, line: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_full_message` is never used [INFO] [stdout] --> src/editor/diagnostics.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Diagnostic { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn format_full_message(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_content` is never used [INFO] [stdout] --> src/editor/buffer.rs:1303:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Buffer { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1303 | pub fn set_content(&mut self, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `load_file` is never used [INFO] [stdout] --> src/editor/mod.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Tab { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn load_file(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_selected` is never used [INFO] [stdout] --> src/editor/mod.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl TokenSearch { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn get_selected(&self) -> Option<&TokenSearchResult> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/editor/mod.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 315 | impl Editor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 316 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.96s [INFO] running `Command { std: "docker" "inspect" "e34af395389d53ad2057b2d7aef29422ed161cfe362c28fd69f0ee26a9cf7479", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e34af395389d53ad2057b2d7aef29422ed161cfe362c28fd69f0ee26a9cf7479", kill_on_drop: false }` [INFO] [stdout] e34af395389d53ad2057b2d7aef29422ed161cfe362c28fd69f0ee26a9cf7479 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a7e7f0a9ee4da5987254941c0d36f2d4af5fa3d973f0d728dc4f91f84a9093b8 [INFO] running `Command { std: "docker" "start" "-a" "a7e7f0a9ee4da5987254941c0d36f2d4af5fa3d973f0d728dc4f91f84a9093b8", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling ratatui v0.22.0 [INFO] [stderr] Compiling tempfile v3.17.1 [INFO] [stderr] Compiling zim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/editor/buffer.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::{min, max}; [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: `KeyModifiers` [INFO] [stdout] --> src/editor/mod.rs:840:41 [INFO] [stdout] | [INFO] [stdout] 840 | use crossterm::event::{KeyCode, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyModifiers` [INFO] [stdout] --> src/editor/mod.rs:905:41 [INFO] [stdout] | [INFO] [stdout] 905 | use crossterm::event::{KeyCode, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/ui/mod.rs:10:68 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::editor::{Editor, Mode, HighlightedLine, Tab, GameState, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `display_text` [INFO] [stdout] --> src/ui/mod.rs:1637:21 [INFO] [stdout] | [INFO] [stdout] 1637 | let display_text = format!( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_display_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `style` [INFO] [stdout] --> src/ui/mod.rs:1644:21 [INFO] [stdout] | [INFO] [stdout] 1644 | let style = if i == selected_index { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_style` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/editor/mod.rs:1198:36 [INFO] [stdout] | [INFO] [stdout] 1198 | if let Err(e) = self.current_tab_mut().buffer.save(None) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `code_context` is never read [INFO] [stdout] --> src/editor/diagnostics.rs:413:25 [INFO] [stdout] | [INFO] [stdout] 413 | let mut code_context = String::new(); [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: `editor` [INFO] [stdout] --> src/ui/mod.rs:1830:51 [INFO] [stdout] | [INFO] [stdout] 1830 | fn render_help_page(f: &mut Frame, editor: &Editor, area: Rect) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_editor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_line_content` [INFO] [stdout] --> src/editor/mod.rs:2110:25 [INFO] [stdout] | [INFO] [stdout] 2110 | let current_line_content = tab.buffer.get_line(tab.cursor.y).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_line_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_line_idx` [INFO] [stdout] --> src/ui/mod.rs:713:17 [INFO] [stdout] | [INFO] [stdout] 713 | let current_line_idx = start_line + idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 713 | let _current_line_idx = start_line + idx; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_RECENT_FILES` [INFO] [stdout] | [INFO] [stdout] 713 - let current_line_idx = start_line + idx; [INFO] [stdout] 713 + let editor::file_finder::MAX_RECENT_FILES = start_line + idx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `char_pos` is never read [INFO] [stdout] --> src/ui/mod.rs:823:29 [INFO] [stdout] | [INFO] [stdout] 823 | ... char_pos += before_text.len(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `char_pos` is never read [INFO] [stdout] --> src/ui/mod.rs:890:29 [INFO] [stdout] | [INFO] [stdout] 890 | ... char_pos += diagnostic_text.len(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ui/mod.rs:901:29 [INFO] [stdout] | [INFO] [stdout] 901 | let mut char_pos = pos; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EditorCommand` is never used [INFO] [stdout] --> src/editor/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum EditorCommand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `load_file` is never used [INFO] [stdout] --> src/editor/mod.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Tab { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn load_file(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_selected` is never used [INFO] [stdout] --> src/editor/mod.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl TokenSearch { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn get_selected(&self) -> Option<&TokenSearchResult> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/editor/mod.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 315 | impl Editor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 316 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hint` is never constructed [INFO] [stdout] --> src/editor/diagnostics.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum DiagnosticSeverity { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Hint, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticSeverity` 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: method `contains` is never used [INFO] [stdout] --> src/editor/diagnostics.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TextSpan { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn contains(&self, line: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_full_message` is never used [INFO] [stdout] --> src/editor/diagnostics.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Diagnostic { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn format_full_message(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_theme`, `list_themes`, `current_theme`, and `supported_languages` are never used [INFO] [stdout] --> src/editor/syntax.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl SyntaxHighlighter { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_theme(&mut self, theme_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn list_themes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn current_theme(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn supported_languages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cursor_after` is never read [INFO] [stdout] --> src/editor/history.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct EditorAction { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | pub cursor_after: Cursor, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EditorAction` 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: method `clear` is never used [INFO] [stdout] --> src/editor/history.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl History { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/config/mod.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn save(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config_dir` is never used [INFO] [stdout] --> src/config/key_bindings.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn get_config_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load` and `save` are never used [INFO] [stdout] --> src/config/key_bindings.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl KeyBindings { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 223 | pub fn load() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn save(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.05s [INFO] running `Command { std: "docker" "inspect" "a7e7f0a9ee4da5987254941c0d36f2d4af5fa3d973f0d728dc4f91f84a9093b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7e7f0a9ee4da5987254941c0d36f2d4af5fa3d973f0d728dc4f91f84a9093b8", kill_on_drop: false }` [INFO] [stdout] a7e7f0a9ee4da5987254941c0d36f2d4af5fa3d973f0d728dc4f91f84a9093b8