[INFO] cloning repository https://github.com/shuliaka95/text-editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shuliaka95/text-editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuliaka95%2Ftext-editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuliaka95%2Ftext-editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6491d527866f60efba4949d2657511ca2c164290 [INFO] checking shuliaka95/text-editor against try#6284d7b4bd27983dba388146648ab844ca7d032f for pr-152971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuliaka95%2Ftext-editor" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shuliaka95/text-editor [INFO] finished tweaking git repo https://github.com/shuliaka95/text-editor [INFO] tweaked toml for git repo https://github.com/shuliaka95/text-editor written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shuliaka95/text-editor on toolchain 6284d7b4bd27983dba388146648ab844ca7d032f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shuliaka95/text-editor 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" "+6284d7b4bd27983dba388146648ab844ca7d032f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.8.20 [INFO] [stderr] Downloaded winnow v0.7.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94ada1b2cd8b63385d48f2b4b8ad24fc678ee40cb2d866e1d9bcd24b51b73e34 [INFO] running `Command { std: "docker" "start" "-a" "94ada1b2cd8b63385d48f2b4b8ad24fc678ee40cb2d866e1d9bcd24b51b73e34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94ada1b2cd8b63385d48f2b4b8ad24fc678ee40cb2d866e1d9bcd24b51b73e34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94ada1b2cd8b63385d48f2b4b8ad24fc678ee40cb2d866e1d9bcd24b51b73e34", kill_on_drop: false }` [INFO] [stdout] 94ada1b2cd8b63385d48f2b4b8ad24fc678ee40cb2d866e1d9bcd24b51b73e34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c825d9079103b197bf2012a50fc826dc71d490a413438e9d265e0dbf7ed9d9a [INFO] running `Command { std: "docker" "start" "-a" "2c825d9079103b197bf2012a50fc826dc71d490a413438e9d265e0dbf7ed9d9a", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking waker-fn v1.2.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling cfg-expr v0.15.8 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling rfd v0.11.4 [INFO] [stderr] Checking emath v0.24.1 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking ecolor v0.24.1 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking epaint v0.24.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking egui v0.24.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling system-deps v6.2.2 [INFO] [stderr] Compiling glib-sys v0.16.3 [INFO] [stderr] Compiling gobject-sys v0.16.3 [INFO] [stderr] Compiling gdk-sys v0.16.0 [INFO] [stderr] Compiling atk-sys v0.16.0 [INFO] [stderr] Compiling gio-sys v0.16.3 [INFO] [stderr] Compiling pango-sys v0.16.3 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.16.3 [INFO] [stderr] Compiling cairo-sys-rs v0.16.3 [INFO] [stderr] Compiling gtk-sys v0.16.0 [INFO] [stderr] Checking simple-text-editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:72:46 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:81:57 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CentralPanel`, `TopBottomPanel`, and `Window` [INFO] [stdout] --> src/ui/window.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use egui::{CentralPanel, Context, TopBottomPanel, Window}; [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 imports: `Button`, `Color32`, `Label`, and `RichText` [INFO] [stdout] --> src/ui/widgets.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use egui::{Color32, RichText, Ui, Button, Label}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:72:46 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:81:57 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `BufferState` is defined here [INFO] [stdout] --> src/editor/commands.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CentralPanel`, `TopBottomPanel`, and `Window` [INFO] [stdout] --> src/ui/window.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use egui::{CentralPanel, Context, TopBottomPanel, Window}; [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 imports: `Button`, `Color32`, `Label`, and `RichText` [INFO] [stdout] --> src/ui/widgets.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use egui::{Color32, RichText, Ui, Button, Label}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `save_buffer_state` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `save_buffer_state` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ---------------------------------------------------- other definition for `save_buffer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `restore_buffer_state` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `restore_buffer_state` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ------------------------------------------------------------------------------ other definition for `restore_buffer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_clipboard` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `set_clipboard` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ----------------------------------------- other definition for `set_clipboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_clipboard` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `get_clipboard` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ----------------------------------------- other definition for `get_clipboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `save_buffer_state` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `save_buffer_state` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ---------------------------------------------------- other definition for `save_buffer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `restore_buffer_state` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `restore_buffer_state` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ------------------------------------------------------------------------------ other definition for `restore_buffer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_clipboard` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `set_clipboard` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ----------------------------------------- other definition for `set_clipboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_clipboard` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `get_clipboard` [INFO] [stdout] | [INFO] [stdout] ::: src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ----------------------------------------- other definition for `get_clipboard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:85:42 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(text) = self.get_clipboard() { [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `get_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:179:22 [INFO] [stdout] | [INFO] [stdout] 179 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:191:38 [INFO] [stdout] | [INFO] [stdout] 191 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:218:30 [INFO] [stdout] | [INFO] [stdout] 218 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:229:30 [INFO] [stdout] | [INFO] [stdout] 229 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:237:46 [INFO] [stdout] | [INFO] [stdout] 237 | if let Some(text) = self.get_clipboard() { [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `get_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 255 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:85:42 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(text) = self.get_clipboard() { [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `get_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:179:22 [INFO] [stdout] | [INFO] [stdout] 179 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:191:38 [INFO] [stdout] | [INFO] [stdout] 191 | let current_state = self.save_buffer_state(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ multiple `save_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn save_buffer_state(&self) -> commands::BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | fn save_buffer_state(&self) -> BufferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:218:30 [INFO] [stdout] | [INFO] [stdout] 218 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:229:30 [INFO] [stdout] | [INFO] [stdout] 229 | self.set_clipboard(text); [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `set_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_clipboard(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:237:46 [INFO] [stdout] | [INFO] [stdout] 237 | if let Some(text) = self.get_clipboard() { [INFO] [stdout] | ^^^^^^^^^^^^^ multiple `get_clipboard` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_clipboard(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/editor/commands.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 255 | self.restore_buffer_state(current_state)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ multiple `restore_buffer_state` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn restore_buffer_state(&mut self, state: commands::BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Editor` [INFO] [stdout] --> src/editor/commands.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | fn restore_buffer_state(&mut self, state: BufferState) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 83 | self.buffer.clear()?; [INFO] [stdout] | -------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `lines` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | for line in state.lines { [INFO] [stdout] | ^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | self.buffer.append_line(line)?; [INFO] [stdout] | -----------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `cursor` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 91 | self.buffer.set_cursor_position(state.cursor)?; [INFO] [stdout] | ^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:91:54 [INFO] [stdout] | [INFO] [stdout] 91 | self.buffer.set_cursor_position(state.cursor)?; [INFO] [stdout] | ---------------------------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `selection` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some((start, end)) = state.selection { [INFO] [stdout] | ^^^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | self.buffer.set_selection(start, end)?; [INFO] [stdout] | -------------------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 83 | self.buffer.clear()?; [INFO] [stdout] | -------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `lines` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | for line in state.lines { [INFO] [stdout] | ^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | self.buffer.append_line(line)?; [INFO] [stdout] | -----------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `cursor` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 91 | self.buffer.set_cursor_position(state.cursor)?; [INFO] [stdout] | ^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:91:54 [INFO] [stdout] | [INFO] [stdout] 91 | self.buffer.set_cursor_position(state.cursor)?; [INFO] [stdout] | ---------------------------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `selection` of struct `BufferState` is private [INFO] [stdout] --> src/editor/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some((start, end)) = state.selection { [INFO] [stdout] | ^^^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error: `String: std::error::Error` is not satisfied [INFO] [stdout] --> src/editor/mod.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | self.buffer.set_selection(start, end)?; [INFO] [stdout] | -------------------------^ the trait `std::error::Error` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | this has type `Result<_, String>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required for `anyhow::Error` to implement `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn get_text(&self) -> Result { [INFO] [stdout] | -------------- expected `Result` because of return type [INFO] [stdout] 103 | self.buffer.get_text() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn set_text(&mut self, text: String) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 108 | self.buffer.set_text(text) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn set_cursor_position(&mut self, position: Position) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 118 | self.buffer.set_cursor_position(position) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn get_text(&self) -> Result { [INFO] [stdout] | -------------- expected `Result` because of return type [INFO] [stdout] 103 | self.buffer.get_text() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn set_text(&mut self, text: String) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 108 | self.buffer.set_text(text) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn set_cursor_position(&mut self, position: Position) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 118 | self.buffer.set_cursor_position(position) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn set_selection(&mut self, start: Position, end: Position) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 128 | self.buffer.set_selection(start, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn set_selection(&mut self, start: Position, end: Position) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 128 | self.buffer.set_selection(start, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn clear_selection(&mut self) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 133 | self.buffer.clear_selection() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/editor/mod.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn clear_selection(&mut self) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<(), anyhow::Error>` because of return type [INFO] [stdout] 133 | self.buffer.clear_selection() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), String>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, anyhow::Error>` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/ui/window.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw_menu(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/ui/window.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn draw_editor(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/ui/window.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw_menu(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/ui/widgets.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn draw(&self, ui: &mut Ui) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/ui/window.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn draw_editor(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/ui/widgets.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn draw(&self, ui: &mut Ui) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/ui/widgets.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn draw(&self, ui: &mut Ui) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/ui/widgets.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn draw(&self, ui: &mut Ui) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/utils/file.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn open_file(&mut self, path: &PathBuf) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/utils/file.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn save_file(&self, path: &PathBuf, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/utils/file.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn save_file(&self, path: &PathBuf, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/utils/file.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn open_file(&mut self, path: &PathBuf) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/utils/file.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn save_file(&self, path: &PathBuf, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/utils/file.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn save_file(&self, path: &PathBuf, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0277, E0308, E0592, E0603, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0277, E0308, E0592, E0603, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-text-editor` (bin "simple-text-editor") due to 31 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `simple-text-editor` (bin "simple-text-editor" test) due to 31 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2c825d9079103b197bf2012a50fc826dc71d490a413438e9d265e0dbf7ed9d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c825d9079103b197bf2012a50fc826dc71d490a413438e9d265e0dbf7ed9d9a", kill_on_drop: false }` [INFO] [stdout] 2c825d9079103b197bf2012a50fc826dc71d490a413438e9d265e0dbf7ed9d9a