[INFO] fetching crate dfir-toolkit 0.11.2... [INFO] checking dfir-toolkit-0.11.2 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate dfir-toolkit 0.11.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate dfir-toolkit 0.11.2 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-tc2/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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e38cc1922e72e9b69a523ac1f1ba29e3cf95007e4f2db2546b008f0c07db24d8 [INFO] running `Command { std: "docker" "start" "-a" "e38cc1922e72e9b69a523ac1f1ba29e3cf95007e4f2db2546b008f0c07db24d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e38cc1922e72e9b69a523ac1f1ba29e3cf95007e4f2db2546b008f0c07db24d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e38cc1922e72e9b69a523ac1f1ba29e3cf95007e4f2db2546b008f0c07db24d8", kill_on_drop: false }` [INFO] [stdout] e38cc1922e72e9b69a523ac1f1ba29e3cf95007e4f2db2546b008f0c07db24d8 [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 -Dtail_expr_drop_order" "-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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c6a1b8f9f97a04ae6590502116e907d9e846fb4d5884e7f5b97a2c2499ec95a [INFO] running `Command { std: "docker" "start" "-a" "0c6a1b8f9f97a04ae6590502116e907d9e846fb4d5884e7f5b97a2c2499ec95a", 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 strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [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 phf_shared v0.11.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling clap_builder v4.5.9 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [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 tempfile v3.10.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling simplelog v0.12.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling clap v4.5.9 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.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 portable-atomic v1.7.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling elasticsearch v8.4.0-alpha.1 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling binread_derive v2.1.0 [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] Compiling darling v0.20.10 [INFO] [stderr] Compiling binwrite_derive v0.2.1 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Checking lockfree-object-pool v0.1.6 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling zip v2.1.5 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking zopfli v0.8.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking binwrite v0.2.1 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking memoverlay v0.1.3 [INFO] [stderr] Compiling color-print-proc-macro v0.3.6 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.1.0 [INFO] [stderr] Compiling ouroboros_macro v0.18.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking binread v2.2.0 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Compiling getset v0.1.2 [INFO] [stderr] Compiling derive-getters v0.3.0 [INFO] [stderr] Checking lzma-rs v0.3.0 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking num-iter v0.1.45 [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 aliasable v0.1.3 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking deflate64 v0.1.9 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking color-print v0.3.6 [INFO] [stderr] Checking clap-markdown-dfir v0.2.0 [INFO] [stderr] Checking clio v0.3.5 [INFO] [stderr] Checking clap_complete v4.5.8 [INFO] [stderr] Checking clap-verbosity-flag v2.2.0 [INFO] [stderr] Checking lazy-regex v3.1.0 [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 num v0.4.3 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking sigpipe v0.1.3 [INFO] [stderr] Checking ouroboros v0.18.4 [INFO] [stderr] Checking termsize v0.1.9 [INFO] [stderr] Checking tokio-async-drop v0.1.0 [INFO] [stderr] Checking exitcode v1.1.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Compiling assert_cmd v2.0.14 [INFO] [stderr] Checking bstr v1.9.1 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking more-asserts v0.3.1 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking predicates v3.1.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking serde v1.0.204 [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] Checking 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 evtx v0.8.2 [INFO] [stderr] Checking nt_hive2 v4.2.3 [INFO] [stderr] Checking dfirtk-eventdata v0.1.3 [INFO] [stderr] Checking hyper v0.14.30 [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: 2 warnings emitted [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] error: this value of type `MapWhile>>>, fn(Result) -> Option {Result::::ok}>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> tests/mactime2/is_sorted.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut cmd = Command::cargo_bin("mactime2").unwrap(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 24 | for line in reader.lines().map_while(Result::ok) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dfir-toolkit` (test "mod") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "0c6a1b8f9f97a04ae6590502116e907d9e846fb4d5884e7f5b97a2c2499ec95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c6a1b8f9f97a04ae6590502116e907d9e846fb4d5884e7f5b97a2c2499ec95a", kill_on_drop: false }` [INFO] [stdout] 0c6a1b8f9f97a04ae6590502116e907d9e846fb4d5884e7f5b97a2c2499ec95a