[INFO] cloning repository https://github.com/Asone/nostr-banhammer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Asone/nostr-banhammer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsone%2Fnostr-banhammer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsone%2Fnostr-banhammer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 873173744975178d096ce2c5606bde06e7245421 [INFO] building Asone/nostr-banhammer against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAsone%2Fnostr-banhammer" "/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/Asone/nostr-banhammer [INFO] finished tweaking git repo https://github.com/Asone/nostr-banhammer [INFO] tweaked toml for git repo https://github.com/Asone/nostr-banhammer written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Asone/nostr-banhammer on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Asone/nostr-banhammer 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc1/source/banhammer_cli/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded prost-derive v0.12.1 [INFO] [stderr] Downloaded serde_derive v1.0.189 [INFO] [stderr] Downloaded prost v0.12.1 [INFO] [stderr] Downloaded serde v1.0.189 [INFO] [stderr] Downloaded num v0.4.1 [INFO] [stderr] Downloaded tonic-build v0.10.2 [INFO] [stderr] Downloaded prettyplease v0.2.15 [INFO] [stderr] Downloaded num-complex v0.4.4 [INFO] [stderr] Downloaded prost-build v0.12.1 [INFO] [stderr] Downloaded clap_builder v4.4.7 [INFO] [stderr] Downloaded clap v4.4.7 [INFO] [stderr] Downloaded syn v2.0.38 [INFO] [stderr] Downloaded tabled v0.14.0 [INFO] [stderr] Downloaded indexmap v2.0.2 [INFO] [stderr] Downloaded prost-types v0.12.1 [INFO] [stderr] Downloaded chrono v0.4.31 [INFO] [stderr] Downloaded anstream v0.6.4 [INFO] [stderr] Downloaded clap_lex v0.6.0 [INFO] [stderr] Downloaded serde_json v1.0.107 [INFO] [stderr] Downloaded clap_derive v4.4.7 [INFO] [stderr] Downloaded secp256k1 v0.28.0 [INFO] [stderr] Downloaded bytecount v0.6.7 [INFO] [stderr] Downloaded rustix v0.38.20 [INFO] [stderr] Downloaded papergrid v0.10.0 [INFO] [stderr] Downloaded tabled_derive v0.6.0 [INFO] [stderr] Downloaded tonic v0.10.2 [INFO] [stderr] Downloaded num-derive v0.4.1 [INFO] [stderr] Downloaded protoc v2.28.0 [INFO] [stderr] Downloaded errno v0.3.5 [INFO] [stderr] Downloaded anstyle-parse v0.2.2 [INFO] [stderr] Downloaded anstyle v1.0.4 [INFO] [stderr] Downloaded base64 v0.21.5 [INFO] [stderr] Downloaded libc v0.2.149 [INFO] [stderr] Downloaded tokio v1.33.0 [INFO] [stderr] Downloaded linux-raw-sys v0.4.10 [INFO] [stderr] Downloaded secp256k1-sys v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a3f8f696e859e62112d36fa132a7a8e2c0c6a33613a0fef273bde627defb542 [INFO] running `Command { std: "docker" "start" "-a" "5a3f8f696e859e62112d36fa132a7a8e2c0c6a33613a0fef273bde627defb542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a3f8f696e859e62112d36fa132a7a8e2c0c6a33613a0fef273bde627defb542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a3f8f696e859e62112d36fa132a7a8e2c0c6a33613a0fef273bde627defb542", kill_on_drop: false }` [INFO] [stdout] 5a3f8f696e859e62112d36fa132a7a8e2c0c6a33613a0fef273bde627defb542 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c5b8cd49d4d32059bc47d96901affdb5137a2688bbe7278fc2907876b81e1b0 [INFO] running `Command { std: "docker" "start" "-a" "6c5b8cd49d4d32059bc47d96901affdb5137a2688bbe7278fc2907876b81e1b0", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/banhammer_cli/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling rustix v0.38.20 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.10 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling home v0.5.5 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling prettyplease v0.2.15 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling indexmap v2.0.2 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling anstyle-parse v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling anstream v0.6.4 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling num-complex v0.4.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.8.0 [INFO] [stderr] Compiling clap_builder v4.4.7 [INFO] [stderr] Compiling bytecount v0.6.7 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling papergrid v0.10.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling protoc v2.28.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling bech32 v0.9.1 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling unsafe-libyaml v0.2.9 [INFO] [stderr] Compiling secp256k1-sys v0.9.0 [INFO] [stderr] Compiling tabled_derive v0.6.0 [INFO] [stderr] Compiling tabled v0.14.0 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling prost-derive v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling tokio v1.33.0 [INFO] [stderr] Compiling secp256k1 v0.28.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling clap v4.4.7 [INFO] [stderr] Compiling prost v0.12.1 [INFO] [stderr] Compiling prost-types v0.12.1 [INFO] [stderr] Compiling prost-build v0.12.1 [INFO] [stderr] Compiling tonic-build v0.10.2 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling banhammer_grpc v1.0.0 (/opt/rustwide/workdir/banhammer_grpc) [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling serde_yaml v0.9.25 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling tonic v0.10.2 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> banhammer_grpc/src/lib.rs:11:65 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_BanTypesEnum` [INFO] [stdout] 12 | pub enum BanTypesEnum { [INFO] [stdout] | ------------ `BanTypesEnum` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling banhammer_cli v0.1.0 (/opt/rustwide/workdir/banhammer_cli) [INFO] [stdout] warning: unused variable: `validators` [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validators` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> banhammer_cli/src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Input; [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 `get` is never used [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling banhammer v0.1.0 (/opt/rustwide/workdir/banhammer) [INFO] [stdout] warning: unused import: `BanTypesEnum` [INFO] [stdout] --> banhammer_cli/src/handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | BanTypesEnum, [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 imports: `BanType` and `BanTypesEnum` [INFO] [stdout] --> banhammer_cli/src/main.rs:6:64 [INFO] [stdout] | [INFO] [stdout] 6 | grpc::{validation_control_client::ValidationControlClient, BanType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | BanTypesEnum, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> banhammer/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [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: `DateTime` [INFO] [stdout] --> banhammer/src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> banhammer/src/hammer.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, path::Path}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> banhammer_cli/src/handler.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> banhammer_cli/src/handler.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 55 | Subcommands::State => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Subcommands::List { ban_type } => { [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 73 | Subcommands::Remove { index, ban_type } => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 83 | Subcommands::Add => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> banhammer/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> banhammer_cli/src/handler.rs:53:62 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn dispatcher(&mut self, command: Subcommands, opts: CliOptions) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> banhammer_cli/src/handler.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 173 | Ok(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> banhammer/src/admin.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> banhammer_cli/src/handler.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> banhammer_cli/src/handler.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | let response = self.client.remove_ban(request).await; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `banhammer_lock` [INFO] [stdout] --> banhammer/src/admin.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let banhammer_lock = &self.banhammer.lock().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_banhammer_lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> banhammer/src/admin.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reply` [INFO] [stdout] --> banhammer/src/hammer.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | reply: EventReply, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reply` [INFO] [stdout] --> banhammer/src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | reply: EventReply, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> banhammer/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct EventAuthz { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 28 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `dict` are never read [INFO] [stdout] --> banhammer/src/main.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct AuthorizationServerConfig { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 178 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | dict: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `save` is never read [INFO] [stdout] --> banhammer_cli/src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CliOptions { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 25 | save: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 20s [INFO] running `Command { std: "docker" "inspect" "6c5b8cd49d4d32059bc47d96901affdb5137a2688bbe7278fc2907876b81e1b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c5b8cd49d4d32059bc47d96901affdb5137a2688bbe7278fc2907876b81e1b0", kill_on_drop: false }` [INFO] [stdout] 6c5b8cd49d4d32059bc47d96901affdb5137a2688bbe7278fc2907876b81e1b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0382b1f44b30443eab2696996c4e2a0e80bd9285e0ab61955681a2747bb099c2 [INFO] running `Command { std: "docker" "start" "-a" "0382b1f44b30443eab2696996c4e2a0e80bd9285e0ab61955681a2747bb099c2", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/banhammer_cli/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling banhammer_grpc v1.0.0 (/opt/rustwide/workdir/banhammer_grpc) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> banhammer_grpc/src/lib.rs:11:65 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_BanTypesEnum` [INFO] [stdout] 12 | pub enum BanTypesEnum { [INFO] [stdout] | ------------ `BanTypesEnum` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling banhammer v0.1.0 (/opt/rustwide/workdir/banhammer) [INFO] [stdout] warning: unused variable: `validators` [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validators` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> banhammer_cli/src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Input; [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 `get` is never used [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling banhammer_cli v0.1.0 (/opt/rustwide/workdir/banhammer_cli) [INFO] [stdout] warning: unused variable: `validators` [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validators` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> banhammer_cli/src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Input; [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 `get` is never used [INFO] [stdout] --> banhammer_cli/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | pub fn get(label: &str, validators: Option bool>>) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BanTypesEnum` [INFO] [stdout] --> banhammer_cli/src/handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | BanTypesEnum, [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: `super::*` [INFO] [stdout] --> banhammer_cli/src/handler.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BanType` and `BanTypesEnum` [INFO] [stdout] --> banhammer_cli/src/main.rs:6:64 [INFO] [stdout] | [INFO] [stdout] 6 | grpc::{validation_control_client::ValidationControlClient, BanType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | BanTypesEnum, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> banhammer_cli/src/handler.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> banhammer_cli/src/handler.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 55 | Subcommands::State => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Subcommands::List { ban_type } => { [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 73 | Subcommands::Remove { index, ban_type } => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 83 | Subcommands::Add => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> banhammer_cli/src/handler.rs:53:62 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn dispatcher(&mut self, command: Subcommands, opts: CliOptions) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> banhammer_cli/src/handler.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 173 | Ok(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> banhammer_cli/src/handler.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> banhammer_cli/src/handler.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | let response = self.client.remove_ban(request).await; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `save` is never read [INFO] [stdout] --> banhammer_cli/src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CliOptions { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 25 | save: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_list_handler` is never used [INFO] [stdout] --> banhammer_cli/src/handler.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | fn test_list_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> banhammer/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [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: `DateTime` [INFO] [stdout] --> banhammer/src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> banhammer/src/hammer.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, path::Path}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> banhammer/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> banhammer/src/admin.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `banhammer_lock` [INFO] [stdout] --> banhammer/src/admin.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let banhammer_lock = &self.banhammer.lock().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_banhammer_lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> banhammer/src/admin.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reply` [INFO] [stdout] --> banhammer/src/hammer.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | reply: EventReply, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> banhammer/src/hammer.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | let mut ban = Ban { [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: variable does not need to be mutable [INFO] [stdout] --> banhammer/src/hammer.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | let mut ban = Ban { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `banhammer` [INFO] [stdout] --> banhammer/src/hammer.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | let banhammer = BanHammer { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_banhammer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> banhammer/src/hammer.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut ban = Ban { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `banhammer` [INFO] [stdout] --> banhammer/src/hammer.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | let banhammer = BanHammer { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_banhammer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> banhammer/src/hammer.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let mut ban = Ban { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reply` [INFO] [stdout] --> banhammer/src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | reply: EventReply, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> banhammer/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct EventAuthz { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 28 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `dict` are never read [INFO] [stdout] --> banhammer/src/main.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct AuthorizationServerConfig { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 178 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | dict: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> banhammer_grpc/src/lib.rs:11:65 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_BanTypesEnum` [INFO] [stdout] 12 | pub enum BanTypesEnum { [INFO] [stdout] | ------------ `BanTypesEnum` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.65s [INFO] running `Command { std: "docker" "inspect" "0382b1f44b30443eab2696996c4e2a0e80bd9285e0ab61955681a2747bb099c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0382b1f44b30443eab2696996c4e2a0e80bd9285e0ab61955681a2747bb099c2", kill_on_drop: false }` [INFO] [stdout] 0382b1f44b30443eab2696996c4e2a0e80bd9285e0ab61955681a2747bb099c2