[INFO] cloning repository https://github.com/the10thWiz/CCDC-Service-Test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/the10thWiz/CCDC-Service-Test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthe10thWiz%2FCCDC-Service-Test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthe10thWiz%2FCCDC-Service-Test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e8444fbb452ea67f2a3d55834e9fc1d07d7f60af [INFO] testing the10thWiz/CCDC-Service-Test against try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 for pr-107051 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthe10thWiz%2FCCDC-Service-Test" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/the10thWiz/CCDC-Service-Test on toolchain 613d1972a772987ed4ee06faccbab0e2fc839871 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/the10thWiz/CCDC-Service-Test [INFO] finished tweaking git repo https://github.com/the10thWiz/CCDC-Service-Test [INFO] tweaked toml for git repo https://github.com/the10thWiz/CCDC-Service-Test written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/the10thWiz/CCDC-Service-Test 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" "+613d1972a772987ed4ee06faccbab0e2fc839871" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf88bfe61353b925aa7c476f2e21630e44ffec6aadb240cd94d28f8f1a472c2a [INFO] running `Command { std: "docker" "start" "-a" "cf88bfe61353b925aa7c476f2e21630e44ffec6aadb240cd94d28f8f1a472c2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf88bfe61353b925aa7c476f2e21630e44ffec6aadb240cd94d28f8f1a472c2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf88bfe61353b925aa7c476f2e21630e44ffec6aadb240cd94d28f8f1a472c2a", kill_on_drop: false }` [INFO] [stdout] cf88bfe61353b925aa7c476f2e21630e44ffec6aadb240cd94d28f8f1a472c2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53bba52be4c0fb20a795d89044d30c86a405dff7d5b62749eec85520f014193e [INFO] running `Command { std: "docker" "start" "-a" "53bba52be4c0fb20a795d89044d30c86a405dff7d5b62749eec85520f014193e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling num_threads v0.1.3 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling time v0.3.7 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling trust-dns-client v0.20.4 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling ubyte v0.10.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling service_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 100 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | let ecom = scan_http(&config.ecom, ip.ip()).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:101:78 [INFO] [stdout] | [INFO] [stdout] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let mut iter = config.ip_pools.iter().cycle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:106:44 [INFO] [stdout] | [INFO] [stdout] 106 | .map(|pool| pool.create_ip(config.dev.as_str())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/main.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let mut lock = status.lock().unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan_dns` is never used [INFO] [stdout] --> src/main.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13m 08s [INFO] running `Command { std: "docker" "inspect" "53bba52be4c0fb20a795d89044d30c86a405dff7d5b62749eec85520f014193e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53bba52be4c0fb20a795d89044d30c86a405dff7d5b62749eec85520f014193e", kill_on_drop: false }` [INFO] [stdout] 53bba52be4c0fb20a795d89044d30c86a405dff7d5b62749eec85520f014193e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a8fc9e1f194f0f9f9832ce9a5b68d07a483206c1058241d7a6ee5be1c5c6293 [INFO] running `Command { std: "docker" "start" "-a" "8a8fc9e1f194f0f9f9832ce9a5b68d07a483206c1058241d7a6ee5be1c5c6293", kill_on_drop: false }` [INFO] [stderr] Compiling service_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 100 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | let ecom = scan_http(&config.ecom, ip.ip()).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:101:78 [INFO] [stdout] | [INFO] [stdout] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let mut iter = config.ip_pools.iter().cycle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:106:44 [INFO] [stdout] | [INFO] [stdout] 106 | .map(|pool| pool.create_ip(config.dev.as_str())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/main.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let mut lock = status.lock().unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan_dns` is never used [INFO] [stdout] --> src/main.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "8a8fc9e1f194f0f9f9832ce9a5b68d07a483206c1058241d7a6ee5be1c5c6293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a8fc9e1f194f0f9f9832ce9a5b68d07a483206c1058241d7a6ee5be1c5c6293", kill_on_drop: false }` [INFO] [stdout] 8a8fc9e1f194f0f9f9832ce9a5b68d07a483206c1058241d7a6ee5be1c5c6293 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f97090161e83547918da97e421c0d68e17940d2dce1d6cccda0a8331e67be375 [INFO] running `Command { std: "docker" "start" "-a" "f97090161e83547918da97e421c0d68e17940d2dce1d6cccda0a8331e67be375", kill_on_drop: false }` [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/main.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 100 | return; [INFO] [stderr] | ------ any code following this expression is unreachable [INFO] [stderr] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:111:35 [INFO] [stderr] | [INFO] [stderr] 111 | let ecom = scan_http(&config.ecom, ip.ip()).await; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:101:78 [INFO] [stderr] | [INFO] [stderr] 101 | let mut interval = rocket::tokio::time::interval(Duration::from_secs(config.time as u64)); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:102:24 [INFO] [stderr] | [INFO] [stderr] 102 | let mut iter = config.ip_pools.iter().cycle(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:106:44 [INFO] [stderr] | [INFO] [stderr] 106 | .map(|pool| pool.create_ip(config.dev.as_str())) [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `status` [INFO] [stderr] --> src/main.rs:116:32 [INFO] [stderr] | [INFO] [stderr] 116 | let mut lock = status.lock().unwrap(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/main.rs:127:19 [INFO] [stderr] | [INFO] [stderr] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ip` [INFO] [stderr] --> src/main.rs:127:39 [INFO] [stderr] | [INFO] [stderr] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stderr] [INFO] [stderr] warning: function `scan_dns` is never used [INFO] [stderr] --> src/main.rs:127:10 [INFO] [stderr] | [INFO] [stderr] 127 | async fn scan_dns(config: &DNSConfig, ip: &Ipv4Addr) -> Status { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `service_test` (bin "service_test" test) generated 9 warnings (run `cargo fix --bin "service_test" --tests` to apply 2 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/service_test-929306f330bf7749) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f97090161e83547918da97e421c0d68e17940d2dce1d6cccda0a8331e67be375", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f97090161e83547918da97e421c0d68e17940d2dce1d6cccda0a8331e67be375", kill_on_drop: false }` [INFO] [stdout] f97090161e83547918da97e421c0d68e17940d2dce1d6cccda0a8331e67be375