[INFO] cloning repository https://github.com/seiryolinux/koushou [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seiryolinux/koushou" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseiryolinux%2Fkoushou", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseiryolinux%2Fkoushou'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] abd12e5785915cf587ca8ed6279178ca605d97b2 [INFO] building seiryolinux/koushou against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseiryolinux%2Fkoushou" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seiryolinux/koushou [INFO] finished tweaking git repo https://github.com/seiryolinux/koushou [INFO] tweaked toml for git repo https://github.com/seiryolinux/koushou written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seiryolinux/koushou on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seiryolinux/koushou 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" "+58b1b3c5342a414c161338871f8004258ccef2a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fbb81664eb9efc9601ff04311adcc1d26146add5364b04a3312f014dba62af5 [INFO] running `Command { std: "docker" "start" "-a" "1fbb81664eb9efc9601ff04311adcc1d26146add5364b04a3312f014dba62af5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fbb81664eb9efc9601ff04311adcc1d26146add5364b04a3312f014dba62af5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fbb81664eb9efc9601ff04311adcc1d26146add5364b04a3312f014dba62af5", kill_on_drop: false }` [INFO] [stdout] 1fbb81664eb9efc9601ff04311adcc1d26146add5364b04a3312f014dba62af5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70d3870224a2b71359ceb23503adb8bb2bbd884c395d7875d8c46759b4b736d0 [INFO] running `Command { std: "docker" "start" "-a" "70d3870224a2b71359ceb23503adb8bb2bbd884c395d7875d8c46759b4b736d0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling tracing v0.1.43 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling cc v1.2.49 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling iri-string v0.7.9 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rustls-pki-types v1.13.1 [INFO] [stderr] Compiling miette v7.6.0 [INFO] [stderr] Compiling console v0.16.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling filetime v0.2.26 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling xattr v1.6.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling toml_writer v1.0.4 [INFO] [stderr] Compiling unit-prefix v0.5.2 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling winnow v0.6.24 [INFO] [stderr] Compiling rusqlite v0.37.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling indicatif v0.18.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling serde_spanned v1.0.3 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling toml v0.9.8 [INFO] [stderr] Compiling kdl v6.5.0 (https://github.com/kdl-org/kdl-rs?tag=v6.5.0#268f3a2d) [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.25 [INFO] [stderr] Compiling kspkg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/mkdb.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 138 | for child_doc in pkg_node.children() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 138 - for child_doc in pkg_node.children() { [INFO] [stdout] 138 + while let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 138 - for child_doc in pkg_node.children() { [INFO] [stdout] 138 + if let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/sync.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [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: `PathBuf` [INFO] [stdout] --> src/resolve.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `params` [INFO] [stdout] --> src/depres.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use rusqlite::{Connection, params}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/depres.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 154 | ... _ => VersionPredicate::Any, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/depres.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 152 | ... Some(p) => VersionPredicate::Exact(p.to_string()), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 153 | ... None => VersionPredicate::Any, [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 154 | ... _ => VersionPredicate::Any, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `homepage` and `license` are never read [INFO] [stdout] --> src/package.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Package { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub homepage: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | pub license: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Package` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `contains` are never used [INFO] [stdout] --> src/pkgdb.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl PackageDatabase { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get(&self, name: &str) -> Result<&InstalledPackage, PkgDbError> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn contains(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `version`, `arch`, and `depends` are never read [INFO] [stdout] --> src/resolve.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct ResolvedPackage { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 34 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | pub arch: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub depends: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResolvedPackage` 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: method `key` is never used [INFO] [stdout] --> src/depres.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl PackageId { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 37 | pub fn key(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | Exact(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 - Exact(String), [INFO] [stdout] 45 + Exact(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | GreaterOrEqual(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 46 - GreaterOrEqual(String), [INFO] [stdout] 46 + GreaterOrEqual(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | LessThan(String), [INFO] [stdout] | -------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 47 - LessThan(String), [INFO] [stdout] 47 + LessThan(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matches` is never used [INFO] [stdout] --> src/depres.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl VersionPredicate { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 51 | pub fn matches(&self, candidate: &str) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `predicate` is never read [INFO] [stdout] --> src/depres.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Dependency { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 63 | pub name: String, [INFO] [stdout] 64 | pub predicate: VersionPredicate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` 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 `parse_dependency` is never used [INFO] [stdout] --> src/depres.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | fn parse_dependency(s: &str) -> Option<(String, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/package.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | for child_doc in pkg_node.children() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 72 - for child_doc in pkg_node.children() { [INFO] [stdout] 72 + while let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 72 - for child_doc in pkg_node.children() { [INFO] [stdout] 72 + if let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "70d3870224a2b71359ceb23503adb8bb2bbd884c395d7875d8c46759b4b736d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70d3870224a2b71359ceb23503adb8bb2bbd884c395d7875d8c46759b4b736d0", kill_on_drop: false }` [INFO] [stdout] 70d3870224a2b71359ceb23503adb8bb2bbd884c395d7875d8c46759b4b736d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa21511fc32d2bcd19e400f6b9fdf104d66063ac80868de5aac43891dda6232b [INFO] running `Command { std: "docker" "start" "-a" "fa21511fc32d2bcd19e400f6b9fdf104d66063ac80868de5aac43891dda6232b", kill_on_drop: false }` [INFO] [stderr] Compiling kspkg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/sync.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [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: `PathBuf` [INFO] [stdout] --> src/resolve.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `params` [INFO] [stdout] --> src/depres.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use rusqlite::{Connection, params}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/mkdb.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 138 | for child_doc in pkg_node.children() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 138 - for child_doc in pkg_node.children() { [INFO] [stdout] 138 + while let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 138 - for child_doc in pkg_node.children() { [INFO] [stdout] 138 + if let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/depres.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 154 | ... _ => VersionPredicate::Any, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/depres.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 152 | ... Some(p) => VersionPredicate::Exact(p.to_string()), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 153 | ... None => VersionPredicate::Any, [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 154 | ... _ => VersionPredicate::Any, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `homepage` and `license` are never read [INFO] [stdout] --> src/package.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Package { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub homepage: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | pub license: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Package` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `contains` are never used [INFO] [stdout] --> src/pkgdb.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl PackageDatabase { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get(&self, name: &str) -> Result<&InstalledPackage, PkgDbError> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn contains(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `version`, `arch`, and `depends` are never read [INFO] [stdout] --> src/resolve.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct ResolvedPackage { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 34 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | pub arch: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub depends: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResolvedPackage` 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: method `key` is never used [INFO] [stdout] --> src/depres.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl PackageId { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 37 | pub fn key(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | Exact(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 - Exact(String), [INFO] [stdout] 45 + Exact(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | GreaterOrEqual(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 46 - GreaterOrEqual(String), [INFO] [stdout] 46 + GreaterOrEqual(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/depres.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | LessThan(String), [INFO] [stdout] | -------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VersionPredicate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 47 - LessThan(String), [INFO] [stdout] 47 + LessThan(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matches` is never used [INFO] [stdout] --> src/depres.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl VersionPredicate { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 51 | pub fn matches(&self, candidate: &str) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `predicate` is never read [INFO] [stdout] --> src/depres.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Dependency { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 63 | pub name: String, [INFO] [stdout] 64 | pub predicate: VersionPredicate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` 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 `parse_dependency` is never used [INFO] [stdout] --> src/depres.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | fn parse_dependency(s: &str) -> Option<(String, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/package.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | for child_doc in pkg_node.children() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 72 - for child_doc in pkg_node.children() { [INFO] [stdout] 72 + while let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 72 - for child_doc in pkg_node.children() { [INFO] [stdout] 72 + if let Some(child_doc) = pkg_node.children() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.97s [INFO] running `Command { std: "docker" "inspect" "fa21511fc32d2bcd19e400f6b9fdf104d66063ac80868de5aac43891dda6232b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa21511fc32d2bcd19e400f6b9fdf104d66063ac80868de5aac43891dda6232b", kill_on_drop: false }` [INFO] [stdout] fa21511fc32d2bcd19e400f6b9fdf104d66063ac80868de5aac43891dda6232b