[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] 3aefbb3dfb5528a01fffdc9719b7bee70ddbe621 [INFO] testing jason1105/rust_texteditor against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjason1105%2Frust_texteditor" "/workspace/builds/worker-54/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-54/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jason1105/rust_texteditor on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-54/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: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 189966cf81da2f81d0928f1d62e8b70a9bc297bd2627b89a52e0345c9a161b3d [INFO] running `Command { std: "docker" "start" "-a" "189966cf81da2f81d0928f1d62e8b70a9bc297bd2627b89a52e0345c9a161b3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "189966cf81da2f81d0928f1d62e8b70a9bc297bd2627b89a52e0345c9a161b3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "189966cf81da2f81d0928f1d62e8b70a9bc297bd2627b89a52e0345c9a161b3d", kill_on_drop: false }` [INFO] [stdout] 189966cf81da2f81d0928f1d62e8b70a9bc297bd2627b89a52e0345c9a161b3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed41aa81ad29f8fe136b690f38289999c1900b7d07deb67df37d9375a9731e4e [INFO] running `Command { std: "docker" "start" "-a" "ed41aa81ad29f8fe136b690f38289999c1900b7d07deb67df37d9375a9731e4e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling signal-hook v0.3.13 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling signal-hook-mio v0.2.1 [INFO] [stderr] Compiling crossterm v0.21.0 [INFO] [stderr] Compiling 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:676:1 [INFO] [stdout] | [INFO] [stdout] 676 | /// 这个宏的作用是将一些数据转换成一个结构体, 虽然传入宏的参数看起来像结构体, 但并不是结构体. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/editor/output.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | path::{Path, PathBuf}, [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: `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 variable: `in_word` [INFO] [stdout] --> src/editor/output.rs:765:25 [INFO] [stdout] | [INFO] [stdout] 677 | / syntax_struct! { [INFO] [stdout] 678 | | struct RustHighlight { [INFO] [stdout] 679 | | // 可能有多个扩展名 [INFO] [stdout] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stdout] 681 | | } [INFO] [stdout] 682 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 765 | let mut in_word = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor/output.rs:765:21 [INFO] [stdout] | [INFO] [stdout] 677 | / syntax_struct! { [INFO] [stdout] 678 | | struct RustHighlight { [INFO] [stdout] 679 | | // 可能有多个扩展名 [INFO] [stdout] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stdout] 681 | | } [INFO] [stdout] 682 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 765 | let mut in_word = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_render` [INFO] [stdout] --> src/editor/output.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | 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 is never used: `Direction` [INFO] [stdout] --> src/editor/output.rs:667:6 [INFO] [stdout] | [INFO] [stdout] 667 | enum Direction { [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.88s [INFO] running `Command { std: "docker" "inspect" "ed41aa81ad29f8fe136b690f38289999c1900b7d07deb67df37d9375a9731e4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed41aa81ad29f8fe136b690f38289999c1900b7d07deb67df37d9375a9731e4e", kill_on_drop: false }` [INFO] [stdout] ed41aa81ad29f8fe136b690f38289999c1900b7d07deb67df37d9375a9731e4e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 066e2e76aef9de10dec9e9a11a12edc0eda44137bda3ee64d562eb5fb4a4fb77 [INFO] running `Command { std: "docker" "start" "-a" "066e2e76aef9de10dec9e9a11a12edc0eda44137bda3ee64d562eb5fb4a4fb77", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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:676:1 [INFO] [stdout] | [INFO] [stdout] 676 | /// 这个宏的作用是将一些数据转换成一个结构体, 虽然传入宏的参数看起来像结构体, 但并不是结构体. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/editor/output.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | path::{Path, PathBuf}, [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: `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 variable: `in_word` [INFO] [stdout] --> src/editor/output.rs:765:25 [INFO] [stdout] | [INFO] [stdout] 677 | / syntax_struct! { [INFO] [stdout] 678 | | struct RustHighlight { [INFO] [stdout] 679 | | // 可能有多个扩展名 [INFO] [stdout] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stdout] 681 | | } [INFO] [stdout] 682 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 765 | let mut in_word = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor/output.rs:765:21 [INFO] [stdout] | [INFO] [stdout] 677 | / syntax_struct! { [INFO] [stdout] 678 | | struct RustHighlight { [INFO] [stdout] 679 | | // 可能有多个扩展名 [INFO] [stdout] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stdout] 681 | | } [INFO] [stdout] 682 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 765 | let mut in_word = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_render` [INFO] [stdout] --> src/editor/output.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | 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 is never used: `Direction` [INFO] [stdout] --> src/editor/output.rs:667:6 [INFO] [stdout] | [INFO] [stdout] 667 | enum Direction { [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 32.38s [INFO] running `Command { std: "docker" "inspect" "066e2e76aef9de10dec9e9a11a12edc0eda44137bda3ee64d562eb5fb4a4fb77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "066e2e76aef9de10dec9e9a11a12edc0eda44137bda3ee64d562eb5fb4a4fb77", kill_on_drop: false }` [INFO] [stdout] 066e2e76aef9de10dec9e9a11a12edc0eda44137bda3ee64d562eb5fb4a4fb77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ec821250fe369cd625747b43a80367ded8cddaa7a3487d277b06bf22a49644ec [INFO] running `Command { std: "docker" "start" "-a" "ec821250fe369cd625747b43a80367ded8cddaa7a3487d277b06bf22a49644ec", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] [INFO] [stderr] warning: unused import: `crate::editor::output::EditorRows` [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/editor.rs:5:5 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 5 | use crate::editor::output::EditorRows; [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/editor/output.rs:676:1 [INFO] [stderr] | [INFO] [stderr] 676 | /// 这个宏的作用是将一些数据转换成一个结构体, 虽然传入宏的参数看起来像结构体, 但并不是结构体. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused import: `Path` [INFO] [stderr] --> src/editor/output.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | path::{Path, PathBuf}, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::editor::output::Row` [INFO] [stderr] --> src/editor.rs:102:29 [INFO] [stderr] | [INFO] [stderr] 102 | use crate::editor::output::Row; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `itertools::Itertools` [INFO] [stderr] --> src/editor/output.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use itertools::Itertools; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::editor::output::SyntaxHighlight` [INFO] [stderr] --> src/editor.rs:91:25 [INFO] [stderr] | [INFO] [stderr] 91 | use crate::editor::output::SyntaxHighlight; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `in_word` [INFO] [stderr] --> src/editor/output.rs:765:25 [INFO] [stderr] | [INFO] [stderr] 677 | / syntax_struct! { [INFO] [stderr] 678 | | struct RustHighlight { [INFO] [stderr] 679 | | // 可能有多个扩展名 [INFO] [stderr] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stderr] 681 | | } [INFO] [stderr] 682 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 765 | let mut in_word = false; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_word` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/editor/output.rs:765:21 [INFO] [stderr] | [INFO] [stderr] 677 | / syntax_struct! { [INFO] [stderr] 678 | | struct RustHighlight { [INFO] [stderr] 679 | | // 可能有多个扩展名 [INFO] [stderr] 680 | | extensions: ["rs", "rust"] // invalid syntax, but it's ok in macro invocation, as we could fix it in macro implementation. [INFO] [stderr] 681 | | } [INFO] [stderr] 682 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 765 | let mut in_word = false; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] = note: this warning originates in the macro `syntax_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_render` [INFO] [stderr] --> src/editor/output.rs:207:8 [INFO] [stderr] | [INFO] [stderr] 207 | fn get_render(&self, at: usize) -> &String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `Direction` [INFO] [stderr] --> src/editor/output.rs:667:6 [INFO] [stderr] | [INFO] [stderr] 667 | enum Direction { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/editor.rs:133:21 [INFO] [stderr] | [INFO] [stderr] 133 | self.output.find(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `rust_texteditor` (bin "rust_texteditor" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.42s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_texteditor-58ff80d3e9ae3f1f) [INFO] running `Command { std: "docker" "inspect" "ec821250fe369cd625747b43a80367ded8cddaa7a3487d277b06bf22a49644ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec821250fe369cd625747b43a80367ded8cddaa7a3487d277b06bf22a49644ec", kill_on_drop: false }` [INFO] [stdout] ec821250fe369cd625747b43a80367ded8cddaa7a3487d277b06bf22a49644ec