[INFO] fetching crate headers-ext 0.0.4... [INFO] checking headers-ext-0.0.4 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate headers-ext 0.0.4 into /workspace/builds/worker-3-tc2/source [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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate headers-ext 0.0.4 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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.9.4) [INFO] [stderr] Adding bytes v0.4.12 (available: v1.10.1) [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.3.1) [INFO] [stderr] Adding sha-1 v0.8.2 (available: v0.10.1) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.43) [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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded headers-derive v0.0.2 [INFO] [stderr] Downloaded headers-core v0.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c63b3a7687838566ec57f3dd9bf986697b1eea66f445f1391a7078d0256b1bfb [INFO] running `Command { std: "docker" "start" "-a" "c63b3a7687838566ec57f3dd9bf986697b1eea66f445f1391a7078d0256b1bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c63b3a7687838566ec57f3dd9bf986697b1eea66f445f1391a7078d0256b1bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c63b3a7687838566ec57f3dd9bf986697b1eea66f445f1391a7078d0256b1bfb", kill_on_drop: false }` [INFO] [stdout] c63b3a7687838566ec57f3dd9bf986697b1eea66f445f1391a7078d0256b1bfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2a8bf3fc81defad59e5b2ab02179d73839aeb995fe17b230af2d823cc421510 [INFO] running `Command { std: "docker" "start" "-a" "c2a8bf3fc81defad59e5b2ab02179d73839aeb995fe17b230af2d823cc421510", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking byte-tools v0.3.1 [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 time v0.1.45 [INFO] [stderr] Checking base64 v0.10.1 [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] 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: `#[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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: 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 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_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 test) due to 35 previous errors [INFO] running `Command { std: "docker" "inspect" "c2a8bf3fc81defad59e5b2ab02179d73839aeb995fe17b230af2d823cc421510", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2a8bf3fc81defad59e5b2ab02179d73839aeb995fe17b230af2d823cc421510", kill_on_drop: false }` [INFO] [stdout] c2a8bf3fc81defad59e5b2ab02179d73839aeb995fe17b230af2d823cc421510