[INFO] cloning repository https://github.com/Dhir0808/cargo-rust-unused
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dhir0808/cargo-rust-unused" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDhir0808%2Fcargo-rust-unused", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDhir0808%2Fcargo-rust-unused'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 022221d8d0860858464230a0f7b0b83e558fd3f4
[INFO] testing Dhir0808/cargo-rust-unused against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDhir0808%2Fcargo-rust-unused" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  61% (1111/1805)
Updating files:  62% (1120/1805)
Updating files:  63% (1138/1805)
Updating files:  64% (1156/1805)
Updating files:  65% (1174/1805)
Updating files:  66% (1192/1805)
Updating files:  67% (1210/1805)
Updating files:  68% (1228/1805)
Updating files:  68% (1244/1805)
Updating files:  69% (1246/1805)
Updating files:  70% (1264/1805)
Updating files:  71% (1282/1805)
Updating files:  72% (1300/1805)
Updating files:  73% (1318/1805)
Updating files:  74% (1336/1805)
Updating files:  75% (1354/1805)
Updating files:  76% (1372/1805)
Updating files:  77% (1390/1805)
Updating files:  78% (1408/1805)
Updating files:  79% (1426/1805)
Updating files:  80% (1444/1805)
Updating files:  81% (1463/1805)
Updating files:  82% (1481/1805)
Updating files:  83% (1499/1805)
Updating files:  84% (1517/1805)
Updating files:  85% (1535/1805)
Updating files:  86% (1553/1805)
Updating files:  87% (1571/1805)
Updating files:  88% (1589/1805)
Updating files:  89% (1607/1805)
Updating files:  90% (1625/1805)
Updating files:  91% (1643/1805)
Updating files:  92% (1661/1805)
Updating files:  93% (1679/1805)
Updating files:  94% (1697/1805)
Updating files:  95% (1715/1805)
Updating files:  96% (1733/1805)
Updating files:  97% (1751/1805)
Updating files:  98% (1769/1805)
Updating files:  99% (1787/1805)
Updating files: 100% (1805/1805)
Updating files: 100% (1805/1805), done.
[INFO] started tweaking git repo https://github.com/Dhir0808/cargo-rust-unused
[INFO] finished tweaking git repo https://github.com/Dhir0808/cargo-rust-unused
[INFO] tweaked toml for git repo https://github.com/Dhir0808/cargo-rust-unused written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Dhir0808/cargo-rust-unused on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Dhir0808/cargo-rust-unused 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4d8b8f89e03bc91ee6b063f26324b7611569b9a05226e6ae4b498390d86041c6
[INFO] running `Command { std: "docker" "start" "-a" "4d8b8f89e03bc91ee6b063f26324b7611569b9a05226e6ae4b498390d86041c6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4d8b8f89e03bc91ee6b063f26324b7611569b9a05226e6ae4b498390d86041c6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4d8b8f89e03bc91ee6b063f26324b7611569b9a05226e6ae4b498390d86041c6", kill_on_drop: false }`
[INFO] [stdout] 4d8b8f89e03bc91ee6b063f26324b7611569b9a05226e6ae4b498390d86041c6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a846f23ff48efb049010eab0bfe455f1895d4c1469513dd9c674a9271337a814
[INFO] running `Command { std: "docker" "start" "-a" "a846f23ff48efb049010eab0bfe455f1895d4c1469513dd9c674a9271337a814", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling semver v1.0.26
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling camino v1.1.9
[INFO] [stderr]    Compiling is-terminal v0.4.16
[INFO] [stderr]    Compiling colored v2.2.0
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling env_logger v0.10.2
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling clap v4.5.37
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling cargo-platform v0.1.9
[INFO] [stderr]    Compiling cargo_metadata v0.18.1
[INFO] [stderr]    Compiling cargo-rust-unused v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 35s
[INFO] running `Command { std: "docker" "inspect" "a846f23ff48efb049010eab0bfe455f1895d4c1469513dd9c674a9271337a814", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a846f23ff48efb049010eab0bfe455f1895d4c1469513dd9c674a9271337a814", kill_on_drop: false }`
[INFO] [stdout] a846f23ff48efb049010eab0bfe455f1895d4c1469513dd9c674a9271337a814
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a7a30ba34944497055aadaace3c6e0669b401d7b8adc4c52149260defe8b7aec
[INFO] running `Command { std: "docker" "start" "-a" "a7a30ba34944497055aadaace3c6e0669b401d7b8adc4c52149260defe8b7aec", kill_on_drop: false }`
[INFO] [stderr]    Compiling getrandom v0.3.2
[INFO] [stderr]    Compiling rustix v1.0.5
[INFO] [stderr]    Compiling bitflags v2.9.0
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling tempfile v3.19.1
[INFO] [stderr]    Compiling cargo-rust-unused v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 17.11s
[INFO] running `Command { std: "docker" "inspect" "a7a30ba34944497055aadaace3c6e0669b401d7b8adc4c52149260defe8b7aec", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a7a30ba34944497055aadaace3c6e0669b401d7b8adc4c52149260defe8b7aec", kill_on_drop: false }`
[INFO] [stdout] a7a30ba34944497055aadaace3c6e0669b401d7b8adc4c52149260defe8b7aec
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] c10a0d41dd3a707b112d29e10be02ba58c2634f11f9c82e76b9b5fe69ec9f2a6
[INFO] running `Command { std: "docker" "start" "-a" "c10a0d41dd3a707b112d29e10be02ba58c2634f11f9c82e76b9b5fe69ec9f2a6", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cargo_rust_unused-7e5e7c535d3ad28a)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::test_analyzer_finds_unused_items ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::test_analyzer_finds_unused_items stdout ----
[INFO] [stdout] Error: Failed to get cargo metadata
[INFO] [stdout] 
[INFO] [stdout] Caused by:
[INFO] [stdout]     `cargo metadata` exited with an error:     Updating crates.io index
[INFO] [stdout]     warning: spurious network error (3 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
[INFO] [stdout]     warning: spurious network error (2 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
[INFO] [stdout]     warning: spurious network error (1 try remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
[INFO] [stdout]     error: failed to get `log` as a dependency of package `test-project v0.1.0 (/tmp/.tmpw37zO4)`
[INFO] [stdout]     
[INFO] [stdout]     Caused by:
[INFO] [stdout]       download of config.json failed
[INFO] [stdout]     
[INFO] [stdout]     Caused by:
[INFO] [stdout]       failed to download from `https://index.crates.io/config.json`
[INFO] [stdout]     
[INFO] [stdout]     Caused by:
[INFO] [stdout]       [6] Could not resolve hostname (Could not resolve host: index.crates.io)
[INFO] [stdout]     
[INFO] [stdout] 
[INFO] [stdout] Stack backtrace:
[INFO] [stdout]    0: <E as anyhow::context::ext::StdError>::ext_context
[INFO] [stdout]              at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.98/src/backtrace.rs:27:14
[INFO] [stdout]    1: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::with_context
[INFO] [stdout]              at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.98/src/context.rs:65:37
[INFO] [stdout]    2: cargo_rust_unused::dependencies::get_project_dependencies
[INFO] [stdout]              at ./src/dependencies.rs:9:10
[INFO] [stdout]    3: cargo_rust_unused::analyzer::CodeAnalyzer::analyze_project
[INFO] [stdout]              at ./src/analyzer.rs:31:20
[INFO] [stdout]    4: cargo_rust_unused::tests::test_analyzer_finds_unused_items
[INFO] [stdout]              at ./src/lib.rs:60:18
[INFO] [stdout]    5: cargo_rust_unused::tests::test_analyzer_finds_unused_items::{{closure}}
[INFO] [stdout]              at ./src/lib.rs:13:46
[INFO] [stdout]    6: core::ops::function::FnOnce::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/ops/function.rs:250:5
[INFO] [stdout]    7: core::ops::function::FnOnce::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/ops/function.rs:250:5
[INFO] [stdout]    8: test::__rust_begin_short_backtrace
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/test/src/lib.rs:648:18
[INFO] [stdout]    9: test::run_test_in_process::{{closure}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/test/src/lib.rs:671:74
[INFO] [stdout]   10: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   11: std::panicking::catch_unwind::do_call
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panicking.rs:589:40
[INFO] [stdout]   12: std::panicking::catch_unwind
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panicking.rs:552:19
[INFO] [stdout]   13: std::panic::catch_unwind
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panic.rs:359:14
[INFO] [stdout]   14: test::run_test_in_process
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/test/src/lib.rs:671:27
[INFO] [stdout]   15: test::run_test::{{closure}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/test/src/lib.rs:592:43
[INFO] [stdout]   16: test::run_test::{{closure}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/test/src/lib.rs:622:41
[INFO] [stdout]   17: std::sys::backtrace::__rust_begin_short_backtrace
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/sys/backtrace.rs:152:18
[INFO] [stdout]   18: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/thread/mod.rs:559:17
[INFO] [stdout]   19: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   20: std::panicking::catch_unwind::do_call
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panicking.rs:589:40
[INFO] [stdout]   21: std::panicking::catch_unwind
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panicking.rs:552:19
[INFO] [stdout]   22: std::panic::catch_unwind
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/panic.rs:359:14
[INFO] [stdout]   23: std::thread::Builder::spawn_unchecked_::{{closure}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/thread/mod.rs:557:30
[INFO] [stdout]   24: core::ops::function::FnOnce::call_once{{vtable.shim}}
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/alloc/src/boxed.rs:1971:9
[INFO] [stdout]   26: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/alloc/src/boxed.rs:1971:9
[INFO] [stdout]   27: std::sys::pal::unix::thread::Thread::new::thread_start
[INFO] [stdout]              at /rustc/d98a5da813da67eb189387b8ccfb73cf481275d8/library/std/src/sys/pal/unix/thread.rs:97:17
[INFO] [stdout]   28: <unknown>
[INFO] [stdout]   29: clone
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::test_analyzer_finds_unused_items
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 11.06s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "c10a0d41dd3a707b112d29e10be02ba58c2634f11f9c82e76b9b5fe69ec9f2a6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c10a0d41dd3a707b112d29e10be02ba58c2634f11f9c82e76b9b5fe69ec9f2a6", kill_on_drop: false }`
[INFO] [stdout] c10a0d41dd3a707b112d29e10be02ba58c2634f11f9c82e76b9b5fe69ec9f2a6
