[INFO] fetching crate headers-ext 0.0.4... [INFO] checking headers-ext-0.0.4 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate headers-ext 0.0.4 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate headers-ext 0.0.4 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate headers-ext 0.0.4 [INFO] finished tweaking crates.io crate headers-ext 0.0.4 [INFO] tweaked toml for crates.io crate headers-ext 0.0.4 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.10.1 (available: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding block-buffer v0.7.3 (available: v0.10.4) [INFO] [stderr] Adding block-padding v0.1.5 (available: v0.3.3) [INFO] [stderr] Adding bytes v0.4.12 (available: v1.7.2) [INFO] [stderr] Adding digest v0.8.1 (available: v0.10.7) [INFO] [stderr] Adding generic-array v0.12.4 (available: v1.1.0) [INFO] [stderr] Adding headers-core v0.0.2 (available: v0.3.0) [INFO] [stderr] Adding headers-derive v0.0.2 (available: v0.1.1) [INFO] [stderr] Adding http v0.1.21 (available: v1.1.0) [INFO] [stderr] Adding itoa v0.4.8 (available: v1.0.11) [INFO] [stderr] Adding opaque-debug v0.2.3 (available: v0.3.1) [INFO] [stderr] Adding proc-macro2 v0.4.30 (available: v1.0.86) [INFO] [stderr] Adding quote v0.6.13 (available: v1.0.37) [INFO] [stderr] Adding sha-1 v0.8.2 (available: v0.10.1) [INFO] [stderr] Adding syn v0.15.44 (available: v2.0.79) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.36) [INFO] [stderr] Adding unicode-xid v0.1.0 (available: v0.2.6) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 405e7f5ade5710fa3f82e6fa17516e493d4aae105062bb846222f7aedbf558a1 [INFO] running `Command { std: "docker" "start" "-a" "405e7f5ade5710fa3f82e6fa17516e493d4aae105062bb846222f7aedbf558a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "405e7f5ade5710fa3f82e6fa17516e493d4aae105062bb846222f7aedbf558a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "405e7f5ade5710fa3f82e6fa17516e493d4aae105062bb846222f7aedbf558a1", kill_on_drop: false }` [INFO] [stdout] 405e7f5ade5710fa3f82e6fa17516e493d4aae105062bb846222f7aedbf558a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01f2896b2e04eb31701d8756bbcbef88ffc5e61e377f9f0b01bd3565bfc0e576 [INFO] running `Command { std: "docker" "start" "-a" "01f2896b2e04eb31701d8756bbcbef88ffc5e61e377f9f0b01bd3565bfc0e576", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking headers-core v0.0.2 [INFO] [stderr] Compiling headers-derive v0.0.2 [INFO] [stderr] Checking headers-ext v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/entity.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 64 | let val = HeaderValue::from_static(bytes); [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | match EntityTag::from_val(&val) { [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: this value of type `Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/fmt.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn fmt(fmt: T) -> HeaderValue { [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | let s = fmt.to_string(); [INFO] [stdout] 7 | match HeaderValue::from_shared(s.into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option<::Item>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/iter.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 3 | let one = self.next()?; [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 4 | match self.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/entity.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 64 | let val = HeaderValue::from_static(bytes); [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | match EntityTag::from_val(&val) { [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: this value of type `Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/fmt.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn fmt(fmt: T) -> HeaderValue { [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | let s = fmt.to_string(); [INFO] [stdout] 7 | match HeaderValue::from_shared(s.into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Option<::Item>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/iter.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 3 | let one = self.next()?; [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 4 | match self.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `impl Iterator` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/common/connection.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn contains(&self, name: impl AsConnectionOption) -> bool { [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 84 | let s = name.as_connection_option(); [INFO] [stdout] 85 | / self [INFO] [stdout] 86 | | .0 [INFO] [stdout] 87 | | .iter() [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `impl Iterator` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/common/content_encoding.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn contains(&self, coding: impl AsCoding) -> bool { [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 62 | let s = coding.as_coding(); [INFO] [stdout] 63 | / self [INFO] [stdout] 64 | | .0 [INFO] [stdout] 65 | | .iter() [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `impl Iterator` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/common/connection.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn contains(&self, name: impl AsConnectionOption) -> bool { [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 84 | let s = name.as_connection_option(); [INFO] [stdout] 85 | / self [INFO] [stdout] 86 | | .0 [INFO] [stdout] 87 | | .iter() [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `impl Iterator` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/common/content_encoding.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn contains(&self, coding: impl AsCoding) -> bool { [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 62 | let s = coding.as_coding(); [INFO] [stdout] 63 | / self [INFO] [stdout] 64 | | .0 [INFO] [stdout] 65 | | .iter() [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/entity.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl EntityTag { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn from_static(bytes: &'static str) -> EntityTag { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn tag(&self) -> &[u8] { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_weak(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn strong_eq(&self, other: &EntityTag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn weak_eq(&self, other: &EntityTag) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn strong_ne(&self, other: &EntityTag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn weak_ne(&self, other: &EntityTag) -> bool { [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/common/accept_ranges.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, Header, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCEPT_RANGES` [INFO] [stdout] 25 | pub struct AcceptRanges(FlatCsv); [INFO] [stdout] | ------------ `AcceptRanges` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_allow_headers.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_HEADERS` [INFO] [stdout] 35 | pub struct AccessControlAllowHeaders(FlatCsv); [INFO] [stdout] | ------------------------- `AccessControlAllowHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_allow_methods.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_METHODS` [INFO] [stdout] 36 | pub struct AccessControlAllowMethods(FlatCsv); [INFO] [stdout] | ------------------------- `AccessControlAllowMethods` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_allow_origin.rs:32:45 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_ORIGIN` [INFO] [stdout] 33 | pub struct AccessControlAllowOrigin(OriginOrAny); [INFO] [stdout] | ------------------------ `AccessControlAllowOrigin` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_expose_headers.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_EXPOSE_HEADERS` [INFO] [stdout] 36 | pub struct AccessControlExposeHeaders(FlatCsv); [INFO] [stdout] | -------------------------- `AccessControlExposeHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_max_age.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_MAX_AGE` [INFO] [stdout] 31 | pub struct AccessControlMaxAge(Seconds); [INFO] [stdout] | ------------------- `AccessControlMaxAge` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/access_control_request_headers.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_REQUEST_HEADERS` [INFO] [stdout] 37 | pub struct AccessControlRequestHeaders(FlatCsv); [INFO] [stdout] | --------------------------- `AccessControlRequestHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/allow.rs:37:35 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ALLOW` [INFO] [stdout] 38 | pub struct Allow(FlatCsv); [INFO] [stdout] | ----- `Allow` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/connection.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONNECTION` [INFO] [stdout] 38 | pub struct Connection(FlatCsv); [INFO] [stdout] | ---------- `Connection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/content_encoding.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONTENT_ENCODING` [INFO] [stdout] 35 | pub struct ContentEncoding(FlatCsv); [INFO] [stdout] | --------------- `ContentEncoding` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/content_location.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONTENT_LOCATION` [INFO] [stdout] 29 | pub struct ContentLocation(HeaderValue); [INFO] [stdout] | --------------- `ContentLocation` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/cookie.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_COOKIE` [INFO] [stdout] 18 | pub struct Cookie(FlatCsv); [INFO] [stdout] | ------ `Cookie` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/date.rs:28:68 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_DATE` [INFO] [stdout] 29 | pub struct Date(HttpDate); [INFO] [stdout] | ---- `Date` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/etag.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Clone, Debug, PartialEq, Eq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ETAG` [INFO] [stdout] 30 | #[header(name_const = "ETAG")] [INFO] [stdout] 31 | pub struct ETag(pub(super) EntityTag); [INFO] [stdout] | ---- `ETag` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/expires.rs:32:68 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_EXPIRES` [INFO] [stdout] 33 | pub struct Expires(HttpDate); [INFO] [stdout] | ------- `Expires` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/if_match.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_MATCH` [INFO] [stdout] 40 | pub struct IfMatch(FlatCsv); [INFO] [stdout] | ------- `IfMatch` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/if_modified_since.rs:32:68 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_MODIFIED_SINCE` [INFO] [stdout] 33 | pub struct IfModifiedSince(HttpDate); [INFO] [stdout] | --------------- `IfModifiedSince` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/if_none_match.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_NONE_MATCH` [INFO] [stdout] 42 | pub struct IfNoneMatch(FlatCsv); [INFO] [stdout] | ----------- `IfNoneMatch` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/if_range.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_RANGE` [INFO] [stdout] 44 | pub struct IfRange(IfRange_); [INFO] [stdout] | ------- `IfRange` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/if_unmodified_since.rs:33:68 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_UNMODIFIED_SINCE` [INFO] [stdout] 34 | pub struct IfUnmodifiedSince(HttpDate); [INFO] [stdout] | ----------------- `IfUnmodifiedSince` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/last_modified.rs:33:68 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_LAST_MODIFIED` [INFO] [stdout] 34 | pub struct LastModified(pub(super) HttpDate); [INFO] [stdout] | ------------ `LastModified` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/location.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_LOCATION` [INFO] [stdout] 25 | pub struct Location(HeaderValue); [INFO] [stdout] | -------- `Location` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/origin.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ORIGIN` [INFO] [stdout] 28 | pub struct Origin(OriginOrNull); [INFO] [stdout] | ------ `Origin` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/pragma.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_PRAGMA` [INFO] [stdout] 27 | pub struct Pragma(HeaderValue); [INFO] [stdout] | ------ `Pragma` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/referer.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_REFERER` [INFO] [stdout] 33 | pub struct Referer(HeaderValue); [INFO] [stdout] | ------- `Referer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/referrer_policy.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_REFERRER_POLICY` [INFO] [stdout] 34 | pub struct ReferrerPolicy(Policy); [INFO] [stdout] | -------------- `ReferrerPolicy` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/retry_after.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug, Clone, PartialEq, Eq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_RETRY_AFTER` [INFO] [stdout] 28 | pub struct RetryAfter(After); [INFO] [stdout] | ---------- `RetryAfter` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/sec_websocket_accept.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SEC_WEBSOCKET_ACCEPT` [INFO] [stdout] 25 | pub struct SecWebsocketAccept(::HeaderValue); [INFO] [stdout] | ------------------ `SecWebsocketAccept` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/sec_websocket_key.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SEC_WEBSOCKET_KEY` [INFO] [stdout] 3 | pub struct SecWebsocketKey(pub(super) ::HeaderValue); [INFO] [stdout] | --------------- `SecWebsocketKey` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/server.rs:33:62 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SERVER` [INFO] [stdout] 34 | pub struct Server(HeaderValueString); [INFO] [stdout] | ------ `Server` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/te.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_TE` [INFO] [stdout] 29 | pub struct Te(FlatCsv); [INFO] [stdout] | -- `Te` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/transfer_encoding.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_TRANSFER_ENCODING` [INFO] [stdout] 42 | pub struct TransferEncoding(FlatCsv); [INFO] [stdout] | ---------------- `TransferEncoding` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/upgrade.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_UPGRADE` [INFO] [stdout] 43 | pub struct Upgrade(HeaderValue); [INFO] [stdout] | ------- `Upgrade` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/user_agent.rs:42:62 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_USER_AGENT` [INFO] [stdout] 43 | pub struct UserAgent(HeaderValueString); [INFO] [stdout] | --------- `UserAgent` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (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/common/vary.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_VARY` [INFO] [stdout] 33 | pub struct Vary(FlatCsv); [INFO] [stdout] | ---- `Vary` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/accept_ranges.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, Header, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCEPT_RANGES` [INFO] [stdout] 25 | pub struct AcceptRanges(FlatCsv); [INFO] [stdout] | ------------ `AcceptRanges` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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: the lint level is defined here [INFO] [stdout] --> src/lib.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(test, deny(warnings))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(non_local_definitions)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_allow_headers.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_HEADERS` [INFO] [stdout] 35 | pub struct AccessControlAllowHeaders(FlatCsv); [INFO] [stdout] | ------------------------- `AccessControlAllowHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_allow_methods.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_METHODS` [INFO] [stdout] 36 | pub struct AccessControlAllowMethods(FlatCsv); [INFO] [stdout] | ------------------------- `AccessControlAllowMethods` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_allow_origin.rs:32:45 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_ALLOW_ORIGIN` [INFO] [stdout] 33 | pub struct AccessControlAllowOrigin(OriginOrAny); [INFO] [stdout] | ------------------------ `AccessControlAllowOrigin` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_expose_headers.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_EXPOSE_HEADERS` [INFO] [stdout] 36 | pub struct AccessControlExposeHeaders(FlatCsv); [INFO] [stdout] | -------------------------- `AccessControlExposeHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_max_age.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_MAX_AGE` [INFO] [stdout] 31 | pub struct AccessControlMaxAge(Seconds); [INFO] [stdout] | ------------------- `AccessControlMaxAge` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/access_control_request_headers.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ACCESS_CONTROL_REQUEST_HEADERS` [INFO] [stdout] 37 | pub struct AccessControlRequestHeaders(FlatCsv); [INFO] [stdout] | --------------------------- `AccessControlRequestHeaders` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/allow.rs:37:35 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ALLOW` [INFO] [stdout] 38 | pub struct Allow(FlatCsv); [INFO] [stdout] | ----- `Allow` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/connection.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONNECTION` [INFO] [stdout] 38 | pub struct Connection(FlatCsv); [INFO] [stdout] | ---------- `Connection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/content_encoding.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONTENT_ENCODING` [INFO] [stdout] 35 | pub struct ContentEncoding(FlatCsv); [INFO] [stdout] | --------------- `ContentEncoding` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/content_location.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_CONTENT_LOCATION` [INFO] [stdout] 29 | pub struct ContentLocation(HeaderValue); [INFO] [stdout] | --------------- `ContentLocation` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/cookie.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_COOKIE` [INFO] [stdout] 18 | pub struct Cookie(FlatCsv); [INFO] [stdout] | ------ `Cookie` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/date.rs:28:68 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_DATE` [INFO] [stdout] 29 | pub struct Date(HttpDate); [INFO] [stdout] | ---- `Date` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/etag.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Clone, Debug, PartialEq, Eq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ETAG` [INFO] [stdout] 30 | #[header(name_const = "ETAG")] [INFO] [stdout] 31 | pub struct ETag(pub(super) EntityTag); [INFO] [stdout] | ---- `ETag` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/expires.rs:32:68 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_EXPIRES` [INFO] [stdout] 33 | pub struct Expires(HttpDate); [INFO] [stdout] | ------- `Expires` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/if_match.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_MATCH` [INFO] [stdout] 40 | pub struct IfMatch(FlatCsv); [INFO] [stdout] | ------- `IfMatch` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/if_modified_since.rs:32:68 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_MODIFIED_SINCE` [INFO] [stdout] 33 | pub struct IfModifiedSince(HttpDate); [INFO] [stdout] | --------------- `IfModifiedSince` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/if_none_match.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_NONE_MATCH` [INFO] [stdout] 42 | pub struct IfNoneMatch(FlatCsv); [INFO] [stdout] | ----------- `IfNoneMatch` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/if_range.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_RANGE` [INFO] [stdout] 44 | pub struct IfRange(IfRange_); [INFO] [stdout] | ------- `IfRange` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/if_unmodified_since.rs:33:68 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_IF_UNMODIFIED_SINCE` [INFO] [stdout] 34 | pub struct IfUnmodifiedSince(HttpDate); [INFO] [stdout] | ----------------- `IfUnmodifiedSince` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/last_modified.rs:33:68 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_LAST_MODIFIED` [INFO] [stdout] 34 | pub struct LastModified(pub(super) HttpDate); [INFO] [stdout] | ------------ `LastModified` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/location.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_LOCATION` [INFO] [stdout] 25 | pub struct Location(HeaderValue); [INFO] [stdout] | -------- `Location` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/origin.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_ORIGIN` [INFO] [stdout] 28 | pub struct Origin(OriginOrNull); [INFO] [stdout] | ------ `Origin` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/pragma.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_PRAGMA` [INFO] [stdout] 27 | pub struct Pragma(HeaderValue); [INFO] [stdout] | ------ `Pragma` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/referer.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_REFERER` [INFO] [stdout] 33 | pub struct Referer(HeaderValue); [INFO] [stdout] | ------- `Referer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/referrer_policy.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_REFERRER_POLICY` [INFO] [stdout] 34 | pub struct ReferrerPolicy(Policy); [INFO] [stdout] | -------------- `ReferrerPolicy` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/retry_after.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug, Clone, PartialEq, Eq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_RETRY_AFTER` [INFO] [stdout] 28 | pub struct RetryAfter(After); [INFO] [stdout] | ---------- `RetryAfter` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/sec_websocket_accept.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SEC_WEBSOCKET_ACCEPT` [INFO] [stdout] 25 | pub struct SecWebsocketAccept(::HeaderValue); [INFO] [stdout] | ------------------ `SecWebsocketAccept` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/sec_websocket_key.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, Debug, PartialEq, Eq, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SEC_WEBSOCKET_KEY` [INFO] [stdout] 3 | pub struct SecWebsocketKey(pub(super) ::HeaderValue); [INFO] [stdout] | --------------- `SecWebsocketKey` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/server.rs:33:62 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_SERVER` [INFO] [stdout] 34 | pub struct Server(HeaderValueString); [INFO] [stdout] | ------ `Server` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/te.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_TE` [INFO] [stdout] 29 | pub struct Te(FlatCsv); [INFO] [stdout] | -- `Te` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/transfer_encoding.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Clone, Debug, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_TRANSFER_ENCODING` [INFO] [stdout] 42 | pub struct TransferEncoding(FlatCsv); [INFO] [stdout] | ---------------- `TransferEncoding` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/upgrade.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Clone, Debug, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_UPGRADE` [INFO] [stdout] 43 | pub struct Upgrade(HeaderValue); [INFO] [stdout] | ------- `Upgrade` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/user_agent.rs:42:62 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_USER_AGENT` [INFO] [stdout] 43 | pub struct UserAgent(HeaderValueString); [INFO] [stdout] | --------- `UserAgent` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/common/vary.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, PartialEq, Header)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Header` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_HEADER_FOR_VARY` [INFO] [stdout] 33 | pub struct Vary(FlatCsv); [INFO] [stdout] | ---- `Vary` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Header` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Header` may come from an old version of the `headers_derive` crate, try updating your dependency with `cargo update -p headers_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 error originates in the derive macro `Header` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `headers-ext` (lib) due to 6 previous errors; 36 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `headers-ext` (lib test) due to 41 previous errors [INFO] running `Command { std: "docker" "inspect" "01f2896b2e04eb31701d8756bbcbef88ffc5e61e377f9f0b01bd3565bfc0e576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01f2896b2e04eb31701d8756bbcbef88ffc5e61e377f9f0b01bd3565bfc0e576", kill_on_drop: false }` [INFO] [stdout] 01f2896b2e04eb31701d8756bbcbef88ffc5e61e377f9f0b01bd3565bfc0e576