[INFO] cloning repository https://github.com/RhythmDeolus/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/RhythmDeolus/text-editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRhythmDeolus%2Ftext-editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRhythmDeolus%2Ftext-editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d743fa041d4ca628de7ac83d3f9896a3493381a3 [INFO] checking RhythmDeolus/text-editor against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRhythmDeolus%2Ftext-editor" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RhythmDeolus/text-editor [INFO] finished tweaking git repo https://github.com/RhythmDeolus/text-editor [INFO] tweaked toml for git repo https://github.com/RhythmDeolus/text-editor written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RhythmDeolus/text-editor on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RhythmDeolus/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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c27faf7a0a9a514a187b690920ba0c10489150c4860e7cb73bd3c95e7aae0c38 [INFO] running `Command { std: "docker" "start" "-a" "c27faf7a0a9a514a187b690920ba0c10489150c4860e7cb73bd3c95e7aae0c38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c27faf7a0a9a514a187b690920ba0c10489150c4860e7cb73bd3c95e7aae0c38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27faf7a0a9a514a187b690920ba0c10489150c4860e7cb73bd3c95e7aae0c38", kill_on_drop: false }` [INFO] [stdout] c27faf7a0a9a514a187b690920ba0c10489150c4860e7cb73bd3c95e7aae0c38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d4a3ad0cd166adb4805929e9528262a1d544f0b09b7b8665ef0dcf3af410576 [INFO] running `Command { std: "docker" "start" "-a" "8d4a3ad0cd166adb4805929e9528262a1d544f0b09b7b8665ef0dcf3af410576", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking my-editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `at` is never read [INFO] [stdout] --> src/editor/buff.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let mut at = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 96 | at = old_size; [INFO] [stdout] | ------------- `at` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Editor` is never constructed [INFO] [stdout] --> src/editor/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Editor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tab` and `CommandBuffer` are never constructed [INFO] [stdout] --> src/editor/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum HybridTab { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 13 | Tab(Weak), [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | CommandBuffer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffers`, `tabs`, `command_buffer`, and `focused_tab` are never read [INFO] [stdout] --> src/editor/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Editor { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | buffers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | tabs: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | command_buffer: CommandBuffer, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | focused_tab: HybridTab, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my-editor` (lib) due to 1 previous error; 13 warnings emitted [INFO] [stdout] warning: constant `MIN_SEQ_SIZE` is never used [INFO] [stdout] --> src/editor/buff.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MIN_SEQ_SIZE: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: constant `MAX_SEQ_SIZE` is never used [INFO] [stdout] --> src/editor/buff.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const MAX_SEQ_SIZE: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Original` and `Added` are never constructed [INFO] [stdout] --> src/editor/buff.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AddressType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Original, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | Added, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AddressType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal` and `Insert` are never constructed [INFO] [stdout] --> src/editor/buff.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 15 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | Insert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `address_type`, `length`, and `total_length` are never read [INFO] [stdout] --> src/editor/buff.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Seq { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 22 | pub address: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub address_type: AddressType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | pub length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | pub total_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Seq` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/editor/buff.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Buffer { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 29 | pub orig_data: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub file: File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub cursor: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | pub add_data: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | pub seq: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | pub size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/editor/buff.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Buffer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 39 | pub fn open(file_name: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn get_file_create(file_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn save_buffer_as(&mut self, file_name: &str) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_window(&self, mut start: usize, end: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn move_cursor_to(&mut self, to: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn get_seq(&self, at: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn delete_n_bytes_from(&mut self, mut n: usize, mut from: usize) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `bread_crumbs`, `height`, `width`, and `mode` are never read [INFO] [stdout] --> src/editor/window.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Window { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | buffer: Weak, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | bread_crumbs: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | height: f32, // from 0 to 1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | width: f32, // from 0 to 1 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `windows`, and `focused_window` are never read [INFO] [stdout] --> src/editor/tab.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tab { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | windows: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | focused_window: Weak, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/editor/command_buffer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CommandBuffer { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 4 | buffer: Buffer, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `at` is never read [INFO] [stdout] --> src/editor/buff.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let mut at = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 96 | at = old_size; [INFO] [stdout] | ------------- `at` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Editor` is never constructed [INFO] [stdout] --> src/editor/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Editor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tab` and `CommandBuffer` are never constructed [INFO] [stdout] --> src/editor/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum HybridTab { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 13 | Tab(Weak), [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | CommandBuffer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffers`, `tabs`, `command_buffer`, and `focused_tab` are never read [INFO] [stdout] --> src/editor/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Editor { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | buffers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | tabs: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | command_buffer: CommandBuffer, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | focused_tab: HybridTab, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal` and `Insert` are never constructed [INFO] [stdout] --> src/editor/buff.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 15 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | Insert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `bread_crumbs`, `height`, `width`, and `mode` are never read [INFO] [stdout] --> src/editor/window.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Window { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | buffer: Weak, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | bread_crumbs: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | height: f32, // from 0 to 1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | width: f32, // from 0 to 1 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `windows`, and `focused_window` are never read [INFO] [stdout] --> src/editor/tab.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tab { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | windows: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | focused_window: Weak, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/editor/command_buffer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CommandBuffer { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 4 | buffer: Buffer, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my-editor` (lib test) due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8d4a3ad0cd166adb4805929e9528262a1d544f0b09b7b8665ef0dcf3af410576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d4a3ad0cd166adb4805929e9528262a1d544f0b09b7b8665ef0dcf3af410576", kill_on_drop: false }` [INFO] [stdout] 8d4a3ad0cd166adb4805929e9528262a1d544f0b09b7b8665ef0dcf3af410576