[INFO] cloning repository https://github.com/jason1105/rust_texteditor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jason1105/rust_texteditor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjason1105%2Frust_texteditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjason1105%2Frust_texteditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6abf20b40ad93afa4b2ecc8ebb97b82b7bb9c500 [INFO] checking jason1105/rust_texteditor against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjason1105%2Frust_texteditor" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jason1105/rust_texteditor on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jason1105/rust_texteditor [INFO] finished tweaking git repo https://github.com/jason1105/rust_texteditor [INFO] tweaked toml for git repo https://github.com/jason1105/rust_texteditor written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jason1105/rust_texteditor 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35b35239a1e8a396e492a0d5216ffb84bfe97d14a0bd02935c25888727172790 [INFO] running `Command { std: "docker" "start" "-a" "35b35239a1e8a396e492a0d5216ffb84bfe97d14a0bd02935c25888727172790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35b35239a1e8a396e492a0d5216ffb84bfe97d14a0bd02935c25888727172790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35b35239a1e8a396e492a0d5216ffb84bfe97d14a0bd02935c25888727172790", kill_on_drop: false }` [INFO] [stdout] 35b35239a1e8a396e492a0d5216ffb84bfe97d14a0bd02935c25888727172790 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fc8958be635f54081da55325740d12c3312fcce961e46de601fd52f8323b7a6 [INFO] running `Command { std: "docker" "start" "-a" "0fc8958be635f54081da55325740d12c3312fcce961e46de601fd52f8323b7a6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling signal-hook v0.3.13 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking signal-hook-mio v0.2.1 [INFO] [stderr] Checking crossterm v0.21.0 [INFO] [stderr] Checking rust_texteditor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::editor::output::EditorRows` [INFO] [stdout] --> src/editor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::editor::output::EditorRows; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/editor/output.rs:689:1 [INFO] [stdout] | [INFO] [stdout] 689 | /// 这个宏的作用是将一些数据转换成一个结构体, 虽然传入宏的参数看起来像结构体, 但并不是结构体. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/editor/output.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/editor/output.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/editor/output.rs:708:11 [INFO] [stdout] | [INFO] [stdout] 708 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::reader::Reader` [INFO] [stdout] --> src/editor/output.rs:739:5 [INFO] [stdout] | [INFO] [stdout] 739 | use super::reader::Reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyEvent` and `KeyModifiers` [INFO] [stdout] --> src/editor/output.rs:740:24 [INFO] [stdout] | [INFO] [stdout] 740 | use crossterm::event::{KeyEvent, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log_print` [INFO] [stdout] --> src/editor/output.rs:773:5 [INFO] [stdout] | [INFO] [stdout] 773 | use crate::log_print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::output::Row` [INFO] [stdout] --> src/editor.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | use crate::editor::output::Row; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::output::EditorRows` [INFO] [stdout] --> src/editor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::editor::output::EditorRows; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/editor/output.rs:689:1 [INFO] [stdout] | [INFO] [stdout] 689 | /// 这个宏的作用是将一些数据转换成一个结构体, 虽然传入宏的参数看起来像结构体, 但并不是结构体. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/editor/output.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/editor/output.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/editor/output.rs:708:11 [INFO] [stdout] | [INFO] [stdout] 708 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::reader::Reader` [INFO] [stdout] --> src/editor/output.rs:739:5 [INFO] [stdout] | [INFO] [stdout] 739 | use super::reader::Reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyEvent` and `KeyModifiers` [INFO] [stdout] --> src/editor/output.rs:740:24 [INFO] [stdout] | [INFO] [stdout] 740 | use crossterm::event::{KeyEvent, KeyModifiers}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log_print` [INFO] [stdout] --> src/editor/output.rs:773:5 [INFO] [stdout] | [INFO] [stdout] 773 | use crate::log_print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::output::Row` [INFO] [stdout] --> src/editor.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | use crate::editor::output::Row; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::output::SyntaxHighlight` [INFO] [stdout] --> src/editor.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | use crate::editor::output::SyntaxHighlight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/editor/output.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::output::SyntaxHighlight` [INFO] [stdout] --> src/editor.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | use crate::editor::output::SyntaxHighlight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/editor/output.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_render` is never used [INFO] [stdout] --> src/editor/output.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 166 | impl EditorRows { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | fn get_render(&self, at: usize) -> &String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/editor/output.rs:668:6 [INFO] [stdout] | [INFO] [stdout] 668 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file` is never read [INFO] [stdout] --> src/editor/output.rs:754:5 [INFO] [stdout] | [INFO] [stdout] 753 | struct Log { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 754 | file: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/editor/output.rs:766:8 [INFO] [stdout] | [INFO] [stdout] 757 | impl Log { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 766 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/editor.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | self.output.find(); [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] 133 | let _ = self.output.find(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_render` is never used [INFO] [stdout] --> src/editor/output.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 166 | impl EditorRows { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | fn get_render(&self, at: usize) -> &String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/editor/output.rs:668:6 [INFO] [stdout] | [INFO] [stdout] 668 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file` is never read [INFO] [stdout] --> src/editor/output.rs:754:5 [INFO] [stdout] | [INFO] [stdout] 753 | struct Log { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 754 | file: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/editor/output.rs:766:8 [INFO] [stdout] | [INFO] [stdout] 757 | impl Log { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 766 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/editor.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | self.output.find(); [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] 133 | let _ = self.output.find(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "0fc8958be635f54081da55325740d12c3312fcce961e46de601fd52f8323b7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fc8958be635f54081da55325740d12c3312fcce961e46de601fd52f8323b7a6", kill_on_drop: false }` [INFO] [stdout] 0fc8958be635f54081da55325740d12c3312fcce961e46de601fd52f8323b7a6