[INFO] cloning repository https://github.com/mttchpmn/bolt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mttchpmn/bolt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmttchpmn%2Fbolt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmttchpmn%2Fbolt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45707a06bd201a6a11308a0ee64ed5eb66ce4acb [INFO] checking mttchpmn/bolt against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmttchpmn%2Fbolt" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mttchpmn/bolt on toolchain 8424f8e8cdf07010967a57584fd647b30e930d4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mttchpmn/bolt [INFO] finished tweaking git repo https://github.com/mttchpmn/bolt [INFO] tweaked toml for git repo https://github.com/mttchpmn/bolt written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mttchpmn/bolt 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" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.114 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72661a1f84e10f09c6b085cc3e1f50497bc388b24b5ded5d9441fd73ef0c78d6 [INFO] running `Command { std: "docker" "start" "-a" "72661a1f84e10f09c6b085cc3e1f50497bc388b24b5ded5d9441fd73ef0c78d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72661a1f84e10f09c6b085cc3e1f50497bc388b24b5ded5d9441fd73ef0c78d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72661a1f84e10f09c6b085cc3e1f50497bc388b24b5ded5d9441fd73ef0c78d6", kill_on_drop: false }` [INFO] [stdout] 72661a1f84e10f09c6b085cc3e1f50497bc388b24b5ded5d9441fd73ef0c78d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1b542ca45819a3c670e508c317a8a30ffc21cb4eb54802babb48e370d3b43ab [INFO] running `Command { std: "docker" "start" "-a" "a1b542ca45819a3c670e508c317a8a30ffc21cb4eb54802babb48e370d3b43ab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.114 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking unicode-segmentation v1.8.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking serde v1.0.136 [INFO] [stderr] Checking bolt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `line_number` [INFO] [stdout] --> src/editor.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let line_number = if index < 10 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_number` [INFO] [stdout] --> src/editor.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let line_number = if index < 10 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | let mut offset = &mut self.offset; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | let mut offset = &mut self.offset; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STATUS_FG_COLOR: color::Rgb = color::Rgb(50, 50, 50); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_BG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STATUS_BG_COLOR: color::Rgb = color::Rgb(239, 239, 239); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NUMBER_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LINE_NUMBER_FG_COLOR: color::Rgb = color::Rgb(120, 120, 120); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_quit` is never used [INFO] [stdout] --> src/editor.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl<'a> Editor<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn handle_quit(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `logger` is never read [INFO] [stdout] --> src/terminal.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Terminal<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | size: Size, [INFO] [stdout] 18 | logger: &'a Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STATUS_FG_COLOR: color::Rgb = color::Rgb(50, 50, 50); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_BG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STATUS_BG_COLOR: color::Rgb = color::Rgb(239, 239, 239); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NUMBER_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LINE_NUMBER_FG_COLOR: color::Rgb = color::Rgb(120, 120, 120); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_quit` is never used [INFO] [stdout] --> src/editor.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl<'a> Editor<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn handle_quit(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `logger` is never read [INFO] [stdout] --> src/terminal.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Terminal<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | size: Size, [INFO] [stdout] 18 | logger: &'a Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/document.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | file.write_all(b"\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.write_all(b"\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/document.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | file.write_all(b"\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.write_all(b"\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.25s [INFO] running `Command { std: "docker" "inspect" "a1b542ca45819a3c670e508c317a8a30ffc21cb4eb54802babb48e370d3b43ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1b542ca45819a3c670e508c317a8a30ffc21cb4eb54802babb48e370d3b43ab", kill_on_drop: false }` [INFO] [stdout] a1b542ca45819a3c670e508c317a8a30ffc21cb4eb54802babb48e370d3b43ab [INFO] checking mttchpmn/bolt against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmttchpmn%2Fbolt" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mttchpmn/bolt on toolchain 047472f299946caf090d1b5608ae4bd9f0416256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mttchpmn/bolt [INFO] finished tweaking git repo https://github.com/mttchpmn/bolt [INFO] tweaked toml for git repo https://github.com/mttchpmn/bolt written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mttchpmn/bolt 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" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adb3aada634e99872b3bec1963bdb35081132dc087bfabb25a9e5c387db78045 [INFO] running `Command { std: "docker" "start" "-a" "adb3aada634e99872b3bec1963bdb35081132dc087bfabb25a9e5c387db78045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adb3aada634e99872b3bec1963bdb35081132dc087bfabb25a9e5c387db78045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adb3aada634e99872b3bec1963bdb35081132dc087bfabb25a9e5c387db78045", kill_on_drop: false }` [INFO] [stdout] adb3aada634e99872b3bec1963bdb35081132dc087bfabb25a9e5c387db78045 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Ddereferencing_mut_binding" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9450cf8495740e9c0367f26d71277b77a571e8687c3448e114c5b66e5d25a72c [INFO] running `Command { std: "docker" "start" "-a" "9450cf8495740e9c0367f26d71277b77a571e8687c3448e114c5b66e5d25a72c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libc v0.2.114 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking unicode-segmentation v1.8.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking serde v1.0.136 [INFO] [stderr] Checking bolt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/terminal.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/terminal.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | let Position { mut x, mut y } = &position; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_number` [INFO] [stdout] --> src/editor.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let line_number = if index < 10 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_number` [INFO] [stdout] --> src/editor.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let line_number = if index < 10 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | let mut offset = &mut self.offset; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | let mut offset = &mut self.offset; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STATUS_FG_COLOR: color::Rgb = color::Rgb(50, 50, 50); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_BG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STATUS_BG_COLOR: color::Rgb = color::Rgb(239, 239, 239); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NUMBER_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LINE_NUMBER_FG_COLOR: color::Rgb = color::Rgb(120, 120, 120); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_quit` is never used [INFO] [stdout] --> src/editor.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl<'a> Editor<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn handle_quit(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `logger` is never read [INFO] [stdout] --> src/terminal.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Terminal<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | size: Size, [INFO] [stdout] 18 | logger: &'a Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STATUS_FG_COLOR: color::Rgb = color::Rgb(50, 50, 50); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_BG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const STATUS_BG_COLOR: color::Rgb = color::Rgb(239, 239, 239); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_NUMBER_FG_COLOR` is never used [INFO] [stdout] --> src/editor.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LINE_NUMBER_FG_COLOR: color::Rgb = color::Rgb(120, 120, 120); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_quit` is never used [INFO] [stdout] --> src/editor.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl<'a> Editor<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn handle_quit(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `logger` is never read [INFO] [stdout] --> src/terminal.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Terminal<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | size: Size, [INFO] [stdout] 18 | logger: &'a Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/document.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | file.write_all(b"\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.write_all(b"\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/document.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | file.write_all(b"\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.write_all(b"\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bolt` (bin "bolt") due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bolt` (bin "bolt" test) due to 3 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9450cf8495740e9c0367f26d71277b77a571e8687c3448e114c5b66e5d25a72c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9450cf8495740e9c0367f26d71277b77a571e8687c3448e114c5b66e5d25a72c", kill_on_drop: false }` [INFO] [stdout] 9450cf8495740e9c0367f26d71277b77a571e8687c3448e114c5b66e5d25a72c