[INFO] fetching crate pageos-pkgr 2.0.4... [INFO] testing pageos-pkgr-2.0.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate pageos-pkgr 2.0.4 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate pageos-pkgr 2.0.4 [INFO] finished tweaking crates.io crate pageos-pkgr 2.0.4 [INFO] tweaked toml for crates.io crate pageos-pkgr 2.0.4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate pageos-pkgr 2.0.4 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pageos-pkgr 2.0.4 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" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 930c4dc5422f28ff1c2ecb73c377467dff1f639cfce6d0e90aae46109b949318 [INFO] running `Command { std: "docker" "start" "-a" "930c4dc5422f28ff1c2ecb73c377467dff1f639cfce6d0e90aae46109b949318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "930c4dc5422f28ff1c2ecb73c377467dff1f639cfce6d0e90aae46109b949318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "930c4dc5422f28ff1c2ecb73c377467dff1f639cfce6d0e90aae46109b949318", kill_on_drop: false }` [INFO] [stdout] 930c4dc5422f28ff1c2ecb73c377467dff1f639cfce6d0e90aae46109b949318 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 623c1fa82e15c08327af8104102465a186e787ad082d9d3108544336a4800360 [INFO] running `Command { std: "docker" "start" "-a" "623c1fa82e15c08327af8104102465a186e787ad082d9d3108544336a4800360", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling toml_writer v1.0.2 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling clap_builder v4.5.41 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling toml_parser v1.0.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling clap v4.5.41 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling toml_datetime v0.7.0 [INFO] [stderr] Compiling serde_spanned v1.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.9.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling pageos-pkgr v2.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `final_version` [INFO] [stdout] --> src/repo.rs:275:37 [INFO] [stdout] | [INFO] [stdout] 275 | let (source_id, package_id, final_version) = match parts.len() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_absolute` [INFO] [stdout] --> src/path.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let is_absolute = path.is_absolute(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_absolute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `package_name` [INFO] [stdout] --> src/repo.rs:542:25 [INFO] [stdout] | [INFO] [stdout] 542 | let package_name = entry.file_name().to_string_lossy().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `package_dir` [INFO] [stdout] --> src/repo.rs:630:5 [INFO] [stdout] | [INFO] [stdout] 630 | package_dir: &Path, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_source`, `enable_source`, `disable_source`, `remove_source`, and `update_source` are never used [INFO] [stdout] --> src/config.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl ConfigManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn add_source(&self, source: SourceConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn enable_source(&self, source_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn disable_source(&self, source_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn remove_source(&self, source_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn update_source(&self, source_id: &str, updated_source: SourceConfig) -> 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 `verify_file` is never used [INFO] [stdout] --> src/crypto.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn verify_file(file_path: &str, expected_hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PackageInfo` is never constructed [INFO] [stdout] --> src/index.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PackageInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexManager` is never constructed [INFO] [stdout] --> src/index.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct IndexManager { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/index.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl IndexManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 40 | /// 创建新的索引管理器实例 [INFO] [stdout] 41 | pub fn new(index_dir: PathBuf, repo_path: PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn get_index_path(&self) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn ensure_index_dir(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub async fn update_source_index(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn query_package( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn list_packages(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | fn load_index(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn save_index(&self, index: &serde_json::Value) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileManifest` is never constructed [INFO] [stdout] --> src/metadata.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct FileManifest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VersionHistory` is never constructed [INFO] [stdout] --> src/metadata.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct VersionHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_version`, `get_latest`, and `has_version` are never used [INFO] [stdout] --> src/metadata.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl VersionHistory { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 60 | /// 创建一个新的版本历史记录 [INFO] [stdout] 61 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn add_version(&mut self, version: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get_latest(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn has_version(&self, version: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_file` and `get_file_hash` are never used [INFO] [stdout] --> src/metadata.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl PackageMetadata { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn has_file(&self, path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_file_hash(&self, path: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/metadata.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl FileManifest { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 113 | /// 创建一个新的文件清单项 [INFO] [stdout] 114 | pub fn new(path: String, hash: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dir_all` is never used [INFO] [stdout] --> src/path.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn create_dir_all>(path: P) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_path` is never used [INFO] [stdout] --> src/path.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn normalize_path>(path: P) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config_path` is never used [INFO] [stdout] --> src/path.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn get_config_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Create`, `Remove`, and `Move` are never constructed [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Operation { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 11 | /// 创建文件操作 [INFO] [stdout] 12 | Create { path: PathBuf }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | /// 删除文件操作 [INFO] [stdout] 14 | Remove { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` 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: fields `log` and `committed` are never read [INFO] [stdout] --> src/transaction.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 30 | /// 操作日志,记录事务中执行的所有操作 [INFO] [stdout] 31 | log: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | /// 事务是否已提交 [INFO] [stdout] 33 | committed: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/transaction.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 37 | /// 创建一个新的事务 [INFO] [stdout] 38 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn begin() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn commit(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn rollback(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn safe_create(&mut self, path: &std::path::Path, content: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn safe_remove(&mut self, path: &std::path::Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn safe_move(&mut self, from: &std::path::Path, to: &std::path::Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare` is never used [INFO] [stdout] --> src/version.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn compare(version1: &str, version2: &str, versions: &[String]) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_latest` is never used [INFO] [stdout] --> src/version.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn get_latest(versions: &[String]) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/version.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn parse(version: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "623c1fa82e15c08327af8104102465a186e787ad082d9d3108544336a4800360", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "623c1fa82e15c08327af8104102465a186e787ad082d9d3108544336a4800360", kill_on_drop: false }` [INFO] [stdout] 623c1fa82e15c08327af8104102465a186e787ad082d9d3108544336a4800360 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f3507a0cacbafe5074f6a720ce16e8a2487e6ba2f394420a4da32560a76f42a [INFO] running `Command { std: "docker" "start" "-a" "0f3507a0cacbafe5074f6a720ce16e8a2487e6ba2f394420a4da32560a76f42a", kill_on_drop: false }` [INFO] [stderr] Compiling pageos-pkgr v2.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/config.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | use std::fs; [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 variable: `final_version` [INFO] [stdout] --> src/repo.rs:275:37 [INFO] [stdout] | [INFO] [stdout] 275 | let (source_id, package_id, final_version) = match parts.len() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/config.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 488 | let mut updated_source = SourceConfig { [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: `index_manager` [INFO] [stdout] --> src/index.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let index_manager = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_path` [INFO] [stdout] --> src/index.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let config_path = config_dir.join("config.toml"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_absolute` [INFO] [stdout] --> src/path.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let is_absolute = path.is_absolute(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_absolute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `package_name` [INFO] [stdout] --> src/repo.rs:542:25 [INFO] [stdout] | [INFO] [stdout] 542 | let package_name = entry.file_name().to_string_lossy().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `package_dir` [INFO] [stdout] --> src/repo.rs:630:5 [INFO] [stdout] | [INFO] [stdout] 630 | package_dir: &Path, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repo_path` is never read [INFO] [stdout] --> src/index.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct IndexManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | repo_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure_index_dir`, `update_source_index`, and `save_index` are never used [INFO] [stdout] --> src/index.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl IndexManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn ensure_index_dir(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub async fn update_source_index(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn save_index(&self, index: &serde_json::Value) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_config_path` is never used [INFO] [stdout] --> src/path.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn get_config_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare` is never used [INFO] [stdout] --> src/version.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn compare(version1: &str, version2: &str, versions: &[String]) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_latest` is never used [INFO] [stdout] --> src/version.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn get_latest(versions: &[String]) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/version.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn parse(version: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.44s [INFO] running `Command { std: "docker" "inspect" "0f3507a0cacbafe5074f6a720ce16e8a2487e6ba2f394420a4da32560a76f42a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f3507a0cacbafe5074f6a720ce16e8a2487e6ba2f394420a4da32560a76f42a", kill_on_drop: false }` [INFO] [stdout] 0f3507a0cacbafe5074f6a720ce16e8a2487e6ba2f394420a4da32560a76f42a [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1e432bc634d8914127b2a0f7eae857cc458be575727b853facf5492878336655 [INFO] running `Command { std: "docker" "start" "-a" "1e432bc634d8914127b2a0f7eae857cc458be575727b853facf5492878336655", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::fs` [INFO] [stderr] --> src/config.rs:289:9 [INFO] [stderr] | [INFO] [stderr] 289 | use std::fs; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `final_version` [INFO] [stderr] --> src/repo.rs:275:37 [INFO] [stderr] | [INFO] [stderr] 275 | let (source_id, package_id, final_version) = match parts.len() { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_version` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/config.rs:488:13 [INFO] [stderr] | [INFO] [stderr] 488 | let mut updated_source = SourceConfig { [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: `index_manager` [INFO] [stderr] --> src/index.rs:210:13 [INFO] [stderr] | [INFO] [stderr] 210 | let index_manager = [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_manager` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config_path` [INFO] [stderr] --> src/index.rs:216:13 [INFO] [stderr] | [INFO] [stderr] 216 | let config_path = config_dir.join("config.toml"); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_absolute` [INFO] [stderr] --> src/path.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | let is_absolute = path.is_absolute(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_absolute` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `package_name` [INFO] [stderr] --> src/repo.rs:542:25 [INFO] [stderr] | [INFO] [stderr] 542 | let package_name = entry.file_name().to_string_lossy().to_string(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `package_dir` [INFO] [stderr] --> src/repo.rs:630:5 [INFO] [stderr] | [INFO] [stderr] 630 | package_dir: &Path, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_package_dir` [INFO] [stderr] [INFO] [stderr] warning: field `repo_path` is never read [INFO] [stderr] --> src/index.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 32 | pub struct IndexManager { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 36 | repo_path: PathBuf, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `ensure_index_dir`, `update_source_index`, and `save_index` are never used [INFO] [stderr] --> src/index.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 39 | impl IndexManager { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 54 | fn ensure_index_dir(&self) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | pub async fn update_source_index(&self) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 197 | fn save_index(&self, index: &serde_json::Value) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_config_path` is never used [INFO] [stderr] --> src/path.rs:202:8 [INFO] [stderr] | [INFO] [stderr] 202 | pub fn get_config_path() -> PathBuf { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compare` is never used [INFO] [stderr] --> src/version.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn compare(version1: &str, version2: &str, versions: &[String]) -> i32 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_latest` is never used [INFO] [stderr] --> src/version.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn get_latest(versions: &[String]) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse` is never used [INFO] [stderr] --> src/version.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn parse(version: &str) -> &str { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `pageos-pkgr` (bin "pageos-pkgr" test) generated 14 warnings (run `cargo fix --bin "pageos-pkgr" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/pageos_pkgr-17c08eb56ebfff8c) [INFO] [stdout] [INFO] [stdout] running 42 tests [INFO] [stdout] test config::tests::test_config_serialization ... ok [INFO] [stdout] test config::tests::test_default_config ... ok [INFO] [stdout] test app::tests::test_init_and_new ... ok [INFO] [stdout] test index::tests::test_list_packages ... ok [INFO] [stdout] test metadata::tests::test_file_manifest_creation ... ok [INFO] [stdout] test metadata::tests::test_package_metadata_add_and_remove_file ... ok [INFO] [stdout] test index::tests::test_update_source_index ... ok [INFO] [stdout] test metadata::tests::test_version_history_operations ... ok [INFO] [stdout] test crypto::tests::test_file_hash ... ok [INFO] [stdout] test metadata::tests::test_package_metadata_creation ... ok [INFO] [stdout] test index::tests::test_query_package ... ok [INFO] [stdout] test config::tests::test_config_manager_add_source ... ok [INFO] [stdout] test path::tests::test_expand_path_home ... ok [INFO] [stdout] test app::tests::test_add_and_remove_file ... ok [INFO] [stdout] test path::tests::test_expand_path_home_with_subdir ... ok [INFO] [stdout] test app::tests::test_add_and_remove_directory ... ok [INFO] [stdout] test path::tests::test_expand_path_relative ... ok [INFO] [stdout] test config::tests::test_config_manager_load_save ... ok [INFO] [stdout] test path::tests::test_normalize_path_current_dir ... ok [INFO] [stdout] test path::tests::test_normalize_path_multiple_dots ... ok [INFO] [stdout] test path::tests::test_normalize_path_parent_dir ... ok [INFO] [stdout] test config::tests::test_config_validation ... ok [INFO] [stdout] test config::tests::test_config_manager_remove_source ... ok [INFO] [stdout] test config::tests::test_config_manager_enable_disable_source ... ok [INFO] [stdout] test fsxg::tests::test_create_and_remove_directory ... ok [INFO] [stdout] test config::tests::test_config_manager_update_source ... ok [INFO] [stdout] test crypto::tests::test_verify_file ... ok [INFO] [stdout] test crypto::tests::test_verify_file_case_insensitive ... ok [INFO] [stdout] test path::tests::test_create_dir_all ... ok [INFO] [stdout] test fsxg::tests::test_get_directory_files ... ok [INFO] [stdout] test path::tests::test_normalize_path_relative ... ok [INFO] [stdout] test path::tests::test_normalize_path_root_dot_dot ... ok [INFO] [stdout] test path::tests::test_normalize_path_simple ... ok [INFO] [stdout] test path::tests::test_normalize_path_trailing_slash ... ok [INFO] [stdout] test transaction::tests::test_transaction_commit ... ok [INFO] [stdout] test transaction::tests::test_transaction_rollback_create ... ok [INFO] [stdout] test transaction::tests::test_transaction_rollback_move ... ok [INFO] [stdout] test transaction::tests::test_transaction_rollback_move_overwrite ... ok [INFO] [stdout] test transaction::tests::test_transaction_rollback_remove ... ok [INFO] [stdout] test net::tests::test_download_file_to_invalid_path ... ok [INFO] [stdout] test net::tests::test_download_file_invalid_url ... ok [INFO] [stdout] test net::tests::test_download_file_success ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- net::tests::test_download_file_success stdout ---- [INFO] [stdout] Error: reqwest::Error { kind: Request, url: "https://httpbin.org/bytes/1024", source: hyper_util::client::legacy::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })) } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] net::tests::test_download_file_success [INFO] [stdout] [INFO] [stdout] test result: FAILED. 41 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.33s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin pageos-pkgr` [INFO] running `Command { std: "docker" "inspect" "1e432bc634d8914127b2a0f7eae857cc458be575727b853facf5492878336655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e432bc634d8914127b2a0f7eae857cc458be575727b853facf5492878336655", kill_on_drop: false }` [INFO] [stdout] 1e432bc634d8914127b2a0f7eae857cc458be575727b853facf5492878336655