[INFO] fetching crate phantom-editor 0.1.0... [INFO] checking phantom-editor-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate phantom-editor 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate phantom-editor 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate phantom-editor 0.1.0 [INFO] finished tweaking crates.io crate phantom-editor 0.1.0 [INFO] tweaked toml for crates.io crate phantom-editor 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate crates.io crate phantom-editor 0.1.0 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ropey v1.5.0 [INFO] [stderr] Downloaded str_indices v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9bab2f8cf2b159c2056798a9caf535f97e1dbda4fe237e875b33271b1d732904 [INFO] running `Command { std: "docker" "start" "-a" "9bab2f8cf2b159c2056798a9caf535f97e1dbda4fe237e875b33271b1d732904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9bab2f8cf2b159c2056798a9caf535f97e1dbda4fe237e875b33271b1d732904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bab2f8cf2b159c2056798a9caf535f97e1dbda4fe237e875b33271b1d732904", kill_on_drop: false }` [INFO] [stdout] 9bab2f8cf2b159c2056798a9caf535f97e1dbda4fe237e875b33271b1d732904 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0422351b110ca20ecfdc83ba5f94b978cd8a18cb83dbfa734a0376346aed78e [INFO] running `Command { std: "docker" "start" "-a" "f0422351b110ca20ecfdc83ba5f94b978cd8a18cb83dbfa734a0376346aed78e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking str_indices v0.4.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking ropey v1.5.0 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking phantom-editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/log.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Error, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/log.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Error, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/buffer.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | text: Rope, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `line_count`, `insert`, `insert_char`, and `get_idx` are never used [INFO] [stdout] --> src/buffer.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Buffer { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn line_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn insert(&mut self, s: &str, pos: &doc::Position) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn insert_char(&mut self, c: char, pos: &doc::Position) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_idx(&self, pos: &doc::Position) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/document.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 26 | pub row: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | pub col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_name`, `pos`, and `buf` are never read [INFO] [stdout] --> src/document.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Document { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 42 | pub file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pos: Position, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | buf: Buffer, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `queue` and `file` are never read [INFO] [stdout] --> src/log.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 8 | queue: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | file: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_file`, `push`, and `pop` are never used [INFO] [stdout] --> src/log.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Log { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn with_file(&mut self, filename: Option<&str>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn push(&mut self, msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Component` is never constructed [INFO] [stdout] --> src/screen.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum ScreenError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | #[error("Placeholder Err")] [INFO] [stdout] 14 | Component(ComponentError), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScreenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SResult` is never used [INFO] [stdout] --> src/screen.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type SResult = std::result::Result; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw` and `update` are never used [INFO] [stdout] --> src/screen.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Component { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 26 | fn draw(&self) -> CResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn update(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_queue` and `workspaces` are never read [INFO] [stdout] --> src/screen.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Screen { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 35 | event_queue: VecDeque, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | workspaces: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_update` and `update` are never used [INFO] [stdout] --> src/screen.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Screen { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn send_update(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn update(&mut self) -> SResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/screen/draw.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Pane` is never used [INFO] [stdout] --> src/screen/pane.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Pane: Component { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `show` is never used [INFO] [stdout] --> src/screen/status.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | trait Status { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 6 | fn show(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg`, `start`, and `duration` are never read [INFO] [stdout] --> src/screen/status.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct StatusBar { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 14 | msg: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | start: Instant, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | duration: u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_elapsed` are never used [INFO] [stdout] --> src/screen/status.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl StatusBar { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 20 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn is_elapsed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `components` is never read [INFO] [stdout] --> src/screen/workspace.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Workspace { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | // Tree of Components! [INFO] [stdout] 7 | components: BTreeMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_component`, `del_component`, `update`, and `draw` are never used [INFO] [stdout] --> src/screen/workspace.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Workspace { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_component(&mut self, id: u16, component: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn del_component(&mut self, id: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn draw(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/terminal.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | Mouse(e::MouseEvent), [INFO] [stdout] | ----- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 37 | Mouse(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cols` and `rows` are never read [INFO] [stdout] --> src/terminal.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Size { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 43 | cols: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | rows: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Size` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/terminal.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Terminal { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn flush(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn cursor_show(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn cursor_position(&mut self, col: u16, row: u16) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn clear_screen(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn clear_line(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn fg_set(&mut self, rgb: Rgb) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn bg_set(&mut self, rgb: Rgb) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn fg_reset(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn bg_reset(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn size_get(&self) -> &Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn size_set(&mut self, size: Size) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn startup(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn cleanup(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `documents`, `log`, and `screen` are never read [INFO] [stdout] --> src/phantom.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Phantom { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 38 | term: Terminal, [INFO] [stdout] 39 | documents: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | input: Input, [INFO] [stdout] 41 | log: Log, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | screen: Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_screen` is never used [INFO] [stdout] --> src/phantom.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Phantom { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | fn clear_screen(&mut self) -> PResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Mouse` should have a snake case name [INFO] [stdout] --> src/input.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | _Mouse => Ok(Command::default()), [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_mouse` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/buffer.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | text: Rope, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `line_count`, `insert`, `insert_char`, and `get_idx` are never used [INFO] [stdout] --> src/buffer.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Buffer { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn line_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn insert(&mut self, s: &str, pos: &doc::Position) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn insert_char(&mut self, c: char, pos: &doc::Position) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_idx(&self, pos: &doc::Position) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/document.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 26 | pub row: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | pub col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_name`, `pos`, and `buf` are never read [INFO] [stdout] --> src/document.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Document { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 42 | pub file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pos: Position, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | buf: Buffer, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `queue` and `file` are never read [INFO] [stdout] --> src/log.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 8 | queue: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | file: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_file`, `push`, and `pop` are never used [INFO] [stdout] --> src/log.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Log { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn with_file(&mut self, filename: Option<&str>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn push(&mut self, msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Component` is never constructed [INFO] [stdout] --> src/screen.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum ScreenError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | #[error("Placeholder Err")] [INFO] [stdout] 14 | Component(ComponentError), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScreenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SResult` is never used [INFO] [stdout] --> src/screen.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type SResult = std::result::Result; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw` and `update` are never used [INFO] [stdout] --> src/screen.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Component { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 26 | fn draw(&self) -> CResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn update(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_queue` and `workspaces` are never read [INFO] [stdout] --> src/screen.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Screen { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 35 | event_queue: VecDeque, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | workspaces: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_update` and `update` are never used [INFO] [stdout] --> src/screen.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Screen { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn send_update(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn update(&mut self) -> SResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/screen/draw.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Pane` is never used [INFO] [stdout] --> src/screen/pane.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Pane: Component { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `show` is never used [INFO] [stdout] --> src/screen/status.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | trait Status { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 6 | fn show(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg`, `start`, and `duration` are never read [INFO] [stdout] --> src/screen/status.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct StatusBar { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 14 | msg: Option>, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | start: Instant, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | duration: u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_elapsed` are never used [INFO] [stdout] --> src/screen/status.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl StatusBar { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 20 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn is_elapsed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `components` is never read [INFO] [stdout] --> src/screen/workspace.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Workspace { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | // Tree of Components! [INFO] [stdout] 7 | components: BTreeMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_component`, `del_component`, `update`, and `draw` are never used [INFO] [stdout] --> src/screen/workspace.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Workspace { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_component(&mut self, id: u16, component: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn del_component(&mut self, id: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn draw(&mut self) -> CResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/terminal.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | Mouse(e::MouseEvent), [INFO] [stdout] | ----- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 37 | Mouse(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cols` and `rows` are never read [INFO] [stdout] --> src/terminal.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Size { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 43 | cols: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | rows: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Size` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/terminal.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Terminal { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn flush(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn cursor_show(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn cursor_position(&mut self, col: u16, row: u16) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn clear_screen(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn clear_line(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn fg_set(&mut self, rgb: Rgb) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn bg_set(&mut self, rgb: Rgb) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn fg_reset(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn bg_reset(&mut self) -> Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn size_get(&self) -> &Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn size_set(&mut self, size: Size) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn startup(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn cleanup(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `documents`, `log`, and `screen` are never read [INFO] [stdout] --> src/phantom.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Phantom { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 38 | term: Terminal, [INFO] [stdout] 39 | documents: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | input: Input, [INFO] [stdout] 41 | log: Log, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | screen: Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_screen` is never used [INFO] [stdout] --> src/phantom.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Phantom { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | fn clear_screen(&mut self) -> PResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Mouse` should have a snake case name [INFO] [stdout] --> src/input.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | _Mouse => Ok(Command::default()), [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_mouse` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.90s [INFO] running `Command { std: "docker" "inspect" "f0422351b110ca20ecfdc83ba5f94b978cd8a18cb83dbfa734a0376346aed78e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0422351b110ca20ecfdc83ba5f94b978cd8a18cb83dbfa734a0376346aed78e", kill_on_drop: false }` [INFO] [stdout] f0422351b110ca20ecfdc83ba5f94b978cd8a18cb83dbfa734a0376346aed78e