[INFO] cloning repository https://github.com/joshuayoudev/rust-dependency-injection-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joshuayoudev/rust-dependency-injection-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuayoudev%2Frust-dependency-injection-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuayoudev%2Frust-dependency-injection-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9de7f7f2dd3c0cb9e8ab9daaecb46d770691e6c7 [INFO] testing joshuayoudev/rust-dependency-injection-example against 1.98.0-beta.8+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuayoudev%2Frust-dependency-injection-example" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/joshuayoudev/rust-dependency-injection-example [INFO] finished tweaking git repo https://github.com/joshuayoudev/rust-dependency-injection-example [INFO] tweaked toml for git repo https://github.com/joshuayoudev/rust-dependency-injection-example written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joshuayoudev/rust-dependency-injection-example on toolchain 1.98.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joshuayoudev/rust-dependency-injection-example 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" "+1.98.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.19.0 [INFO] [stderr] Downloaded ureq-proto v0.3.5 [INFO] [stderr] Downloaded ureq v3.0.10 [INFO] [stderr] Downloaded rustls-webpki v0.103.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df [INFO] running `Command { std: "docker" "start" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling ureq-proto v0.3.5 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling rustls-webpki v0.103.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling ureq v3.0.10 [INFO] [stderr] Compiling dependency-injection v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `body` is never read [INFO] [stdout] --> src/dependencies/traits/http_client/http_response.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct HttpResponse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 2 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `body` is never used [INFO] [stdout] --> src/dependencies/traits/http_client/http_response.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl HttpResponse { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn body(&self) -> &Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 2m 44s [INFO] running `Command { std: "docker" "inspect" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling dependency-injection v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `UreqHttpClient` is never constructed [INFO] [stdout] --> src/dependencies/implementations/http_client/ureq_http_client.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UreqHttpClient { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dependencies/implementations/http_client/ureq_http_client.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl UreqHttpClient { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> UreqHttpClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashMapDatabaseClient` is never constructed [INFO] [stdout] --> src/dependencies/implementations/database_client/hashmap_database_client.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct HashMapDatabaseClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dependencies/implementations/database_client/hashmap_database_client.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl HashMapDatabaseClient { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> HashMapDatabaseClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body` is never read [INFO] [stdout] --> src/dependencies/traits/http_client/http_response.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct HttpResponse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 2 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `body` is never used [INFO] [stdout] --> src/dependencies/traits/http_client/http_response.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl HttpResponse { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn body(&self) -> &Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BetaDependencies` is never constructed [INFO] [stdout] --> src/dependencies/beta_dependencies.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BetaDependencies { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 1.23s [INFO] running `Command { std: "docker" "inspect" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: struct `UreqHttpClient` is never constructed [INFO] [stderr] --> src/dependencies/implementations/http_client/ureq_http_client.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct UreqHttpClient { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/dependencies/implementations/http_client/ureq_http_client.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl UreqHttpClient { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 12 | pub fn new() -> UreqHttpClient { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `HashMapDatabaseClient` is never constructed [INFO] [stderr] --> src/dependencies/implementations/database_client/hashmap_database_client.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct HashMapDatabaseClient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/dependencies/implementations/database_client/hashmap_database_client.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl HashMapDatabaseClient { [INFO] [stderr] | -------------------------- associated function in this implementation [INFO] [stderr] 12 | pub fn new() -> HashMapDatabaseClient { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `body` is never read [INFO] [stderr] --> src/dependencies/traits/http_client/http_response.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct HttpResponse { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 2 | body: Vec, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `body` is never used [INFO] [stderr] --> src/dependencies/traits/http_client/http_response.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl HttpResponse { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 10 | pub fn body(&self) -> &Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BetaDependencies` is never constructed [INFO] [stderr] --> src/dependencies/beta_dependencies.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct BetaDependencies { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `dependency-injection` (bin "dependency-injection" test) generated 7 warnings [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.24s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/dependency_injection-90a2bdc53bac5174) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::test_run_service_with_mocked_dependencies ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df", kill_on_drop: false }` [INFO] [stdout] c54b0811d1e6a3976a0d1581ee3286f7685b17ea9c0233d5057391f6807c32df