[INFO] fetching crate pageos-pkgr 2.0.4...
[INFO] building pageos-pkgr-2.0.4 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1
[INFO] extracting crate pageos-pkgr 2.0.4 into /workspace/builds/worker-2-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-2-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate pageos-pkgr 2.0.4 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 404923efa194a4798b3ec2282f45158f74ec4e0b5c947d671d7adb1c6e71b8bb
[INFO] running `Command { std: "docker" "start" "-a" "404923efa194a4798b3ec2282f45158f74ec4e0b5c947d671d7adb1c6e71b8bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "404923efa194a4798b3ec2282f45158f74ec4e0b5c947d671d7adb1c6e71b8bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "404923efa194a4798b3ec2282f45158f74ec4e0b5c947d671d7adb1c6e71b8bb", kill_on_drop: false }`
[INFO] [stdout] 404923efa194a4798b3ec2282f45158f74ec4e0b5c947d671d7adb1c6e71b8bb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 324fc669998708618a8e04635b9905cde1a5f6fefff50168f24e89ab22c643bd
[INFO] running `Command { std: "docker" "start" "-a" "324fc669998708618a8e04635b9905cde1a5f6fefff50168f24e89ab22c643bd", kill_on_drop: false }`
[INFO] [stderr]    Compiling cc v1.2.30
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling serde_json v1.0.141
[INFO] [stderr]    Compiling anstyle-query v1.1.3
[INFO] [stderr]    Compiling rustix v1.0.8
[INFO] [stderr]    Compiling winnow v0.7.12
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling dirs-sys v0.5.0
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling anstream v0.6.19
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling toml_writer v1.0.2
[INFO] [stderr]    Compiling clap_builder v4.5.41
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling dirs v6.0.0
[INFO] [stderr]    Compiling toml_parser v1.0.1
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]    Compiling openssl v0.10.73
[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 clap v4.5.41
[INFO] [stderr]    Compiling zerovec v0.11.2
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[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 idna_adapter v1.2.1
[INFO] [stderr]    Compiling serde_spanned v1.0.0
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling tower-http v0.6.6
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling toml_datetime v0.7.0
[INFO] [stderr]    Compiling h2 v0.4.11
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling toml v0.9.2
[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<bool> {
[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<dyn std::error::Error>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub async fn update_source_index(&self) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 123 |     pub fn query_package(
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn list_packages(&self) -> Result<Vec<PackageInfo>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     fn load_index(&self) -> Result<serde_json::Value, Box<dyn std::error::Error>> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 197 |     fn save_index(&self, index: &serde_json::Value) -> Result<(), Box<dyn std::error::Error>> {
[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<P: AsRef<Path>>(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<P: AsRef<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<Operation>,
[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 34.46s
[INFO] running `Command { std: "docker" "inspect" "324fc669998708618a8e04635b9905cde1a5f6fefff50168f24e89ab22c643bd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "324fc669998708618a8e04635b9905cde1a5f6fefff50168f24e89ab22c643bd", kill_on_drop: false }`
[INFO] [stdout] 324fc669998708618a8e04635b9905cde1a5f6fefff50168f24e89ab22c643bd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3c9589b6fc98c0051df55880e95624d77be9c22d695a491ed03340de46788adc
[INFO] running `Command { std: "docker" "start" "-a" "3c9589b6fc98c0051df55880e95624d77be9c22d695a491ed03340de46788adc", 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: `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: `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: `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<dyn std::error::Error>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub async fn update_source_index(&self) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 197 |     fn save_index(&self, index: &serde_json::Value) -> Result<(), Box<dyn std::error::Error>> {
[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.55s
[INFO] running `Command { std: "docker" "inspect" "3c9589b6fc98c0051df55880e95624d77be9c22d695a491ed03340de46788adc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3c9589b6fc98c0051df55880e95624d77be9c22d695a491ed03340de46788adc", kill_on_drop: false }`
[INFO] [stdout] 3c9589b6fc98c0051df55880e95624d77be9c22d695a491ed03340de46788adc
