[INFO] cloning repository https://github.com/gaoxiao6331/rs-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gaoxiao6331/rs-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaoxiao6331%2Frs-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaoxiao6331%2Frs-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5d4c6f2b6b5688e2f6d7823a789e5d444c8230a [INFO] checking gaoxiao6331/rs-practice against f10db292a3733b5c67c8da8c7661195ff4b05774 for pr-158914 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaoxiao6331%2Frs-practice" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gaoxiao6331/rs-practice [INFO] finished tweaking git repo https://github.com/gaoxiao6331/rs-practice [INFO] tweaked toml for git repo https://github.com/gaoxiao6331/rs-practice written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gaoxiao6331/rs-practice on toolchain f10db292a3733b5c67c8da8c7661195ff4b05774 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f10db292a3733b5c67c8da8c7661195ff4b05774" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gaoxiao6331/rs-practice 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" "+f10db292a3733b5c67c8da8c7661195ff4b05774" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crc-catalog v2.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d [INFO] running `Command { std: "docker" "start" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d" "/opt/rustwide/cargo-home/bin/cargo" "+f10db292a3733b5c67c8da8c7661195ff4b05774" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d" "/opt/rustwide/cargo-home/bin/cargo" "+f10db292a3733b5c67c8da8c7661195ff4b05774" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.64 [INFO] [stderr] Checking bytes v1.12.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking log v0.4.32 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Compiling smallvec v1.15.2 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.2.1 [INFO] [stderr] Checking socket2 v0.6.4 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling syn v2.0.118 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Checking rustls-pki-types v1.14.1 [INFO] [stderr] Compiling zeroize v1.9.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling typenum v1.20.1 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling memchr v2.8.2 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.125 [INFO] [stderr] Compiling webpki-roots v1.0.8 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking http v1.4.2 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Compiling crc-catalog v2.5.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking regex-syntax v0.8.11 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling wasm-bindgen v0.2.125 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking time-core v0.1.9 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking time v0.3.51 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.125 [INFO] [stderr] Compiling rustls-webpki v0.103.13 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.6 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling auto-lifetime v0.1.0 (/opt/rustwide/workdir/auto-lifetime) [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> auto-lifetime/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Compiling yoke v0.8.3 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking clap v4.6.1 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.125 [INFO] [stderr] Checking tracing-appender v0.2.5 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking hyper v1.10.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking axum v0.8.9 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rs-practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Image` [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:2:71 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::markdown_wasm::compiler::common::ast::Inline::{Bold, Text, Image, Italic, Strikethrough}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:227:59 [INFO] [stdout] | [INFO] [stdout] 227 | ... next_start_idx += (len + 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - next_start_idx += (len + 1); [INFO] [stdout] 227 + next_start_idx += len + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/../markdown-wasm/compiler/line_scanner.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Image` [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:2:71 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::markdown_wasm::compiler::common::ast::Inline::{Bold, Text, Image, Italic, Strikethrough}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:227:59 [INFO] [stdout] | [INFO] [stdout] 227 | ... next_start_idx += (len + 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - next_start_idx += (len + 1); [INFO] [stdout] 227 + next_start_idx += len + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut ast = Ast { [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: `lines` [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_block(lines: Vec) -> Ast { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/../markdown-wasm/compiler/code_generator.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_html(ast: &Ast) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut ast = Ast { [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: `lines` [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_block(lines: Vec) -> Ast { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/../markdown-wasm/compiler/code_generator.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_html(ast: &Ast) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn generate_html(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn generate_html(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_block` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_block(lines: Vec) -> Ast { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_html` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/code_generator.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_html(ast: &Ast) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LineType` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum LineType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListItem` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ListItem { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TableCell` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TableCell { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TableRow` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct TableRow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Inline` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Inline { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Block` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ast` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Ast { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_link_like` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_link_like(link_like: &str, link: bool) -> (Option>, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_inline` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn parse_inline(inline: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_hyphens` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/line_scanner.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle_hyphens(line: &str) -> LineType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan_line` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/line_scanner.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn scan_line(md: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `css` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const css: &'static str = r#" [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/../markdown-wasm/compiler/line_scanner.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle_hyphens(line: &str) -> LineType { [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] 5 | fn handle_hyphens(line: &str) -> LineType<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `css` should have an upper case name [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const css: &'static str = r#" [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `CSS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_block` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/block_parser.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_block(lines: Vec) -> Ast { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_html` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/code_generator.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_html(ast: &Ast) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `text` are never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | Heading { level: u64, text: &str }, [INFO] [stdout] | ------- ^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `language` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | CodeBlock { language: &str }, [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `indent` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | UnorderedList { text: &str, indent: u64 }, [INFO] [stdout] | ------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | OrderedList { text: &str }, [INFO] [stdout] | ----------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | Quote { text: &str }, [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `columns` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | TableRowLike { columns: Vec<&str> }, // 这里可能不是table,需要根据上下文判断 [INFO] [stdout] | ------------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | Other { text: &str }, [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LineType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListItem` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ListItem { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TableCell` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TableCell { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TableRow` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct TableRow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Inline` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Inline { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Block` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ast` is never constructed [INFO] [stdout] --> src/../markdown-wasm/compiler/common.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Ast { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_link_like` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_link_like(link_like: &str, link: bool) -> (Option>, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_inline` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/inline_parser.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn parse_inline(inline: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `css` is never used [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const css: &'static str = r#" [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/../markdown-wasm/compiler/line_scanner.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle_hyphens(line: &str) -> LineType { [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] 5 | fn handle_hyphens(line: &str) -> LineType<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `css` should have an upper case name [INFO] [stdout] --> src/../markdown-wasm/compiler/md2html.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const css: &'static str = r#" [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `CSS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::Atomic::::fetch_update`: renamed to `try_update` for consistency [INFO] [stdout] --> load-tester/main.rs:150:33 [INFO] [stdout] | [INFO] [stdout] 150 | while let Ok(_) = f.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 150 - while let Ok(_) = f.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] 150 + while let Ok(_) = f.try_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::Atomic::::fetch_update`: renamed to `try_update` for consistency [INFO] [stdout] --> load-tester/main.rs:150:33 [INFO] [stdout] | [INFO] [stdout] 150 | while let Ok(_) = f.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 150 - while let Ok(_) = f.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] 150 + while let Ok(_) = f.try_update(Ordering::SeqCst, Ordering::SeqCst, |cur| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.47s [INFO] running `Command { std: "docker" "inspect" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d", kill_on_drop: false }` [INFO] [stdout] b816725a6556b0daa754e448febf3fc91e581bb65b8ced9f719d19688f7f9c7d