[INFO] cloning repository https://github.com/aporicho/md-editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aporicho/md-editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faporicho%2Fmd-editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faporicho%2Fmd-editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16cdcab472caf68c2f8b2dc68011869b4f150f15 [INFO] checking aporicho/md-editor against master#55e86c996809902e8bbad512cfb4d2c18be446d9 for pr-153027 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faporicho%2Fmd-editor" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/aporicho/md-editor [INFO] finished tweaking git repo https://github.com/aporicho/md-editor [INFO] tweaked toml for git repo https://github.com/aporicho/md-editor written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aporicho/md-editor on toolchain 55e86c996809902e8bbad512cfb4d2c18be446d9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aporicho/md-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" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded iced_highlighter v0.14.0 [INFO] [stderr] Downloaded wayland-protocols-misc v0.3.12 [INFO] [stderr] Downloaded fancy-regex v0.16.2 [INFO] [stderr] Downloaded pulldown-cmark v0.12.2 [INFO] [stderr] Downloaded two-face v0.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81f8f2d706a92b37bcf8a1625a09d0955e4adb9cd98e8940191f5876ffe58914 [INFO] running `Command { std: "docker" "start" "-a" "81f8f2d706a92b37bcf8a1625a09d0955e4adb9cd98e8940191f5876ffe58914", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81f8f2d706a92b37bcf8a1625a09d0955e4adb9cd98e8940191f5876ffe58914", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81f8f2d706a92b37bcf8a1625a09d0955e4adb9cd98e8940191f5876ffe58914", kill_on_drop: false }` [INFO] [stdout] 81f8f2d706a92b37bcf8a1625a09d0955e4adb9cd98e8940191f5876ffe58914 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+55e86c996809902e8bbad512cfb4d2c18be446d9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 989b02dc8308204ccaac5096f9f81b10aea3e210f531af7c2f87b33a051bc42c [INFO] running `Command { std: "docker" "start" "-a" "989b02dc8308204ccaac5096f9f81b10aea3e210f531af7c2f87b33a051bc42c", kill_on_drop: false }` [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wayland-sys v0.31.11 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking rustix v1.1.4 [INFO] [stderr] Compiling cc v1.2.58 [INFO] [stderr] Compiling wayland-client v0.31.14 [INFO] [stderr] Checking unicode-ident v1.0.24 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking rustc-hash v2.1.2 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking glam v0.25.0 [INFO] [stderr] Compiling winnow v1.0.1 [INFO] [stderr] Compiling toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Checking codespan-reporting v0.12.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking unicode-segmentation v1.13.2 [INFO] [stderr] Checking gpu-descriptor v0.3.2 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling quick-xml v0.39.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking glow v0.16.0 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling wgpu-core v27.0.3 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking ordered-float v5.3.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Checking itoa v1.0.18 [INFO] [stderr] Checking rustix v0.38.44 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Checking euclid v0.22.14 [INFO] [stderr] Checking memmap2 v0.9.10 [INFO] [stderr] Compiling wayland-scanner v0.31.10 [INFO] [stderr] Compiling wayland-backend v0.3.15 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking khronos-egl v6.0.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking fontdb v0.23.0 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling wgpu v27.0.1 [INFO] [stderr] Compiling tiny-xlib v0.2.4 [INFO] [stderr] Checking simd-adler32 v0.3.9 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Compiling toml_parser v1.1.2+spec-1.1.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.20.0 [INFO] [stderr] Checking num-conv v0.2.1 [INFO] [stderr] Checking svg_fmt v0.4.5 [INFO] [stderr] Checking time-core v0.1.8 [INFO] [stderr] Compiling endi v1.1.1 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking quick-xml v0.38.4 [INFO] [stderr] Compiling toml_edit v0.25.10+spec-1.1.0 [INFO] [stderr] Checking ctor-lite v0.1.2 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking piper v0.2.5 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking etagere v0.2.15 [INFO] [stderr] Checking async-lock v3.4.2 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking owned_ttf_parser v0.25.1 [INFO] [stderr] Checking lru v0.16.3 [INFO] [stderr] Compiling android-build v0.1.3 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking guillotiere v0.6.2 [INFO] [stderr] Checking async-executor v1.14.0 [INFO] [stderr] Compiling mundy v0.2.2 [INFO] [stderr] Checking async-broadcast v0.7.2 [INFO] [stderr] Checking kurbo v0.10.4 [INFO] [stderr] Checking uuid v1.23.0 [INFO] [stderr] Compiling winit v0.30.13 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Compiling pulldown-cmark v0.12.2 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking pulldown-cmark-escape v0.11.0 [INFO] [stderr] Checking is-docker v0.2.0 [INFO] [stderr] Checking is-wsl v0.4.0 [INFO] [stderr] Checking open v5.3.3 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking async-signal v0.2.13 [INFO] [stderr] Checking async-process v2.5.0 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerocopy-derive v0.8.48 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking fancy-regex v0.16.2 [INFO] [stderr] Checking wayland-protocols v0.32.12 [INFO] [stderr] Checking wayland-cursor v0.31.14 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking calloop v0.14.4 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking iced_core v0.14.0 [INFO] [stderr] Checking clipboard_x11 v0.4.3 [INFO] [stderr] Checking calloop-wayland-source v0.4.1 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking font-types v0.11.1 [INFO] [stderr] Checking font-types v0.10.1 [INFO] [stderr] Checking wgpu-types v27.0.1 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking softbuffer v0.4.8 [INFO] [stderr] Checking read-fonts v0.37.0 [INFO] [stderr] Checking read-fonts v0.35.0 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling zvariant_utils v3.3.0 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking plist v1.8.0 [INFO] [stderr] Compiling zvariant_derive v5.10.0 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking iced_futures v0.14.0 [INFO] [stderr] Checking iced_debug v0.14.0 [INFO] [stderr] Checking iced_runtime v0.14.0 [INFO] [stderr] Checking syntect v5.3.0 [INFO] [stderr] Compiling zvariant v5.10.0 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking two-face v0.4.5 [INFO] [stderr] Checking iced_highlighter v0.14.0 [INFO] [stderr] Checking naga v27.0.3 [INFO] [stderr] Checking zbus_names v4.3.1 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.12 [INFO] [stderr] Checking wayland-protocols-experimental v20250721.0.1 [INFO] [stderr] Checking wayland-protocols-misc v0.3.12 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.12 [INFO] [stderr] Checking skrifa v0.40.0 [INFO] [stderr] Compiling zbus_macros v5.14.0 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking skrifa v0.37.0 [INFO] [stderr] Checking harfrust v0.3.2 [INFO] [stderr] Checking smithay-clipboard v0.7.3 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking clipboard_wayland v0.2.2 [INFO] [stderr] Checking window_clipboard v0.5.1 [INFO] [stderr] Checking swash v0.2.7 [INFO] [stderr] Checking zbus v5.14.0 [INFO] [stderr] Checking cosmic-text v0.15.0 [INFO] [stderr] Checking wgpu-hal v27.0.4 [INFO] [stderr] Checking iced_graphics v0.14.0 [INFO] [stderr] Checking iced_tiny_skia v0.14.0 [INFO] [stderr] Checking iced_program v0.14.0 [INFO] [stderr] Checking iced_winit v0.14.0 [INFO] [stderr] Checking wgpu-core-deps-windows-linux-android v27.0.0 [INFO] [stderr] Checking cryoglyph v0.1.0 [INFO] [stderr] Checking iced_wgpu v0.14.0 [INFO] [stderr] Checking iced_renderer v0.14.0 [INFO] [stderr] Checking iced_widget v0.14.2 [INFO] [stderr] Checking iced v0.14.0 [INFO] [stderr] Checking md-editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::fragment::Fragment` [INFO] [stdout] --> src/model/resolvedpos.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::fragment::Fragment; [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 import: `super::fragment::Fragment` [INFO] [stdout] --> src/model/resolvedpos.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::fragment::Fragment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/resolvedpos.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let mut marks = match main { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_to` [INFO] [stdout] --> src/model/replace.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 317 | let (index_to, offset_to) = content.find_index(to); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_to` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AttrValue` is never used [INFO] [stdout] --> src/model/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AttrValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Attrs` is never used [INFO] [stdout] --> src/model/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub type Attrs = BTreeMap; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeType` is never constructed [INFO] [stdout] --> src/model/schema.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_inline`, `is_leaf`, `is_in_group`, `has_required_attrs`, and `create_and_fill` are never used [INFO] [stdout] --> src/model/schema.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl NodeType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 22 | /// 是否是行内节点。 [INFO] [stdout] 23 | pub fn is_inline(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_leaf(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_in_group(&self, group: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn has_required_attrs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn create_and_fill(&self) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarkType` is never constructed [INFO] [stdout] --> src/model/schema.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct MarkType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `excludes` is never used [INFO] [stdout] --> src/model/schema.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl MarkType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 73 | /// 检查此标记类型是否排斥另一个标记类型。 [INFO] [stdout] 74 | pub fn excludes(&self, other: &MarkType) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mark` is never constructed [INFO] [stdout] --> src/model/mark.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Mark { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/mark.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Mark { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 21 | /// 创建一个新标记。 [INFO] [stdout] 22 | pub fn new(mark_type: Arc, attrs: Attrs) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn eq(&self, other: &Mark) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn add_to_set(&self, set: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn remove_from_set(&self, set: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn is_in_set(&self, set: &[Mark]) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn same_set(a: &[Mark], b: &[Mark]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn set_from(marks: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn none() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchEdge` is never constructed [INFO] [stdout] --> src/model/content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MatchEdge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContentMatch` is never constructed [INFO] [stdout] --> src/model/content.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ContentMatch { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/content.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl ContentMatch { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 27 | fn new(valid_end: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn empty() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn parse( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn match_type(&self, node_type: &Arc) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn inline_content(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn default_type(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn compatible(&self, other: &ContentMatch) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn edge_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn edge(&self, n: usize) -> Option<&MatchEdge> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn find_wrapping(&self, target: &Arc) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/model/content.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenStream` is never constructed [INFO] [stdout] --> src/model/content.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | struct TokenStream<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `eat`, and `err` are never used [INFO] [stdout] --> src/model/content.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 205 | impl<'a> TokenStream<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 206 | fn new(string: &'a str, node_types: &'a HashMap>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn next(&self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | fn eat(&mut self, tok: &str) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn err(&self, msg: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr` is never used [INFO] [stdout] --> src/model/content.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn parse_expr(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_seq` is never used [INFO] [stdout] --> src/model/content.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn parse_expr_seq(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_subscript` is never used [INFO] [stdout] --> src/model/content.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn parse_expr_subscript(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_num` is never used [INFO] [stdout] --> src/model/content.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn parse_num(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_range` is never used [INFO] [stdout] --> src/model/content.rs:315:4 [INFO] [stdout] | [INFO] [stdout] 315 | fn parse_expr_range(stream: &mut TokenStream, expr: Expr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_name` is never used [INFO] [stdout] --> src/model/content.rs:336:4 [INFO] [stdout] | [INFO] [stdout] 336 | fn resolve_name(stream: &mut TokenStream, name: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_atom` is never used [INFO] [stdout] --> src/model/content.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 355 | fn parse_expr_atom(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NfaEdge` is never constructed [INFO] [stdout] --> src/model/content.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct NfaEdge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_nfa` is never used [INFO] [stdout] --> src/model/content.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn build_nfa(expr: &Expr) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `null_from` is never used [INFO] [stdout] --> src/model/content.rs:529:4 [INFO] [stdout] | [INFO] [stdout] 529 | fn null_from(nfa: &[Vec], node: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan` is never used [INFO] [stdout] --> src/model/content.rs:537:4 [INFO] [stdout] | [INFO] [stdout] 537 | fn scan(nfa: &[Vec], node: usize, result: &mut Vec, visited: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_dfa` is never used [INFO] [stdout] --> src/model/content.rs:554:4 [INFO] [stdout] | [INFO] [stdout] 554 | fn build_dfa(nfa: &[Vec]) -> Arc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `states_key` is never used [INFO] [stdout] --> src/model/content.rs:559:4 [INFO] [stdout] | [INFO] [stdout] 559 | fn states_key(states: &[usize]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explore` is never used [INFO] [stdout] --> src/model/content.rs:567:4 [INFO] [stdout] | [INFO] [stdout] 567 | fn explore( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_dead_ends` is never used [INFO] [stdout] --> src/model/content.rs:623:4 [INFO] [stdout] | [INFO] [stdout] 623 | fn check_for_dead_ends(start: &Arc, expr: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/model/node.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/model/node.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 26 | /// 节点在位置空间中占据的大小。 [INFO] [stdout] 27 | pub fn node_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn is_text(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn is_block(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_inline(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn is_leaf(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn text(&self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn same_markup(&self, other: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn eq(&self, other: &Node) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn copy(&self, content: Fragment) -> Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn cut(&self, from: usize, to: usize) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn with_text(&self, text: String) -> Node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fragment` is never constructed [INFO] [stdout] --> src/model/fragment.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Fragment { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/fragment.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Fragment { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | /// 从子节点列表和预计算的 size 构造片段(内部用)。 [INFO] [stdout] 22 | fn new(content: Vec, size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_array(array: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn from(nodes: FragmentInput) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn child_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn child(&self, index: usize) -> &Node { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn maybe_child(&self, index: usize) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn first_child(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn last_child(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn for_each(&self, mut f: F) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn nodes_between( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn append(&self, other: &Fragment) -> Fragment { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn cut(&self, from: usize, to: Option) -> Fragment { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn cut_by_index(&self, from: usize, to: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn replace_child(&self, index: usize, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn add_to_start(&self, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn add_to_end(&self, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn eq(&self, other: &Fragment) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn find_index(&self, pos: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn find_diff_start(&self, other: &Fragment, pos: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn find_diff_end( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FragmentInput` is never used [INFO] [stdout] --> src/model/fragment.rs:308:10 [INFO] [stdout] | [INFO] [stdout] 308 | pub enum FragmentInput { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_diff_start` is never used [INFO] [stdout] --> src/model/diff.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_diff_start(a: &Fragment, b: &Fragment, pos: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_diff_end` is never used [INFO] [stdout] --> src/model/diff.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn find_diff_end( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathEntry` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct PathEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResolvedPos` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ResolvedPos { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/resolvedpos.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ResolvedPos { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 28 | /// 解析文档中的位置,返回 ResolvedPos。 [INFO] [stdout] 29 | pub fn resolve(doc: &Node, pos: usize) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn resolve_depth(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn node(&self, depth: Option) -> &Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn parent(&self) -> &Node { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn doc(&self) -> &Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn index(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn index_after(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn start(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn end(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn before(&self, depth: Option) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn after(&self, depth: Option) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn text_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn node_after(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn node_before(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn pos_at_index(&self, index: usize, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn marks(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn shared_depth(&self, pos: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn same_parent(&self, other: &ResolvedPos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn max<'a>(&'a self, other: &'a ResolvedPos) -> &'a ResolvedPos { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn min<'a>(&'a self, other: &'a ResolvedPos) -> &'a ResolvedPos { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn block_range(&self, other: &ResolvedPos) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeRange` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct NodeRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start`, `end`, `parent`, `start_index`, and `end_index` are never used [INFO] [stdout] --> src/model/resolvedpos.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 297 | impl NodeRange { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 298 | /// 范围的起始位置。 [INFO] [stdout] 299 | pub fn start(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn end(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn parent(&self) -> &Node { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn start_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn end_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReplaceError` is never constructed [INFO] [stdout] --> src/model/replace.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ReplaceError(pub String); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slice` is never constructed [INFO] [stdout] --> src/model/replace.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Slice { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/replace.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Slice { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(content: Fragment, open_start: usize, open_end: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn eq(&self, other: &Slice) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn max_open(fragment: &Fragment) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert_at(&self, pos: usize, fragment: &Fragment) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn remove_between(&self, from: usize, to: usize) -> Slice { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace` is never used [INFO] [stdout] --> src/model/replace.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn replace( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_outer` is never used [INFO] [stdout] --> src/model/replace.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn replace_outer( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_join` is never used [INFO] [stdout] --> src/model/replace.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn check_join(main: &Node, sub: &Node) -> Result<(), ReplaceError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `joinable` is never used [INFO] [stdout] --> src/model/replace.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn joinable<'a>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_node` is never used [INFO] [stdout] --> src/model/replace.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn add_node(child: Node, target: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_range` is never used [INFO] [stdout] --> src/model/replace.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn add_range( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close` is never used [INFO] [stdout] --> src/model/replace.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn close(node: &Node, content: Fragment) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_three_way` is never used [INFO] [stdout] --> src/model/replace.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn replace_three_way( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_two_way` is never used [INFO] [stdout] --> src/model/replace.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn replace_two_way(from: &ResolvedPos, to: &ResolvedPos, depth: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prepare_slice_for_replace` is never used [INFO] [stdout] --> src/model/replace.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn prepare_slice_for_replace( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_range` is never used [INFO] [stdout] --> src/model/replace.rs:314:4 [INFO] [stdout] | [INFO] [stdout] 314 | fn remove_range(content: &Fragment, from: usize, to: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_into` is never used [INFO] [stdout] --> src/model/replace.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn insert_into( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | fn view(&self) -> Element { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | fn view(&self) -> Element<'_, Message> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/resolvedpos.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let mut marks = match main { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_to` [INFO] [stdout] --> src/model/replace.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 317 | let (index_to, offset_to) = content.find_index(to); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_to` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AttrValue` is never used [INFO] [stdout] --> src/model/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AttrValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Attrs` is never used [INFO] [stdout] --> src/model/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub type Attrs = BTreeMap; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeType` is never constructed [INFO] [stdout] --> src/model/schema.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_inline`, `is_leaf`, `is_in_group`, `has_required_attrs`, and `create_and_fill` are never used [INFO] [stdout] --> src/model/schema.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl NodeType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 22 | /// 是否是行内节点。 [INFO] [stdout] 23 | pub fn is_inline(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_leaf(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_in_group(&self, group: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn has_required_attrs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn create_and_fill(&self) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarkType` is never constructed [INFO] [stdout] --> src/model/schema.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct MarkType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `excludes` is never used [INFO] [stdout] --> src/model/schema.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl MarkType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 73 | /// 检查此标记类型是否排斥另一个标记类型。 [INFO] [stdout] 74 | pub fn excludes(&self, other: &MarkType) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mark` is never constructed [INFO] [stdout] --> src/model/mark.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Mark { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/mark.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Mark { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 21 | /// 创建一个新标记。 [INFO] [stdout] 22 | pub fn new(mark_type: Arc, attrs: Attrs) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn eq(&self, other: &Mark) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn add_to_set(&self, set: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn remove_from_set(&self, set: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn is_in_set(&self, set: &[Mark]) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn same_set(a: &[Mark], b: &[Mark]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn set_from(marks: &[Mark]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn none() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchEdge` is never constructed [INFO] [stdout] --> src/model/content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MatchEdge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContentMatch` is never constructed [INFO] [stdout] --> src/model/content.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ContentMatch { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/content.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl ContentMatch { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 27 | fn new(valid_end: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn empty() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn parse( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn match_type(&self, node_type: &Arc) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn inline_content(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn default_type(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn compatible(&self, other: &ContentMatch) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn edge_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn edge(&self, n: usize) -> Option<&MatchEdge> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn find_wrapping(&self, target: &Arc) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/model/content.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenStream` is never constructed [INFO] [stdout] --> src/model/content.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | struct TokenStream<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `eat`, and `err` are never used [INFO] [stdout] --> src/model/content.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 205 | impl<'a> TokenStream<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 206 | fn new(string: &'a str, node_types: &'a HashMap>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn next(&self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | fn eat(&mut self, tok: &str) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn err(&self, msg: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr` is never used [INFO] [stdout] --> src/model/content.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn parse_expr(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_seq` is never used [INFO] [stdout] --> src/model/content.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn parse_expr_seq(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_subscript` is never used [INFO] [stdout] --> src/model/content.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn parse_expr_subscript(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_num` is never used [INFO] [stdout] --> src/model/content.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn parse_num(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_range` is never used [INFO] [stdout] --> src/model/content.rs:315:4 [INFO] [stdout] | [INFO] [stdout] 315 | fn parse_expr_range(stream: &mut TokenStream, expr: Expr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_name` is never used [INFO] [stdout] --> src/model/content.rs:336:4 [INFO] [stdout] | [INFO] [stdout] 336 | fn resolve_name(stream: &mut TokenStream, name: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr_atom` is never used [INFO] [stdout] --> src/model/content.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 355 | fn parse_expr_atom(stream: &mut TokenStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NfaEdge` is never constructed [INFO] [stdout] --> src/model/content.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct NfaEdge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_nfa` is never used [INFO] [stdout] --> src/model/content.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn build_nfa(expr: &Expr) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `null_from` is never used [INFO] [stdout] --> src/model/content.rs:529:4 [INFO] [stdout] | [INFO] [stdout] 529 | fn null_from(nfa: &[Vec], node: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan` is never used [INFO] [stdout] --> src/model/content.rs:537:4 [INFO] [stdout] | [INFO] [stdout] 537 | fn scan(nfa: &[Vec], node: usize, result: &mut Vec, visited: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_dfa` is never used [INFO] [stdout] --> src/model/content.rs:554:4 [INFO] [stdout] | [INFO] [stdout] 554 | fn build_dfa(nfa: &[Vec]) -> Arc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `states_key` is never used [INFO] [stdout] --> src/model/content.rs:559:4 [INFO] [stdout] | [INFO] [stdout] 559 | fn states_key(states: &[usize]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explore` is never used [INFO] [stdout] --> src/model/content.rs:567:4 [INFO] [stdout] | [INFO] [stdout] 567 | fn explore( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_dead_ends` is never used [INFO] [stdout] --> src/model/content.rs:623:4 [INFO] [stdout] | [INFO] [stdout] 623 | fn check_for_dead_ends(start: &Arc, expr: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/model/node.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/model/node.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 26 | /// 节点在位置空间中占据的大小。 [INFO] [stdout] 27 | pub fn node_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn is_text(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn is_block(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_inline(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn is_leaf(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn text(&self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn same_markup(&self, other: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn eq(&self, other: &Node) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn copy(&self, content: Fragment) -> Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn cut(&self, from: usize, to: usize) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn with_text(&self, text: String) -> Node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fragment` is never constructed [INFO] [stdout] --> src/model/fragment.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Fragment { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/fragment.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Fragment { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | /// 从子节点列表和预计算的 size 构造片段(内部用)。 [INFO] [stdout] 22 | fn new(content: Vec, size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_array(array: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn from(nodes: FragmentInput) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn child_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn child(&self, index: usize) -> &Node { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn maybe_child(&self, index: usize) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn first_child(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn last_child(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn for_each(&self, mut f: F) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn nodes_between( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn append(&self, other: &Fragment) -> Fragment { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn cut(&self, from: usize, to: Option) -> Fragment { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn cut_by_index(&self, from: usize, to: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn replace_child(&self, index: usize, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn add_to_start(&self, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn add_to_end(&self, node: Node) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn eq(&self, other: &Fragment) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn find_index(&self, pos: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn find_diff_start(&self, other: &Fragment, pos: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn find_diff_end( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FragmentInput` is never used [INFO] [stdout] --> src/model/fragment.rs:308:10 [INFO] [stdout] | [INFO] [stdout] 308 | pub enum FragmentInput { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_diff_start` is never used [INFO] [stdout] --> src/model/diff.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_diff_start(a: &Fragment, b: &Fragment, pos: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_diff_end` is never used [INFO] [stdout] --> src/model/diff.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn find_diff_end( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathEntry` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct PathEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResolvedPos` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ResolvedPos { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/resolvedpos.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ResolvedPos { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 28 | /// 解析文档中的位置,返回 ResolvedPos。 [INFO] [stdout] 29 | pub fn resolve(doc: &Node, pos: usize) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn resolve_depth(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn node(&self, depth: Option) -> &Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn parent(&self) -> &Node { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn doc(&self) -> &Node { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn index(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn index_after(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn start(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn end(&self, depth: Option) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn before(&self, depth: Option) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn after(&self, depth: Option) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn text_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn node_after(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn node_before(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn pos_at_index(&self, index: usize, depth: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn marks(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn shared_depth(&self, pos: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn same_parent(&self, other: &ResolvedPos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn max<'a>(&'a self, other: &'a ResolvedPos) -> &'a ResolvedPos { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn min<'a>(&'a self, other: &'a ResolvedPos) -> &'a ResolvedPos { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn block_range(&self, other: &ResolvedPos) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeRange` is never constructed [INFO] [stdout] --> src/model/resolvedpos.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct NodeRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start`, `end`, `parent`, `start_index`, and `end_index` are never used [INFO] [stdout] --> src/model/resolvedpos.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 297 | impl NodeRange { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 298 | /// 范围的起始位置。 [INFO] [stdout] 299 | pub fn start(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn end(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn parent(&self) -> &Node { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn start_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn end_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReplaceError` is never constructed [INFO] [stdout] --> src/model/replace.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ReplaceError(pub String); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slice` is never constructed [INFO] [stdout] --> src/model/replace.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Slice { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/replace.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Slice { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(content: Fragment, open_start: usize, open_end: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn eq(&self, other: &Slice) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn max_open(fragment: &Fragment) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert_at(&self, pos: usize, fragment: &Fragment) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn remove_between(&self, from: usize, to: usize) -> Slice { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace` is never used [INFO] [stdout] --> src/model/replace.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn replace( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_outer` is never used [INFO] [stdout] --> src/model/replace.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn replace_outer( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_join` is never used [INFO] [stdout] --> src/model/replace.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn check_join(main: &Node, sub: &Node) -> Result<(), ReplaceError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `joinable` is never used [INFO] [stdout] --> src/model/replace.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn joinable<'a>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_node` is never used [INFO] [stdout] --> src/model/replace.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn add_node(child: Node, target: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_range` is never used [INFO] [stdout] --> src/model/replace.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn add_range( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close` is never used [INFO] [stdout] --> src/model/replace.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn close(node: &Node, content: Fragment) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_three_way` is never used [INFO] [stdout] --> src/model/replace.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn replace_three_way( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_two_way` is never used [INFO] [stdout] --> src/model/replace.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn replace_two_way(from: &ResolvedPos, to: &ResolvedPos, depth: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prepare_slice_for_replace` is never used [INFO] [stdout] --> src/model/replace.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn prepare_slice_for_replace( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_range` is never used [INFO] [stdout] --> src/model/replace.rs:314:4 [INFO] [stdout] | [INFO] [stdout] 314 | fn remove_range(content: &Fragment, from: usize, to: usize) -> Fragment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_into` is never used [INFO] [stdout] --> src/model/replace.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn insert_into( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | fn view(&self) -> Element { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | fn view(&self) -> Element<'_, Message> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 29s [INFO] running `Command { std: "docker" "inspect" "989b02dc8308204ccaac5096f9f81b10aea3e210f531af7c2f87b33a051bc42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "989b02dc8308204ccaac5096f9f81b10aea3e210f531af7c2f87b33a051bc42c", kill_on_drop: false }` [INFO] [stdout] 989b02dc8308204ccaac5096f9f81b10aea3e210f531af7c2f87b33a051bc42c