[INFO] fetching crate webauthn-authenticator-rs 0.5.1... [INFO] checking webauthn-authenticator-rs-0.5.1 against master#dc8fe1f81c6cf13c0987944c525b2aa81625b5d0 for pr-133502-4 [INFO] extracting crate webauthn-authenticator-rs 0.5.1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate webauthn-authenticator-rs 0.5.1 on toolchain dc8fe1f81c6cf13c0987944c525b2aa81625b5d0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dc8fe1f81c6cf13c0987944c525b2aa81625b5d0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate webauthn-authenticator-rs 0.5.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate webauthn-authenticator-rs 0.5.1 [INFO] tweaked toml for crates.io crate webauthn-authenticator-rs 0.5.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate crates.io crate webauthn-authenticator-rs 0.5.1 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" "+dc8fe1f81c6cf13c0987944c525b2aa81625b5d0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded webauthn-attestation-ca v0.5.1 [INFO] [stderr] Downloaded adler32 v1.2.0 [INFO] [stderr] Downloaded pcsc-sys v1.3.0 [INFO] [stderr] Downloaded rpassword v5.0.1 [INFO] [stderr] Downloaded objc2-encode v4.0.3 [INFO] [stderr] Downloaded webauthn-rs-proto v0.5.1 [INFO] [stderr] Downloaded checked_int_cast v1.0.0 [INFO] [stderr] Downloaded runloop v0.1.0 [INFO] [stderr] Downloaded dbus-tokio v0.7.6 [INFO] [stderr] Downloaded objc2-core-bluetooth v0.2.2 [INFO] [stderr] Downloaded devd-rs v0.3.6 [INFO] [stderr] Downloaded memoffset v0.8.0 [INFO] [stderr] Downloaded num-rational v0.3.2 [INFO] [stderr] Downloaded anyhow v1.0.94 [INFO] [stderr] Downloaded deflate v0.8.6 [INFO] [stderr] Downloaded xml-rs v0.8.24 [INFO] [stderr] Downloaded dbus v0.9.7 [INFO] [stderr] Downloaded cc v1.2.5 [INFO] [stderr] Downloaded x509-parser v0.16.0 [INFO] [stderr] Downloaded btleplug v0.11.6 [INFO] [stderr] Downloaded webauthn-rs-core v0.5.1 [INFO] [stderr] Downloaded authenticator v0.4.1 [INFO] [stderr] Downloaded clap_builder v4.5.23 [INFO] [stderr] Downloaded bindgen v0.65.1 [INFO] [stderr] Downloaded image v0.23.14 [INFO] [stderr] Downloaded jpeg-decoder v0.1.22 [INFO] [stderr] Downloaded nix v0.26.4 [INFO] [stderr] Downloaded syn v2.0.90 [INFO] [stderr] Downloaded jni v0.19.0 [INFO] [stderr] Downloaded jni-utils v0.1.1 [INFO] [stderr] Downloaded serialport v4.6.1 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.41.0 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.41.0 [INFO] [stderr] Downloaded asn1-rs v0.6.2 [INFO] [stderr] Downloaded serde v1.0.216 [INFO] [stderr] Downloaded prettyplease v0.2.25 [INFO] [stderr] Downloaded png v0.16.8 [INFO] [stderr] Downloaded qrcode v0.12.0 [INFO] [stderr] Downloaded tungstenite v0.24.0 [INFO] [stderr] Downloaded compact_jwt v0.4.3 [INFO] [stderr] Downloaded serde_cbor_2 v0.12.0-dev [INFO] [stderr] Downloaded der-parser v9.0.0 [INFO] [stderr] Downloaded serde_derive v1.0.216 [INFO] [stderr] Downloaded miniz_oxide v0.3.7 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.41.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.41.0 [INFO] [stderr] Downloaded gif v0.11.4 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.41.0 [INFO] [stderr] Downloaded bardecoder v0.4.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.41.0 [INFO] [stderr] Downloaded anstyle-wincon v3.0.6 [INFO] [stderr] Downloaded clap v4.5.23 [INFO] [stderr] Downloaded windows_i686_gnu v0.41.0 [INFO] [stderr] Downloaded bytemuck v1.21.0 [INFO] [stderr] Downloaded libudev v0.3.0 [INFO] [stderr] Downloaded memoffset v0.7.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.24.0 [INFO] [stderr] Downloaded bluez-generated v0.3.0 [INFO] [stderr] Downloaded bluez-async v0.7.2 [INFO] [stderr] Downloaded clap_derive v4.5.18 [INFO] [stderr] Downloaded udev v0.7.0 [INFO] [stderr] Downloaded fido-hid-rs v0.5.1 [INFO] [stderr] Downloaded pcsc v2.9.0 [INFO] [stderr] Downloaded unescaper v0.1.5 [INFO] [stderr] Downloaded oid-registry v0.7.1 [INFO] [stderr] Downloaded num-derive v0.3.3 [INFO] [stderr] Downloaded asn1-rs-derive v0.5.1 [INFO] [stderr] Downloaded security-framework-sys v2.13.0 [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded base64urlsafedata v0.5.1 [INFO] [stderr] Downloaded tiff v0.6.1 [INFO] [stderr] Downloaded libdbus-sys v0.2.5 [INFO] [stderr] Downloaded windows v0.41.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+dc8fe1f81c6cf13c0987944c525b2aa81625b5d0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09767654963c46b54da81b4cafb973c149a9251691becebd64908246dc8c9f01 [INFO] running `Command { std: "docker" "start" "-a" "09767654963c46b54da81b4cafb973c149a9251691becebd64908246dc8c9f01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09767654963c46b54da81b4cafb973c149a9251691becebd64908246dc8c9f01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09767654963c46b54da81b4cafb973c149a9251691becebd64908246dc8c9f01", kill_on_drop: false }` [INFO] [stdout] 09767654963c46b54da81b4cafb973c149a9251691becebd64908246dc8c9f01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+dc8fe1f81c6cf13c0987944c525b2aa81625b5d0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1cfb75c8cc69ea9364769e073a7b8acef33b7b04f09549d13354f8578f4f6c9 [INFO] running `Command { std: "docker" "start" "-a" "e1cfb75c8cc69ea9364769e073a7b8acef33b7b04f09549d13354f8578f4f6c9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling newtype_derive v0.1.6 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking tinyvec v1.8.1 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Compiling webauthn-authenticator-rs v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking clap_builder v4.5.23 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking libudev v0.3.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking tempfile v3.14.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking unescaper v0.1.5 [INFO] [stderr] Checking bardecoder v0.4.0 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking serialport v4.6.1 [INFO] [stderr] Checking clap v4.5.23 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking base64urlsafedata v0.5.1 [INFO] [stderr] Checking serde_cbor_2 v0.12.0-dev [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking webauthn-rs-proto v0.5.1 [INFO] [stdout] warning: unused import: `base64::engine::general_purpose::URL_SAFE_NO_PAD as BASE64_ENGINE` [INFO] [stdout] --> src/lib.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | use base64::engine::general_purpose::URL_SAFE_NO_PAD as BASE64_ENGINE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base64::engine::general_purpose::URL_SAFE_NO_PAD as BASE64_ENGINE` [INFO] [stdout] --> src/lib.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | use base64::engine::general_purpose::URL_SAFE_NO_PAD as BASE64_ENGINE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AuthenticatorBackendHashedClientData` is never used [INFO] [stdout] --> src/authenticator_hashed.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | pub trait AuthenticatorBackendHashedClientData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/types.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EnrollSampleStatus` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum EnrollSampleStatus { [INFO] [stdout] | ------------------ `EnrollSampleStatus` 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] [stdout] warning: trait `AuthenticatorBackendHashedClientData` is never used [INFO] [stdout] --> src/authenticator_hashed.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | pub trait AuthenticatorBackendHashedClientData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/types.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EnrollSampleStatus` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum EnrollSampleStatus { [INFO] [stdout] | ------------------ `EnrollSampleStatus` 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 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/types.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EnrollSampleStatus` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum EnrollSampleStatus { [INFO] [stdout] | ------------------ `EnrollSampleStatus` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/types.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EnrollSampleStatus` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum EnrollSampleStatus { [INFO] [stdout] | ------------------ `EnrollSampleStatus` 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 warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.75s [INFO] running `Command { std: "docker" "inspect" "e1cfb75c8cc69ea9364769e073a7b8acef33b7b04f09549d13354f8578f4f6c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1cfb75c8cc69ea9364769e073a7b8acef33b7b04f09549d13354f8578f4f6c9", kill_on_drop: false }` [INFO] [stdout] e1cfb75c8cc69ea9364769e073a7b8acef33b7b04f09549d13354f8578f4f6c9