[INFO] fetching crate tfsi 0.1.0... [INFO] checking tfsi-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate tfsi 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate tfsi 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tfsi 0.1.0 [INFO] finished tweaking crates.io crate tfsi 0.1.0 [INFO] tweaked toml for crates.io crate tfsi 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26bd982dc6e34ffca0be7f44b9dd00be42b9d18cf6b02e615c4da78842a1375e [INFO] running `Command { std: "docker" "start" "-a" "26bd982dc6e34ffca0be7f44b9dd00be42b9d18cf6b02e615c4da78842a1375e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26bd982dc6e34ffca0be7f44b9dd00be42b9d18cf6b02e615c4da78842a1375e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26bd982dc6e34ffca0be7f44b9dd00be42b9d18cf6b02e615c4da78842a1375e", kill_on_drop: false }` [INFO] [stdout] 26bd982dc6e34ffca0be7f44b9dd00be42b9d18cf6b02e615c4da78842a1375e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e28b1724e5c74852bb2719dabbd0bd6f63beccbe37cd0ed8e7ea645277156ace [INFO] running `Command { std: "docker" "start" "-a" "e28b1724e5c74852bb2719dabbd0bd6f63beccbe37cd0ed8e7ea645277156ace", kill_on_drop: false }` [INFO] [stderr] Checking tfsi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `left` and `right` are never read [INFO] [stdout] --> src/requirements/require_pair.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RequirePair { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | left: Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | right: Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequirePair` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `caps_component::CapsComponent` [INFO] [stdout] --> tests/example-01/di/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use caps_component::CapsComponent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> tests/example-00/component_one.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct C(B, String); [INFO] [stdout] | - ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `C` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> tests/example-01/capabilities/http_server.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct HttpServer { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | config: HttpBindConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> tests/example-01/capabilities/db.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Db { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 5 | config: DbConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Db` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pool_size` and `db_uri` are never read [INFO] [stdout] --> tests/example-01/config/db_config.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct DbConfig { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 3 | pub pool_size: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | pub db_uri: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DbConfig` 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 `bind_addr` and `bind_port` are never read [INFO] [stdout] --> tests/example-01/config/http_bind_config.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct HttpBindConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 5 | pub bind_addr: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | pub bind_port: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpBindConfig` 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 `db` and `http_server` are never read [INFO] [stdout] --> tests/example-01/di/caps_component.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CapsComponent { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 8 | db: Db, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | http_server: HttpServer, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CapsComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> tests/example-02/capabilities/real_capabilities/real_db.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RealDb { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 8 | config: RealDbConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RealDb` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Db` is never used [INFO] [stdout] --> tests/example-02/capabilities/db.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Db: std::fmt::Debug {} [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `0` is never read [INFO] [stdout] --> src/injector/injector_tests.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | struct A(&'static str); [INFO] [stdout] | - ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `A` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(test, deny(warnings))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `0` is never read [INFO] [stdout] --> src/injector/injector_tests.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | struct B(&'static str); [INFO] [stdout] | - ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `B` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `0` and `1` are never read [INFO] [stdout] --> src/injector/injector_tests.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | struct D(A, B, C); [INFO] [stdout] | - ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `D` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | struct D((), (), C); [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `left` and `right` are never read [INFO] [stdout] --> src/requirements/require_pair.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RequirePair { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | left: Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | right: Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequirePair` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tfsi` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e28b1724e5c74852bb2719dabbd0bd6f63beccbe37cd0ed8e7ea645277156ace", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e28b1724e5c74852bb2719dabbd0bd6f63beccbe37cd0ed8e7ea645277156ace", kill_on_drop: false }` [INFO] [stdout] e28b1724e5c74852bb2719dabbd0bd6f63beccbe37cd0ed8e7ea645277156ace