[INFO] fetching crate dfir-toolkit 0.11.2... [INFO] checking dfir-toolkit-0.11.2 against master#38352b01ae4af9300be03b805d6db68c45e51068 for pr-129864 [INFO] extracting crate dfir-toolkit 0.11.2 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate dfir-toolkit 0.11.2 on toolchain 38352b01ae4af9300be03b805d6db68c45e51068 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dfir-toolkit 0.11.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate dfir-toolkit 0.11.2 [INFO] tweaked toml for crates.io crate dfir-toolkit 0.11.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate dfir-toolkit 0.11.2 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" "+38352b01ae4af9300be03b805d6db68c45e51068" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zstd-safe v7.2.0 [INFO] [stderr] Downloaded winstructs v0.3.2 [INFO] [stderr] Downloaded ouroboros v0.18.4 [INFO] [stderr] Downloaded sigpipe v0.1.3 [INFO] [stderr] Downloaded termsize v0.1.9 [INFO] [stderr] Downloaded term-table v1.4.0 [INFO] [stderr] Downloaded lazy-regex-proc_macros v3.1.0 [INFO] [stderr] Downloaded tokio-async-drop v0.1.0 [INFO] [stderr] Downloaded dfirtk-sessionevent-derive v0.1.0 [INFO] [stderr] Downloaded binwrite_derive v0.2.1 [INFO] [stderr] Downloaded dfirtk-eventdata v0.1.3 [INFO] [stderr] Downloaded dialoguer v0.11.0 [INFO] [stderr] Downloaded clap-markdown-dfir v0.2.0 [INFO] [stderr] Downloaded clio v0.3.5 [INFO] [stderr] Downloaded ouroboros_macro v0.18.4 [INFO] [stderr] Downloaded lnk v0.5.1 [INFO] [stderr] Downloaded memoverlay v0.1.3 [INFO] [stderr] Downloaded nt_hive2 v4.2.3 [INFO] [stderr] Downloaded clap-verbosity-flag v2.2.0 [INFO] [stderr] Downloaded evtx v0.8.2 [INFO] [stderr] Downloaded clap_complete v4.5.8 [INFO] [stderr] Downloaded color-print v0.3.6 [INFO] [stderr] Downloaded colored_json v3.2.0 [INFO] [stderr] Downloaded forensic-rs v0.13.0 [INFO] [stderr] Downloaded frnsc-prefetch v0.13.0 [INFO] [stderr] Downloaded elasticsearch v8.4.0-alpha.1 [INFO] [stderr] Downloaded more-asserts v0.3.1 [INFO] [stderr] Downloaded marvin32 v0.1.1 [INFO] [stderr] Downloaded lazy-regex v3.1.0 [INFO] [stderr] Downloaded binwrite v0.2.1 [INFO] [stderr] Downloaded tokio v1.38.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8badada9d990ba0d81ea54ad4b387edd9bfa9608c31288b99d3e45808737544c [INFO] running `Command { std: "docker" "start" "-a" "8badada9d990ba0d81ea54ad4b387edd9bfa9608c31288b99d3e45808737544c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8badada9d990ba0d81ea54ad4b387edd9bfa9608c31288b99d3e45808737544c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8badada9d990ba0d81ea54ad4b387edd9bfa9608c31288b99d3e45808737544c", kill_on_drop: false }` [INFO] [stdout] 8badada9d990ba0d81ea54ad4b387edd9bfa9608c31288b99d3e45808737544c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4cee71eb783e668010bf3b3d708244a6d567a2cded18f2bc2ce4b3c42cb3684 [INFO] running `Command { std: "docker" "start" "-a" "c4cee71eb783e668010bf3b3d708244a6d567a2cded18f2bc2ce4b3c42cb3684", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling clap_builder v4.5.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling simplelog v0.12.2 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling clap v4.5.9 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling portable-atomic v1.7.0 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling binwrite_derive v0.2.1 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling elasticsearch v8.4.0-alpha.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Compiling zip v2.1.5 [INFO] [stderr] Checking lockfree-object-pool v0.1.6 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking lzma-rs v0.3.0 [INFO] [stderr] Checking zopfli v0.8.1 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking binwrite v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.1.0 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling ouroboros_macro v0.18.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking binread v2.2.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling getset v0.1.2 [INFO] [stderr] Compiling color-print-proc-macro v0.3.6 [INFO] [stderr] Compiling derive-getters v0.3.0 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking memoverlay v0.1.3 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking marvin32 v0.1.1 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking deflate64 v0.1.9 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Checking lazy-regex v3.1.0 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking term-table v1.4.0 [INFO] [stderr] Compiling duplicate v1.0.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking termsize v0.1.9 [INFO] [stderr] Checking ouroboros v0.18.4 [INFO] [stderr] Checking sigpipe v0.1.3 [INFO] [stderr] Checking exitcode v1.1.2 [INFO] [stderr] Checking tokio-async-drop v0.1.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Compiling assert_cmd v2.0.14 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking color-print v0.3.6 [INFO] [stderr] Checking bstr v1.9.1 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking more-asserts v0.3.1 [INFO] [stderr] Checking clap-markdown-dfir v0.2.0 [INFO] [stderr] Checking clio v0.3.5 [INFO] [stderr] Checking clap-verbosity-flag v2.2.0 [INFO] [stderr] Checking clap_complete v4.5.8 [INFO] [stderr] Checking predicates v3.1.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking serde v1.0.204 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking async-compression v0.4.12 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking forensic-rs v0.13.0 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking frnsc-prefetch v0.13.0 [INFO] [stderr] Checking colored_json v3.2.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking winstructs v0.3.2 [INFO] [stderr] Checking lnk v0.5.1 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking evtx v0.8.2 [INFO] [stderr] Checking nt_hive2 v4.2.3 [INFO] [stderr] Checking dfirtk-eventdata v0.1.3 [INFO] [stderr] Compiling dfirtk-sessionevent-derive v0.1.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking dfir-toolkit v0.11.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/es4forensics/ecs/log/event_level.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(strum_macros::Display, FromPrimitive, ToPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EventLevel` [INFO] [stdout] 9 | #[strum(serialize_all = "lowercase")] [INFO] [stdout] 10 | pub enum EventLevel { [INFO] [stdout] | ---------- `EventLevel` 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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/es4forensics/ecs/log/event_level.rs:8:48 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(strum_macros::Display, FromPrimitive, ToPrimitive, Serialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EventLevel` [INFO] [stdout] 9 | #[strum(serialize_all = "lowercase")] [INFO] [stdout] 10 | pub enum EventLevel { [INFO] [stdout] | ---------- `EventLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> src/es4forensics/ecs/log/event_level.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(strum_macros::Display, FromPrimitive, ToPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EventLevel` [INFO] [stdout] 9 | #[strum(serialize_all = "lowercase")] [INFO] [stdout] 10 | pub enum EventLevel { [INFO] [stdout] | ---------- `EventLevel` 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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/es4forensics/ecs/log/event_level.rs:8:48 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(strum_macros::Display, FromPrimitive, ToPrimitive, Serialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EventLevel` [INFO] [stdout] 9 | #[strum(serialize_all = "lowercase")] [INFO] [stdout] 10 | pub enum EventLevel { [INFO] [stdout] | ---------- `EventLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "c4cee71eb783e668010bf3b3d708244a6d567a2cded18f2bc2ce4b3c42cb3684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4cee71eb783e668010bf3b3d708244a6d567a2cded18f2bc2ce4b3c42cb3684", kill_on_drop: false }` [INFO] [stdout] c4cee71eb783e668010bf3b3d708244a6d567a2cded18f2bc2ce4b3c42cb3684