[INFO] cloning repository https://github.com/era/guardian_bell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/era/guardian_bell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51e5deb94aea3364b96c4503592669d1eecf2256 [INFO] checking era/guardian_bell against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/era/guardian_bell [INFO] finished tweaking git repo https://github.com/era/guardian_bell [INFO] tweaked toml for git repo https://github.com/era/guardian_bell written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/era/guardian_bell on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/era/guardian_bell 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59258e44e4a49864b87c8f924670bb467ea550437645a8bd26f2a9c499ad0361 [INFO] running `Command { std: "docker" "start" "-a" "59258e44e4a49864b87c8f924670bb467ea550437645a8bd26f2a9c499ad0361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59258e44e4a49864b87c8f924670bb467ea550437645a8bd26f2a9c499ad0361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59258e44e4a49864b87c8f924670bb467ea550437645a8bd26f2a9c499ad0361", kill_on_drop: false }` [INFO] [stdout] 59258e44e4a49864b87c8f924670bb467ea550437645a8bd26f2a9c499ad0361 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63d935be5e855182d3c8cb80388f8a781d9ca948bf3cd678c3029c566b62fd59 [INFO] running `Command { std: "docker" "start" "-a" "63d935be5e855182d3c8cb80388f8a781d9ca948bf3cd678c3029c566b62fd59", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling prettyplease v0.2.19 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking temp-dir v0.1.13 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Compiling prost-derive v0.12.4 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking serde v1.0.203 [INFO] [stderr] Compiling prost v0.12.4 [INFO] [stderr] Compiling prost-types v0.12.4 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling prost-build v0.12.4 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling guardian_bell v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking tonic-health v0.11.0 [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [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 import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [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 import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [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/alarm/service.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut alarm_service = AlarmService::new( [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: `i` [INFO] [stdout] --> src/alarm/service.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | for i in 0..number_of_metrics { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/alarm/alarm.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn tick(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add`, `delete`, and `tick` are never used [INFO] [stdout] --> src/alarm/service.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CorruptedLogFile` is never constructed [INFO] [stdout] --> src/wal/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | CorruptedLogFile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `name` is never read [INFO] [stdout] --> src/wal/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 241 | | let inner = inner.0; [INFO] [stdout] 242 | | let method = shutdownSvc(inner); [INFO] [stdout] 243 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 254 | | Ok(res) [INFO] [stdout] 255 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:254:25 [INFO] [stdout] | [INFO] [stdout] 254 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 260 | | Ok( [INFO] [stdout] 261 | | http::Response::builder() [INFO] [stdout] 262 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 268 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:260:25 [INFO] [stdout] | [INFO] [stdout] 260 | / Ok( [INFO] [stdout] 261 | | http::Response::builder() [INFO] [stdout] 262 | | .status(200) [INFO] [stdout] 263 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 266 | | .unwrap(), [INFO] [stdout] 267 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:234:42 [INFO] [stdout] | [INFO] [stdout] 234 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 235 | | let inner = inner.0; [INFO] [stdout] 236 | | let method = putSvc(inner); [INFO] [stdout] 237 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 248 | | Ok(res) [INFO] [stdout] 249 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:248:25 [INFO] [stdout] | [INFO] [stdout] 248 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 254 | | Ok( [INFO] [stdout] 255 | | http::Response::builder() [INFO] [stdout] 256 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 262 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:254:25 [INFO] [stdout] | [INFO] [stdout] 254 | / Ok( [INFO] [stdout] 255 | | http::Response::builder() [INFO] [stdout] 256 | | .status(200) [INFO] [stdout] 257 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 260 | | .unwrap(), [INFO] [stdout] 261 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:304:42 [INFO] [stdout] | [INFO] [stdout] 304 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 305 | | let inner = inner.0; [INFO] [stdout] 306 | | let method = ExportSvc(inner); [INFO] [stdout] 307 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 318 | | Ok(res) [INFO] [stdout] 319 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:318:25 [INFO] [stdout] | [INFO] [stdout] 318 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:323:41 [INFO] [stdout] | [INFO] [stdout] 323 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 324 | | Ok( [INFO] [stdout] 325 | | http::Response::builder() [INFO] [stdout] 326 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 332 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:324:25 [INFO] [stdout] | [INFO] [stdout] 324 | / Ok( [INFO] [stdout] 325 | | http::Response::builder() [INFO] [stdout] 326 | | .status(200) [INFO] [stdout] 327 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 330 | | .unwrap(), [INFO] [stdout] 331 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Alarm` is never used [INFO] [stdout] --> src/alarm/alarm.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/alarm/service.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlarmService` is never constructed [INFO] [stdout] --> src/alarm/service.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AlarmService { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/alarm/service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `delete`, `consume`, `tick`, and `recover` are never used [INFO] [stdout] --> src/alarm/service.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 29 | fn new(config: Config, alarms: Vec>) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn consume(&mut self, metric: metrics::Metric, recover_mode: bool) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn recover(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/wal/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/wal/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `read`, and `len` are never used [INFO] [stdout] --> src/wal/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 28 | fn new(file_name: PathBuf, name: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn write(&mut self, data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn read(&mut self, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WAL` is never constructed [INFO] [stdout] --> src/wal/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct WAL { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/wal/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/wal/mod.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 78 | impl WAL { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 79 | const LOG_PREFIX: &'static str = "log_page_"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | pub fn new(config: Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn create_log(mut path: PathBuf, page: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn find_logs(path: &PathBuf) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn write(&mut self, data: &[u8]) -> Result<(usize, usize), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn read(&mut self, page: usize, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn last_page(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn curr_page_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_empty_wal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 241 | | let inner = inner.0; [INFO] [stdout] 242 | | let method = shutdownSvc(inner); [INFO] [stdout] 243 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 254 | | Ok(res) [INFO] [stdout] 255 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:254:25 [INFO] [stdout] | [INFO] [stdout] 254 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 260 | | Ok( [INFO] [stdout] 261 | | http::Response::builder() [INFO] [stdout] 262 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 268 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/admin_service.rs:260:25 [INFO] [stdout] | [INFO] [stdout] 260 | / Ok( [INFO] [stdout] 261 | | http::Response::builder() [INFO] [stdout] 262 | | .status(200) [INFO] [stdout] 263 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 266 | | .unwrap(), [INFO] [stdout] 267 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:234:42 [INFO] [stdout] | [INFO] [stdout] 234 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 235 | | let inner = inner.0; [INFO] [stdout] 236 | | let method = putSvc(inner); [INFO] [stdout] 237 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 248 | | Ok(res) [INFO] [stdout] 249 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:248:25 [INFO] [stdout] | [INFO] [stdout] 248 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 254 | | Ok( [INFO] [stdout] 255 | | http::Response::builder() [INFO] [stdout] 256 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 262 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/metrics_service.rs:254:25 [INFO] [stdout] | [INFO] [stdout] 254 | / Ok( [INFO] [stdout] 255 | | http::Response::builder() [INFO] [stdout] 256 | | .status(200) [INFO] [stdout] 257 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 260 | | .unwrap(), [INFO] [stdout] 261 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `guardian_bell` (lib test) due to 12 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:304:42 [INFO] [stdout] | [INFO] [stdout] 304 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 305 | | let inner = inner.0; [INFO] [stdout] 306 | | let method = ExportSvc(inner); [INFO] [stdout] 307 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] ... | [INFO] [stdout] 318 | | Ok(res) [INFO] [stdout] 319 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:318:25 [INFO] [stdout] | [INFO] [stdout] 318 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:323:41 [INFO] [stdout] | [INFO] [stdout] 323 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 324 | | Ok( [INFO] [stdout] 325 | | http::Response::builder() [INFO] [stdout] 326 | | .status(200) [INFO] [stdout] ... | [INFO] [stdout] 332 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-4817e57b1a57be27/out/opentelemetry.proto.collector.metrics.v1.rs:324:25 [INFO] [stdout] | [INFO] [stdout] 324 | / Ok( [INFO] [stdout] 325 | | http::Response::builder() [INFO] [stdout] 326 | | .status(200) [INFO] [stdout] 327 | | .header("grpc-status", "12") [INFO] [stdout] ... | [INFO] [stdout] 330 | | .unwrap(), [INFO] [stdout] 331 | | ) [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `guardian_bell` (lib) due to 12 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "63d935be5e855182d3c8cb80388f8a781d9ca948bf3cd678c3029c566b62fd59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63d935be5e855182d3c8cb80388f8a781d9ca948bf3cd678c3029c566b62fd59", kill_on_drop: false }` [INFO] [stdout] 63d935be5e855182d3c8cb80388f8a781d9ca948bf3cd678c3029c566b62fd59