[INFO] cloning repository https://github.com/Anan2214/anan_blog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Anan2214/anan_blog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnan2214%2Fanan_blog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnan2214%2Fanan_blog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab4437b0cb53ddb2899e3343af1849f48417084f [INFO] testing Anan2214/anan_blog against try#28f95933dc0727396c07b48d0a8cb5211b7fb472 for pr-154065-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnan2214%2Fanan_blog" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Anan2214/anan_blog [INFO] finished tweaking git repo https://github.com/Anan2214/anan_blog [INFO] tweaked toml for git repo https://github.com/Anan2214/anan_blog written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Anan2214/anan_blog on toolchain 28f95933dc0727396c07b48d0a8cb5211b7fb472 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Anan2214/anan_blog 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" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45877da5c99ebb695260927411fb097c9d5cff1ca9ba0a20821be5195e1bb1b4 [INFO] running `Command { std: "docker" "start" "-a" "45877da5c99ebb695260927411fb097c9d5cff1ca9ba0a20821be5195e1bb1b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45877da5c99ebb695260927411fb097c9d5cff1ca9ba0a20821be5195e1bb1b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45877da5c99ebb695260927411fb097c9d5cff1ca9ba0a20821be5195e1bb1b4", kill_on_drop: false }` [INFO] [stdout] 45877da5c99ebb695260927411fb097c9d5cff1ca9ba0a20821be5195e1bb1b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 79c821583bb18825f76e6aea6d118149063c59768b35f8b7bf40ea4348a5a867 [INFO] running `Command { std: "docker" "start" "-a" "79c821583bb18825f76e6aea6d118149063c59768b35f8b7bf40ea4348a5a867", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling find-msvc-tools v0.1.7 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling zmij v1.0.12 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling regex-lite v0.1.8 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bstr v1.12.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling base64ct v1.8.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling password-hash v0.4.2 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling filetime v0.2.26 [INFO] [stderr] Compiling parse-size v1.1.0 [INFO] [stderr] Compiling pulldown-cmark v0.10.3 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling globset v0.4.18 [INFO] [stderr] Compiling ignore v0.4.25 [INFO] [stderr] Compiling deunicode v1.6.2 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling xattr v1.6.1 [INFO] [stderr] Compiling inotify v0.9.6 [INFO] [stderr] Compiling clap_builder v4.5.54 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Compiling getopts v0.2.24 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling jiff v0.2.18 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling pulldown-cmark-escape v0.10.1 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling notify v6.1.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling actix-multipart-derive v0.6.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_plain v1.0.2 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling clap v4.5.54 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling rusqlite v0.30.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-tls v3.5.0 [INFO] [stderr] Compiling tera v1.20.1 [INFO] [stderr] Compiling actix-http v3.11.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling actix-web v4.12.1 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling actix-files v0.6.9 [INFO] [stderr] Compiling actix-multipart v0.6.2 [INFO] [stderr] Compiling lf_blog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Command` [INFO] [stdout] --> src/modules/cli/mod.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{Parser, Subcommand, Command}; [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: `std::path::PathBuf` [INFO] [stdout] --> src/modules/database/analytics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/modules/database/analytics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Attachment` [INFO] [stdout] --> src/modules/content/compiler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::scanner::{Attachment, Scanner, SiteContent}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Category`, `ContentItem`, and `SiteContent` [INFO] [stdout] --> src/modules/web/admin.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::scanner::{Category, ContentItem, Scanner, SiteContent}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/modules/web/admin.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/modules/web/admin.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Category` [INFO] [stdout] --> src/modules/web/recommender.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::scanner::{Category, ContentItem, SiteContent}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `theme` [INFO] [stdout] --> src/main.rs:6:64 [INFO] [stdout] | [INFO] [stdout] 6 | use modules::content::{compiler, scanner, markdown, templates, theme}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/web/admin.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | let mut scanner = Scanner::new(config.paths.content_dir.clone()); [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: `timestamp` [INFO] [stdout] --> src/modules/cli/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let timestamp = Utc::now().format("%Y%m%d_%H%M%S").to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/modules/database/analytics.rs:365:37 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn detect_source(referer: &str, user_agent: &str) -> (VisitSource, Option, Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `referer_lower` [INFO] [stdout] --> src/modules/database/analytics.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let referer_lower = referer.to_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_referer_lower` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/modules/database/analytics.rs:447:29 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn get_location_from_ip(ip: &str) -> (Option, Option) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/modules/web/admin.rs:131:23 [INFO] [stdout] | [INFO] [stdout] 131 | fn verify_admin_token(config: &Config, token: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/modules/web/admin.rs:918:5 [INFO] [stdout] | [INFO] [stdout] 918 | config: web::Data, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/modules/web/admin.rs:1838:9 [INFO] [stdout] | [INFO] [stdout] 1838 | let slug = name.to_lowercase().replace(' ', "-"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/web/recommender.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut recommendations: Vec<_> = scores [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/modules/database/storage.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl StorageDB { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn clear_pages(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn save_attachment(&self, attachment: &StoredAttachment) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn get_attachments_by_slug(&self, slug: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn get_all_attachments(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn delete_attachment(&self, filename: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn clear_attachments(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 551 | pub fn clear_all(&mut self) -> Result<()> { [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 `get_mime_type` is never used [INFO] [stdout] --> src/modules/database/storage.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | pub fn get_mime_type(filename: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_all_comments` and `delete_comment` are never used [INFO] [stdout] --> src/modules/database/comments.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl CommentDB { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_all_comments(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn delete_comment(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommentCount` is never constructed [INFO] [stdout] --> src/modules/database/comments.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct CommentCount { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_page_visits` and `cleanup_old_records` are never used [INFO] [stdout] --> src/modules/database/analytics.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl AnalyticsDB { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn get_page_visits(&self, page_slug: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn cleanup_old_records(&self, days_to_keep: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_user_agent` is never used [INFO] [stdout] --> src/modules/database/analytics.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | pub fn parse_user_agent(ua: &str) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `limit` is never read [INFO] [stdout] --> src/modules/database/analytics.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 459 | pub struct DailyStatsQuery { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 462 | pub limit: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_sitemap` and `generate_robots_txt` are never used [INFO] [stdout] --> src/modules/content/compiler.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Compiler { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | fn generate_sitemap(&self, site_content: &SiteContent, generated_files: &mut Vec) -> Result<(), Box) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `generated_files` are never read [INFO] [stdout] --> src/modules/content/compiler.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct CompileResult { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 199 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 200 | pub generated_files: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompileResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_image_links` is never used [INFO] [stdout] --> src/modules/content/markdown.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn process_image_links(html: &str, base_path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `render_archive` and `render_admin_base` are never used [INFO] [stdout] --> src/modules/content/templates.rs:2066:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl TemplateRenderer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2066 | pub fn render_archive(&self, all_items: &Vec<(String, String, String, Option)>, total_items: usize) -> Result Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Theme` is never constructed [INFO] [stdout] --> src/modules/content/theme.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Theme { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorPalette` is never constructed [INFO] [stdout] --> src/modules/content/theme.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ColorPalette { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_css` is never used [INFO] [stdout] --> src/modules/content/theme.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Theme { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 48 | pub fn to_css(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExportResponse` is never constructed [INFO] [stdout] --> src/modules/web/admin.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ExportResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompilerState` is never constructed [INFO] [stdout] --> src/modules/web/admin.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct CompilerState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modules/web/admin.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl CompilerState { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 87 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_full_content` is never used [INFO] [stdout] --> src/modules/web/admin.rs:917:14 [INFO] [stdout] | [INFO] [stdout] 917 | pub async fn upload_full_content( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_incremental_content` is never used [INFO] [stdout] --> src/modules/web/admin.rs:931:14 [INFO] [stdout] | [INFO] [stdout] 931 | pub async fn upload_incremental_content( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `keyword_index` is never read [INFO] [stdout] --> src/modules/web/recommender.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Recommender { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | keyword_index: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 12s [INFO] running `Command { std: "docker" "inspect" "79c821583bb18825f76e6aea6d118149063c59768b35f8b7bf40ea4348a5a867", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79c821583bb18825f76e6aea6d118149063c59768b35f8b7bf40ea4348a5a867", kill_on_drop: false }` [INFO] [stdout] 79c821583bb18825f76e6aea6d118149063c59768b35f8b7bf40ea4348a5a867 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 591af1f280a065235546fffd241c58e5b75a7f423d93d775dc804f3c9a409074 [INFO] running `Command { std: "docker" "start" "-a" "591af1f280a065235546fffd241c58e5b75a7f423d93d775dc804f3c9a409074", kill_on_drop: false }` [INFO] [stderr] Compiling lf_blog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Command` [INFO] [stdout] --> src/modules/cli/mod.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{Parser, Subcommand, Command}; [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: `std::path::PathBuf` [INFO] [stdout] --> src/modules/database/analytics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/modules/database/analytics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/modules/content/scanner.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Attachment` [INFO] [stdout] --> src/modules/content/compiler.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::scanner::{Attachment, Scanner, SiteContent}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Category`, `ContentItem`, and `SiteContent` [INFO] [stdout] --> src/modules/web/admin.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::scanner::{Category, ContentItem, Scanner, SiteContent}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/modules/web/admin.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/modules/web/admin.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Category` [INFO] [stdout] --> src/modules/web/recommender.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::scanner::{Category, ContentItem, SiteContent}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `theme` [INFO] [stdout] --> src/main.rs:6:64 [INFO] [stdout] | [INFO] [stdout] 6 | use modules::content::{compiler, scanner, markdown, templates, theme}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/web/admin.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | let mut scanner = Scanner::new(config.paths.content_dir.clone()); [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: `timestamp` [INFO] [stdout] --> src/modules/cli/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let timestamp = Utc::now().format("%Y%m%d_%H%M%S").to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/modules/database/analytics.rs:365:37 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn detect_source(referer: &str, user_agent: &str) -> (VisitSource, Option, Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `referer_lower` [INFO] [stdout] --> src/modules/database/analytics.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let referer_lower = referer.to_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_referer_lower` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/modules/database/analytics.rs:447:29 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn get_location_from_ip(ip: &str) -> (Option, Option) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/modules/database/analytics.rs:729:22 [INFO] [stdout] | [INFO] [stdout] 729 | let (source, engine, keyword) = detect_source("", ""); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/modules/database/analytics.rs:729:30 [INFO] [stdout] | [INFO] [stdout] 729 | let (source, engine, keyword) = detect_source("", ""); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/modules/database/analytics.rs:751:22 [INFO] [stdout] | [INFO] [stdout] 751 | let (source, engine, keyword) = detect_source( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/modules/database/analytics.rs:751:30 [INFO] [stdout] | [INFO] [stdout] 751 | let (source, engine, keyword) = detect_source( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/modules/database/analytics.rs:758:22 [INFO] [stdout] | [INFO] [stdout] 758 | let (source, engine, keyword) = detect_source( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/modules/database/analytics.rs:758:30 [INFO] [stdout] | [INFO] [stdout] 758 | let (source, engine, keyword) = detect_source( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/modules/web/admin.rs:131:23 [INFO] [stdout] | [INFO] [stdout] 131 | fn verify_admin_token(config: &Config, token: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/modules/web/admin.rs:918:5 [INFO] [stdout] | [INFO] [stdout] 918 | config: web::Data, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/modules/web/admin.rs:1838:9 [INFO] [stdout] | [INFO] [stdout] 1838 | let slug = name.to_lowercase().replace(' ', "-"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/web/recommender.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut recommendations: Vec<_> = scores [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear_pages`, `get_attachments_by_slug`, `get_all_attachments`, `delete_attachment`, `clear_attachments`, and `clear_all` are never used [INFO] [stdout] --> src/modules/database/storage.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl StorageDB { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn clear_pages(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn get_attachments_by_slug(&self, slug: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn get_all_attachments(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn delete_attachment(&self, filename: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn clear_attachments(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 551 | pub fn clear_all(&mut self) -> Result<()> { [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 `get_mime_type` is never used [INFO] [stdout] --> src/modules/database/storage.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | pub fn get_mime_type(filename: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_all_comments` and `delete_comment` are never used [INFO] [stdout] --> src/modules/database/comments.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl CommentDB { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_all_comments(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn delete_comment(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommentCount` is never constructed [INFO] [stdout] --> src/modules/database/comments.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct CommentCount { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_page_visits` and `cleanup_old_records` are never used [INFO] [stdout] --> src/modules/database/analytics.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl AnalyticsDB { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn get_page_visits(&self, page_slug: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn cleanup_old_records(&self, days_to_keep: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `limit` is never read [INFO] [stdout] --> src/modules/database/analytics.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 459 | pub struct DailyStatsQuery { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 462 | pub limit: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_sitemap` and `generate_robots_txt` are never used [INFO] [stdout] --> src/modules/content/compiler.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Compiler { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | fn generate_sitemap(&self, site_content: &SiteContent, generated_files: &mut Vec) -> Result<(), Box) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `generated_files` are never read [INFO] [stdout] --> src/modules/content/compiler.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct CompileResult { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 199 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 200 | pub generated_files: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompileResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_image_links` is never used [INFO] [stdout] --> src/modules/content/markdown.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn process_image_links(html: &str, base_path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `render_archive` and `render_admin_base` are never used [INFO] [stdout] --> src/modules/content/templates.rs:2066:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl TemplateRenderer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2066 | pub fn render_archive(&self, all_items: &Vec<(String, String, String, Option)>, total_items: usize) -> Result Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExportResponse` is never constructed [INFO] [stdout] --> src/modules/web/admin.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ExportResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompilerState` is never constructed [INFO] [stdout] --> src/modules/web/admin.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct CompilerState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modules/web/admin.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl CompilerState { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 87 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_full_content` is never used [INFO] [stdout] --> src/modules/web/admin.rs:917:14 [INFO] [stdout] | [INFO] [stdout] 917 | pub async fn upload_full_content( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_incremental_content` is never used [INFO] [stdout] --> src/modules/web/admin.rs:931:14 [INFO] [stdout] | [INFO] [stdout] 931 | pub async fn upload_incremental_content( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `keyword_index` is never read [INFO] [stdout] --> src/modules/web/recommender.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Recommender { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | keyword_index: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.43s [INFO] running `Command { std: "docker" "inspect" "591af1f280a065235546fffd241c58e5b75a7f423d93d775dc804f3c9a409074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "591af1f280a065235546fffd241c58e5b75a7f423d93d775dc804f3c9a409074", kill_on_drop: false }` [INFO] [stdout] 591af1f280a065235546fffd241c58e5b75a7f423d93d775dc804f3c9a409074 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4d61227fc7e585b8f534252c3276f0746d4b07f383a5d7b84f1064e45f348287 [INFO] running `Command { std: "docker" "start" "-a" "4d61227fc7e585b8f534252c3276f0746d4b07f383a5d7b84f1064e45f348287", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Command` [INFO] [stderr] --> src/modules/cli/mod.rs:1:32 [INFO] [stderr] | [INFO] [stderr] 1 | use clap::{Parser, Subcommand, Command}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/modules/database/analytics.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/modules/database/analytics.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/modules/content/scanner.rs:322:9 [INFO] [stderr] | [INFO] [stderr] 322 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Attachment` [INFO] [stderr] --> src/modules/content/compiler.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::scanner::{Attachment, Scanner, SiteContent}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Category`, `ContentItem`, and `SiteContent` [INFO] [stderr] --> src/modules/web/admin.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::scanner::{Category, ContentItem, Scanner, SiteContent}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Mutex` [INFO] [stderr] --> src/modules/web/admin.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::sync::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Utc` [INFO] [stderr] --> src/modules/web/admin.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use chrono::Utc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Category` [INFO] [stderr] --> src/modules/web/recommender.rs:1:22 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::scanner::{Category, ContentItem, SiteContent}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `theme` [INFO] [stderr] --> src/main.rs:6:64 [INFO] [stderr] | [INFO] [stderr] 6 | use modules::content::{compiler, scanner, markdown, templates, theme}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modules/web/admin.rs:430:17 [INFO] [stderr] | [INFO] [stderr] 430 | let mut scanner = Scanner::new(config.paths.content_dir.clone()); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `timestamp` [INFO] [stderr] --> src/modules/cli/mod.rs:140:9 [INFO] [stderr] | [INFO] [stderr] 140 | let timestamp = Utc::now().format("%Y%m%d_%H%M%S").to_string(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_agent` [INFO] [stderr] --> src/modules/database/analytics.rs:365:37 [INFO] [stderr] | [INFO] [stderr] 365 | pub fn detect_source(referer: &str, user_agent: &str) -> (VisitSource, Option, Option) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `referer_lower` [INFO] [stderr] --> src/modules/database/analytics.rs:366:9 [INFO] [stderr] | [INFO] [stderr] 366 | let referer_lower = referer.to_lowercase(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_referer_lower` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ip` [INFO] [stderr] --> src/modules/database/analytics.rs:447:29 [INFO] [stderr] | [INFO] [stderr] 447 | pub fn get_location_from_ip(ip: &str) -> (Option, Option) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `engine` [INFO] [stderr] --> src/modules/database/analytics.rs:729:22 [INFO] [stderr] | [INFO] [stderr] 729 | let (source, engine, keyword) = detect_source("", ""); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `keyword` [INFO] [stderr] --> src/modules/database/analytics.rs:729:30 [INFO] [stderr] | [INFO] [stderr] 729 | let (source, engine, keyword) = detect_source("", ""); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `engine` [INFO] [stderr] --> src/modules/database/analytics.rs:751:22 [INFO] [stderr] | [INFO] [stderr] 751 | let (source, engine, keyword) = detect_source( [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `keyword` [INFO] [stderr] --> src/modules/database/analytics.rs:751:30 [INFO] [stderr] | [INFO] [stderr] 751 | let (source, engine, keyword) = detect_source( [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `engine` [INFO] [stderr] --> src/modules/database/analytics.rs:758:22 [INFO] [stderr] | [INFO] [stderr] 758 | let (source, engine, keyword) = detect_source( [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `keyword` [INFO] [stderr] --> src/modules/database/analytics.rs:758:30 [INFO] [stderr] | [INFO] [stderr] 758 | let (source, engine, keyword) = detect_source( [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/modules/web/admin.rs:131:23 [INFO] [stderr] | [INFO] [stderr] 131 | fn verify_admin_token(config: &Config, token: &str) -> bool { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/modules/web/admin.rs:918:5 [INFO] [stderr] | [INFO] [stderr] 918 | config: web::Data, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `slug` [INFO] [stderr] --> src/modules/web/admin.rs:1838:9 [INFO] [stderr] | [INFO] [stderr] 1838 | let slug = name.to_lowercase().replace(' ', "-"); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modules/web/recommender.rs:121:13 [INFO] [stderr] | [INFO] [stderr] 121 | let mut recommendations: Vec<_> = scores [INFO] [stderr] | ----^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: methods `clear_pages`, `get_attachments_by_slug`, `get_all_attachments`, `delete_attachment`, `clear_attachments`, and `clear_all` are never used [INFO] [stderr] --> src/modules/database/storage.rs:276:12 [INFO] [stderr] | [INFO] [stderr] 51 | impl StorageDB { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 276 | pub fn clear_pages(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 333 | pub fn get_attachments_by_slug(&self, slug: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 358 | pub fn get_all_attachments(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 383 | pub fn delete_attachment(&self, filename: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 400 | pub fn clear_attachments(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 551 | pub fn clear_all(&mut self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `get_mime_type` is never used [INFO] [stderr] --> src/modules/database/storage.rs:623:8 [INFO] [stderr] | [INFO] [stderr] 623 | pub fn get_mime_type(filename: &str) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_all_comments` and `delete_comment` are never used [INFO] [stderr] --> src/modules/database/comments.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 31 | impl CommentDB { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn get_all_comments(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 133 | pub fn delete_comment(&self, id: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CommentCount` is never constructed [INFO] [stderr] --> src/modules/database/comments.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub struct CommentCount { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_page_visits` and `cleanup_old_records` are never used [INFO] [stderr] --> src/modules/database/analytics.rs:299:12 [INFO] [stderr] | [INFO] [stderr] 95 | impl AnalyticsDB { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 299 | pub fn get_page_visits(&self, page_slug: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 308 | pub fn cleanup_old_records(&self, days_to_keep: i64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `limit` is never read [INFO] [stderr] --> src/modules/database/analytics.rs:462:9 [INFO] [stderr] | [INFO] [stderr] 459 | pub struct DailyStatsQuery { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 462 | pub limit: Option, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `generate_sitemap` and `generate_robots_txt` are never used [INFO] [stderr] --> src/modules/content/compiler.rs:143:8 [INFO] [stderr] | [INFO] [stderr] 15 | impl Compiler { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 143 | fn generate_sitemap(&self, site_content: &SiteContent, generated_files: &mut Vec) -> Result<(), Box) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `success` and `generated_files` are never read [INFO] [stderr] --> src/modules/content/compiler.rs:199:9 [INFO] [stderr] | [INFO] [stderr] 198 | pub struct CompileResult { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 199 | pub success: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 200 | pub generated_files: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CompileResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `process_image_links` is never used [INFO] [stderr] --> src/modules/content/markdown.rs:128:8 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn process_image_links(html: &str, base_path: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `render_archive` and `render_admin_base` are never used [INFO] [stderr] --> src/modules/content/templates.rs:2066:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl TemplateRenderer { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 2066 | pub fn render_archive(&self, all_items: &Vec<(String, String, String, Option)>, total_items: usize) -> Result Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ExportResponse` is never constructed [INFO] [stderr] --> src/modules/web/admin.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct ExportResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CompilerState` is never constructed [INFO] [stderr] --> src/modules/web/admin.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 81 | pub struct CompilerState { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/modules/web/admin.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 86 | impl CompilerState { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 87 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `upload_full_content` is never used [INFO] [stderr] --> src/modules/web/admin.rs:917:14 [INFO] [stderr] | [INFO] [stderr] 917 | pub async fn upload_full_content( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `upload_incremental_content` is never used [INFO] [stderr] --> src/modules/web/admin.rs:931:14 [INFO] [stderr] | [INFO] [stderr] 931 | pub async fn upload_incremental_content( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `keyword_index` is never read [INFO] [stderr] --> src/modules/web/recommender.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Recommender { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 20 | keyword_index: HashMap>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lf_blog` (bin "lf_blog" test) generated 41 warnings (run `cargo fix --bin "lf_blog" -p lf_blog --tests` to apply 25 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/lf_blog-ca9105714a24a593) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test modules::content::markdown::tests::test_parse_markdown ... ok [INFO] [stdout] test modules::content::scanner::tests::test_url_generation ... ok [INFO] [stdout] test modules::content::theme::tests::test_theme_to_css ... ok [INFO] [stdout] test modules::content::markdown::tests::test_parse_without_frontmatter ... ok [INFO] [stdout] test modules::content::theme::tests::test_theme_default ... ok [INFO] [stdout] test modules::database::storage::tests::test_storage_creation ... ok [INFO] [stdout] test modules::database::storage::tests::test_save_and_get_attachment ... ok [INFO] [stdout] test modules::database::storage::tests::test_save_and_get_page ... ok [INFO] [stdout] test modules::database::analytics::tests::test_detect_source ... FAILED [INFO] [stdout] test modules::database::analytics::tests::test_parse_user_agent ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- modules::database::analytics::tests::test_detect_source stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'modules::database::analytics::tests::test_detect_source' (23) panicked at src/modules/database/analytics.rs:739:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: None [INFO] [stdout] right: Some("rust programming") [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5bfc0d6e84d8 - <::print::DisplayBacktrace as core[5a1c3e9896636f3a]::fmt::Display>::fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5bfc0d6fe7ea - ::fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5bfc0d6fe7ea - core[5a1c3e9896636f3a]::fmt::write [INFO] [stdout] 6: 0x5bfc0d6ecd22 - std[d054f6f42beb1baa]::io::default_write_fmt::> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/io/mod.rs:622:11 [INFO] [stdout] 7: 0x5bfc0d6ecd22 - as std[d054f6f42beb1baa]::io::Write>::write_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/io/mod.rs:1977:13 [INFO] [stdout] 8: 0x5bfc0d6c75d6 - ::print [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5bfc0d6c75d6 - std[d054f6f42beb1baa]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5bfc0d6e09c9 - std[d054f6f42beb1baa]::panicking::default_hook [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5bfc0d4ad36c - core[5a1c3e9896636f3a]::ops::function::Fn<(&'a std[d054f6f42beb1baa]::panic::PanicHookInfo<'b>,), Output = ()> + core[5a1c3e9896636f3a]::marker::Send + core[5a1c3e9896636f3a]::marker::Sync> as core[5a1c3e9896636f3a]::ops::function::Fn<(&std[d054f6f42beb1baa]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2291:9 [INFO] [stdout] 12: 0x5bfc0d4ad36c - test[fad20673b750c10e]::test_main_inner::::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:155:21 [INFO] [stdout] 13: 0x5bfc0d6e0b82 - core[5a1c3e9896636f3a]::ops::function::Fn<(&'a std[d054f6f42beb1baa]::panic::PanicHookInfo<'b>,), Output = ()> + core[5a1c3e9896636f3a]::marker::Send + core[5a1c3e9896636f3a]::marker::Sync> as core[5a1c3e9896636f3a]::ops::function::Fn<(&std[d054f6f42beb1baa]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2291:9 [INFO] [stdout] 14: 0x5bfc0d6e0b82 - std[d054f6f42beb1baa]::panicking::panic_with_hook [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5bfc0d6c7692 - std[d054f6f42beb1baa]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x5bfc0d6bef79 - std[d054f6f42beb1baa]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5bfc0d6c83ad - __rustc[7ab284efd7f33ea8]::rust_begin_unwind [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5bfc0d6fefac - core[5a1c3e9896636f3a]::panicking::panic_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5bfc0d6fee63 - core[5a1c3e9896636f3a]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5bfc0d429b4f - core[5a1c3e9896636f3a]::panicking::assert_failed::, core[5a1c3e9896636f3a]::option::Option> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5bfc0d42a115 - lf_blog[987b10f30452d08f]::modules::database::analytics::tests::test_detect_source [INFO] [stdout] at /opt/rustwide/workdir/src/modules/database/analytics.rs:739:9 [INFO] [stdout] 22: 0x5bfc0d429cb7 - lf_blog[987b10f30452d08f]::modules::database::analytics::tests::test_detect_source::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/modules/database/analytics.rs:727:28 [INFO] [stdout] 23: 0x5bfc0d456946 - >::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5bfc0d4a044b - core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5bfc0d4a044b - test[fad20673b750c10e]::__rust_begin_short_backtrace::, fn() -> core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:724:18 [INFO] [stdout] 26: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:747:74 [INFO] [stdout] 27: 0x5bfc0d4adcc5 - as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 28: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panicking::catch_unwind::do_call::, core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panicking::catch_unwind::, core[5a1c3e9896636f3a]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panic::catch_unwind::, core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test_in_process [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:747:27 [INFO] [stdout] 32: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:668:43 [INFO] [stdout] 33: 0x5bfc0d4a8824 - test[fad20673b750c10e]::run_test::{closure#1} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:698:41 [INFO] [stdout] 34: 0x5bfc0d4a8824 - std[d054f6f42beb1baa]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/thread/lifecycle.rs:70:13 [INFO] [stdout] 36: 0x5bfc0d4b0d42 - ::{closure#1}::{closure#0}> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 37: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panicking::catch_unwind::<(), core[5a1c3e9896636f3a]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/thread/lifecycle.rs:68:26 [INFO] [stdout] 41: 0x5bfc0d4b0d42 - ::{closure#1} as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5bfc0d6e7e3f - + core[5a1c3e9896636f3a]::marker::Send> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2277:9 [INFO] [stdout] 43: 0x5bfc0d6e7e3f - ::new::thread_start [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x7094b78e1aa4 - [INFO] [stdout] 45: 0x7094b796ea64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- modules::database::analytics::tests::test_parse_user_agent stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'modules::database::analytics::tests::test_parse_user_agent' (24) panicked at src/modules/database/analytics.rs:723:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "macOS" [INFO] [stdout] right: "iOS" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5bfc0d6e84d8 - std[d054f6f42beb1baa]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5bfc0d6e84d8 - <::print::DisplayBacktrace as core[5a1c3e9896636f3a]::fmt::Display>::fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5bfc0d6fe7ea - ::fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5bfc0d6fe7ea - core[5a1c3e9896636f3a]::fmt::write [INFO] [stdout] 6: 0x5bfc0d6ecd22 - std[d054f6f42beb1baa]::io::default_write_fmt::> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/io/mod.rs:622:11 [INFO] [stdout] 7: 0x5bfc0d6ecd22 - as std[d054f6f42beb1baa]::io::Write>::write_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/io/mod.rs:1977:13 [INFO] [stdout] 8: 0x5bfc0d6c75d6 - ::print [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5bfc0d6c75d6 - std[d054f6f42beb1baa]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5bfc0d6e09c9 - std[d054f6f42beb1baa]::panicking::default_hook [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5bfc0d4ad36c - core[5a1c3e9896636f3a]::ops::function::Fn<(&'a std[d054f6f42beb1baa]::panic::PanicHookInfo<'b>,), Output = ()> + core[5a1c3e9896636f3a]::marker::Send + core[5a1c3e9896636f3a]::marker::Sync> as core[5a1c3e9896636f3a]::ops::function::Fn<(&std[d054f6f42beb1baa]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2291:9 [INFO] [stdout] 12: 0x5bfc0d4ad36c - test[fad20673b750c10e]::test_main_inner::::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:155:21 [INFO] [stdout] 13: 0x5bfc0d6e0b82 - core[5a1c3e9896636f3a]::ops::function::Fn<(&'a std[d054f6f42beb1baa]::panic::PanicHookInfo<'b>,), Output = ()> + core[5a1c3e9896636f3a]::marker::Send + core[5a1c3e9896636f3a]::marker::Sync> as core[5a1c3e9896636f3a]::ops::function::Fn<(&std[d054f6f42beb1baa]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2291:9 [INFO] [stdout] 14: 0x5bfc0d6e0b82 - std[d054f6f42beb1baa]::panicking::panic_with_hook [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5bfc0d6c7692 - std[d054f6f42beb1baa]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x5bfc0d6bef79 - std[d054f6f42beb1baa]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5bfc0d6c83ad - __rustc[7ab284efd7f33ea8]::rust_begin_unwind [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5bfc0d6fefac - core[5a1c3e9896636f3a]::panicking::panic_fmt [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5bfc0d6fee63 - core[5a1c3e9896636f3a]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5bfc0d429ba0 - core[5a1c3e9896636f3a]::panicking::assert_failed:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5bfc0d42aa00 - lf_blog[987b10f30452d08f]::modules::database::analytics::tests::test_parse_user_agent [INFO] [stdout] at /opt/rustwide/workdir/src/modules/database/analytics.rs:723:9 [INFO] [stdout] 22: 0x5bfc0d429ce7 - lf_blog[987b10f30452d08f]::modules::database::analytics::tests::test_parse_user_agent::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/modules/database/analytics.rs:712:31 [INFO] [stdout] 23: 0x5bfc0d456986 - >::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5bfc0d4a044b - core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5bfc0d4a044b - test[fad20673b750c10e]::__rust_begin_short_backtrace::, fn() -> core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:724:18 [INFO] [stdout] 26: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:747:74 [INFO] [stdout] 27: 0x5bfc0d4adcc5 - as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 28: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panicking::catch_unwind::do_call::, core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panicking::catch_unwind::, core[5a1c3e9896636f3a]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x5bfc0d4adcc5 - std[d054f6f42beb1baa]::panic::catch_unwind::, core[5a1c3e9896636f3a]::result::Result<(), alloc[154f689e5dd3bae5]::string::String>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test_in_process [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:747:27 [INFO] [stdout] 32: 0x5bfc0d4adcc5 - test[fad20673b750c10e]::run_test::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:668:43 [INFO] [stdout] 33: 0x5bfc0d4a8824 - test[fad20673b750c10e]::run_test::{closure#1} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/test/src/lib.rs:698:41 [INFO] [stdout] 34: 0x5bfc0d4a8824 - std[d054f6f42beb1baa]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/thread/lifecycle.rs:70:13 [INFO] [stdout] 36: 0x5bfc0d4b0d42 - ::{closure#1}::{closure#0}> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 37: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panicking::catch_unwind::<(), core[5a1c3e9896636f3a]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5bfc0d4b0d42 - std[d054f6f42beb1baa]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/thread/lifecycle.rs:68:26 [INFO] [stdout] 41: 0x5bfc0d4b0d42 - ::{closure#1} as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5bfc0d6e7e3f - + core[5a1c3e9896636f3a]::marker::Send> as core[5a1c3e9896636f3a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/alloc/src/boxed.rs:2277:9 [INFO] [stdout] 43: 0x5bfc0d6e7e3f - ::new::thread_start [INFO] [stdout] at /rustc/28f95933dc0727396c07b48d0a8cb5211b7fb472/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x7094b78e1aa4 - [INFO] [stdout] 45: 0x7094b796ea64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] modules::database::analytics::tests::test_detect_source [INFO] [stdout] modules::database::analytics::tests::test_parse_user_agent [INFO] [stdout] [INFO] [stdout] test result: FAILED. 8 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin lf_blog` [INFO] running `Command { std: "docker" "inspect" "4d61227fc7e585b8f534252c3276f0746d4b07f383a5d7b84f1064e45f348287", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d61227fc7e585b8f534252c3276f0746d4b07f383a5d7b84f1064e45f348287", kill_on_drop: false }` [INFO] [stdout] 4d61227fc7e585b8f534252c3276f0746d4b07f383a5d7b84f1064e45f348287