[INFO] fetching crate err-derive 0.3.1... [INFO] testing err-derive-0.3.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate err-derive 0.3.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate err-derive 0.3.1 [INFO] finished tweaking crates.io crate err-derive 0.3.1 [INFO] tweaked toml for crates.io crate err-derive 0.3.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate err-derive 0.3.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate err-derive 0.3.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cargo_metadata v0.14.1 [INFO] [stderr] Downloaded bytecount v0.6.2 [INFO] [stderr] Downloaded camino v1.0.7 [INFO] [stderr] Downloaded semver v1.0.5 [INFO] [stderr] Downloaded pulldown-cmark v0.9.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12579819b95b35fdd547f1a828d4266b536c434e8b5fcd87c7596db00d4bf0ef [INFO] running `Command { std: "docker" "start" "-a" "12579819b95b35fdd547f1a828d4266b536c434e8b5fcd87c7596db00d4bf0ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12579819b95b35fdd547f1a828d4266b536c434e8b5fcd87c7596db00d4bf0ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12579819b95b35fdd547f1a828d4266b536c434e8b5fcd87c7596db00d4bf0ef", kill_on_drop: false }` [INFO] [stdout] 12579819b95b35fdd547f1a828d4266b536c434e8b5fcd87c7596db00d4bf0ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d77bca3aafb7cf6be8326963e53894c80ea61b4d7e90ce1ea4880426b24f4f0b [INFO] running `Command { std: "docker" "start" "-a" "d77bca3aafb7cf6be8326963e53894c80ea61b4d7e90ce1ea4880426b24f4f0b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling err-derive v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.92s [INFO] running `Command { std: "docker" "inspect" "d77bca3aafb7cf6be8326963e53894c80ea61b4d7e90ce1ea4880426b24f4f0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d77bca3aafb7cf6be8326963e53894c80ea61b4d7e90ce1ea4880426b24f4f0b", kill_on_drop: false }` [INFO] [stdout] d77bca3aafb7cf6be8326963e53894c80ea61b4d7e90ce1ea4880426b24f4f0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b52bf602eac32e32bfdc6a8fd205c2821565de4c2b77ddc78fc5c5479e6fa156 [INFO] running `Command { std: "docker" "start" "-a" "b52bf602eac32e32bfdc6a8fd205c2821565de4c2b77ddc78fc5c5479e6fa156", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling err-derive v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> examples/enums.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_FormatError` [INFO] [stdout] 10 | pub enum FormatError { [INFO] [stdout] | ----------- `FormatError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> examples/enums.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_FormatError` [INFO] [stdout] 10 | pub enum FormatError { [INFO] [stdout] | ----------- `FormatError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> examples/enums.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_LoadingError` [INFO] [stdout] 22 | pub enum LoadingError { [INFO] [stdout] | ------------ `LoadingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> examples/enums.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_LoadingError` [INFO] [stdout] 22 | pub enum LoadingError { [INFO] [stdout] | ------------ `LoadingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> examples/enums.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_FormatError_FOR_LoadingError` [INFO] [stdout] 22 | pub enum LoadingError { [INFO] [stdout] | ------------ `LoadingError` is not local [INFO] [stdout] 23 | #[error(display = "could not decode file")] [INFO] [stdout] 24 | FormatError(#[error(source)] FormatError), [INFO] [stdout] | ----------- `FormatError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_UnitError` [INFO] [stdout] 8 | #[error(display = "An error has occurred.")] [INFO] [stdout] 9 | struct UnitError; [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_UnitError` [INFO] [stdout] 8 | #[error(display = "An error has occurred.")] [INFO] [stdout] 9 | struct UnitError; [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_RecordError` [INFO] [stdout] 18 | #[error(display = "Error code: {}", code)] [INFO] [stdout] 19 | struct RecordError { [INFO] [stdout] | ----------- `RecordError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_RecordError` [INFO] [stdout] 18 | #[error(display = "Error code: {}", code)] [INFO] [stdout] 19 | struct RecordError { [INFO] [stdout] | ----------- `RecordError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_TupleError` [INFO] [stdout] 30 | #[error(display = "Error code: {}", _0)] [INFO] [stdout] 31 | struct TupleError(i32); [INFO] [stdout] | ---------- `TupleError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_TupleError` [INFO] [stdout] 30 | #[error(display = "Error code: {}", _0)] [INFO] [stdout] 31 | struct TupleError(i32); [INFO] [stdout] | ---------- `TupleError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumError` [INFO] [stdout] 40 | enum EnumError { [INFO] [stdout] | --------- `EnumError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumError` [INFO] [stdout] 40 | enum EnumError { [INFO] [stdout] | --------- `EnumError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_ErrorWithSource` [INFO] [stdout] 60 | enum ErrorWithSource { [INFO] [stdout] | --------------- `ErrorWithSource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_ErrorWithSource` [INFO] [stdout] 60 | enum ErrorWithSource { [INFO] [stdout] | --------------- `ErrorWithSource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_TupleError_FOR_ErrorWithSource` [INFO] [stdout] 60 | enum ErrorWithSource { [INFO] [stdout] | --------------- `ErrorWithSource` is not local [INFO] [stdout] 61 | #[error(display = "tuple error")] [INFO] [stdout] 62 | A(#[error(source)] TupleError), [INFO] [stdout] | ---------- `TupleError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumFrom` [INFO] [stdout] 73 | enum EnumFrom { [INFO] [stdout] | -------- `EnumFrom` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumFrom` [INFO] [stdout] 73 | enum EnumFrom { [INFO] [stdout] | -------- `EnumFrom` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumFrom` [INFO] [stdout] 73 | enum EnumFrom { [INFO] [stdout] | -------- `EnumFrom` is not local [INFO] [stdout] 74 | #[error(display = "Tuple error: {}", _0)] [INFO] [stdout] 75 | TupleVariant(#[error(source)] UnitError), [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_EnumError_FOR_EnumFrom` [INFO] [stdout] 73 | enum EnumFrom { [INFO] [stdout] | -------- `EnumFrom` is not local [INFO] [stdout] ... [INFO] [stdout] 79 | inner: EnumError, [INFO] [stdout] | --------- `EnumError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumNoFromVariant` [INFO] [stdout] 85 | enum EnumNoFromVariant { [INFO] [stdout] | ----------------- `EnumNoFromVariant` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumNoFromVariant` [INFO] [stdout] 85 | enum EnumNoFromVariant { [INFO] [stdout] | ----------------- `EnumNoFromVariant` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumNoFromVariant` [INFO] [stdout] 85 | enum EnumNoFromVariant { [INFO] [stdout] | ----------------- `EnumNoFromVariant` is not local [INFO] [stdout] 86 | #[error(display = "First error: {}", _0)] [INFO] [stdout] 87 | First(#[error(source)] UnitError), [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumNoFromStruct` [INFO] [stdout] 94 | #[error(no_from)] [INFO] [stdout] 95 | enum EnumNoFromStruct { [INFO] [stdout] | ---------------- `EnumNoFromStruct` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumNoFromStruct` [INFO] [stdout] 94 | #[error(no_from)] [INFO] [stdout] 95 | enum EnumNoFromStruct { [INFO] [stdout] | ---------------- `EnumNoFromStruct` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumNoFromStruct` [INFO] [stdout] 94 | #[error(no_from)] [INFO] [stdout] 95 | enum EnumNoFromStruct { [INFO] [stdout] | ---------------- `EnumNoFromStruct` is not local [INFO] [stdout] ... [INFO] [stdout] 99 | Second(#[error(source, from)] UnitError), [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumAutoBox` [INFO] [stdout] 119 | enum EnumAutoBox { [INFO] [stdout] | ----------- `EnumAutoBox` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumAutoBox` [INFO] [stdout] 119 | enum EnumAutoBox { [INFO] [stdout] | ----------- `EnumAutoBox` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_Box_UnitError_FOR_EnumAutoBox` [INFO] [stdout] 119 | enum EnumAutoBox { [INFO] [stdout] | ----------- `EnumAutoBox` is not local [INFO] [stdout] 120 | #[error(display = "Boxed error: {}", _0)] [INFO] [stdout] 121 | First(#[error(source)] Box), [INFO] [stdout] | --- --------- `UnitError` is not local [INFO] [stdout] | | [INFO] [stdout] | `Box` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `From` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumAutoBox` [INFO] [stdout] 119 | enum EnumAutoBox { [INFO] [stdout] | ----------- `EnumAutoBox` is not local [INFO] [stdout] 120 | #[error(display = "Boxed error: {}", _0)] [INFO] [stdout] 121 | First(#[error(source)] Box), [INFO] [stdout] | --------- `UnitError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Error` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_TestsNonFieldDisplayValues` [INFO] [stdout] 134 | pub enum TestsNonFieldDisplayValues { [INFO] [stdout] | -------------------------- `TestsNonFieldDisplayValues` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (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] --> tests/tests.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | #[derive(Debug, Error)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_TestsNonFieldDisplayValues` [INFO] [stdout] 134 | pub enum TestsNonFieldDisplayValues { [INFO] [stdout] | -------------------------- `TestsNonFieldDisplayValues` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_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 `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.76s [INFO] running `Command { std: "docker" "inspect" "b52bf602eac32e32bfdc6a8fd205c2821565de4c2b77ddc78fc5c5479e6fa156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b52bf602eac32e32bfdc6a8fd205c2821565de4c2b77ddc78fc5c5479e6fa156", kill_on_drop: false }` [INFO] [stdout] b52bf602eac32e32bfdc6a8fd205c2821565de4c2b77ddc78fc5c5479e6fa156 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] dee778f3fd0f7bdcd49be8ecd53ab1706057e2be93cb632a785ed232344164ad [INFO] running `Command { std: "docker" "start" "-a" "dee778f3fd0f7bdcd49be8ecd53ab1706057e2be93cb632a785ed232344164ad", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/enums.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_FormatError` [INFO] [stderr] 10 | pub enum FormatError { [INFO] [stderr] | ----------- `FormatError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/enums.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_FormatError` [INFO] [stderr] 10 | pub enum FormatError { [INFO] [stderr] | ----------- `FormatError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/enums.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_LoadingError` [INFO] [stderr] 22 | pub enum LoadingError { [INFO] [stderr] | ------------ `LoadingError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/enums.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_LoadingError` [INFO] [stderr] 22 | pub enum LoadingError { [INFO] [stderr] | ------------ `LoadingError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/enums.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_FormatError_FOR_LoadingError` [INFO] [stderr] 22 | pub enum LoadingError { [INFO] [stderr] | ------------ `LoadingError` is not local [INFO] [stderr] 23 | #[error(display = "could not decode file")] [INFO] [stderr] 24 | FormatError(#[error(source)] FormatError), [INFO] [stderr] | ----------- `FormatError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:7:17 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_UnitError` [INFO] [stderr] 8 | #[error(display = "An error has occurred.")] [INFO] [stderr] 9 | struct UnitError; [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:7:17 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_UnitError` [INFO] [stderr] 8 | #[error(display = "An error has occurred.")] [INFO] [stderr] 9 | struct UnitError; [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:17:17 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_RecordError` [INFO] [stderr] 18 | #[error(display = "Error code: {}", code)] [INFO] [stderr] 19 | struct RecordError { [INFO] [stderr] | ----------- `RecordError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:17:17 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_RecordError` [INFO] [stderr] 18 | #[error(display = "Error code: {}", code)] [INFO] [stderr] 19 | struct RecordError { [INFO] [stderr] | ----------- `RecordError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:29:17 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_TupleError` [INFO] [stderr] 30 | #[error(display = "Error code: {}", _0)] [INFO] [stderr] 31 | struct TupleError(i32); [INFO] [stderr] | ---------- `TupleError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:29:17 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_TupleError` [INFO] [stderr] 30 | #[error(display = "Error code: {}", _0)] [INFO] [stderr] 31 | struct TupleError(i32); [INFO] [stderr] | ---------- `TupleError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumError` [INFO] [stderr] 40 | enum EnumError { [INFO] [stderr] | --------- `EnumError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumError` [INFO] [stderr] 40 | enum EnumError { [INFO] [stderr] | --------- `EnumError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:59:17 [INFO] [stderr] | [INFO] [stderr] 59 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_ErrorWithSource` [INFO] [stderr] 60 | enum ErrorWithSource { [INFO] [stderr] | --------------- `ErrorWithSource` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:59:17 [INFO] [stderr] | [INFO] [stderr] 59 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_ErrorWithSource` [INFO] [stderr] 60 | enum ErrorWithSource { [INFO] [stderr] | --------------- `ErrorWithSource` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:59:17 [INFO] [stderr] | [INFO] [stderr] 59 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_TupleError_FOR_ErrorWithSource` [INFO] [stderr] 60 | enum ErrorWithSource { [INFO] [stderr] | --------------- `ErrorWithSource` is not local [INFO] [stderr] 61 | #[error(display = "tuple error")] [INFO] [stderr] 62 | A(#[error(source)] TupleError), [INFO] [stderr] | ---------- `TupleError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumFrom` [INFO] [stderr] 73 | enum EnumFrom { [INFO] [stderr] | -------- `EnumFrom` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumFrom` [INFO] [stderr] 73 | enum EnumFrom { [INFO] [stderr] | -------- `EnumFrom` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumFrom` [INFO] [stderr] 73 | enum EnumFrom { [INFO] [stderr] | -------- `EnumFrom` is not local [INFO] [stderr] 74 | #[error(display = "Tuple error: {}", _0)] [INFO] [stderr] 75 | TupleVariant(#[error(source)] UnitError), [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_EnumError_FOR_EnumFrom` [INFO] [stderr] 73 | enum EnumFrom { [INFO] [stderr] | -------- `EnumFrom` is not local [INFO] [stderr] ... [INFO] [stderr] 79 | inner: EnumError, [INFO] [stderr] | --------- `EnumError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumNoFromVariant` [INFO] [stderr] 85 | enum EnumNoFromVariant { [INFO] [stderr] | ----------------- `EnumNoFromVariant` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumNoFromVariant` [INFO] [stderr] 85 | enum EnumNoFromVariant { [INFO] [stderr] | ----------------- `EnumNoFromVariant` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumNoFromVariant` [INFO] [stderr] 85 | enum EnumNoFromVariant { [INFO] [stderr] | ----------------- `EnumNoFromVariant` is not local [INFO] [stderr] 86 | #[error(display = "First error: {}", _0)] [INFO] [stderr] 87 | First(#[error(source)] UnitError), [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:93:17 [INFO] [stderr] | [INFO] [stderr] 93 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumNoFromStruct` [INFO] [stderr] 94 | #[error(no_from)] [INFO] [stderr] 95 | enum EnumNoFromStruct { [INFO] [stderr] | ---------------- `EnumNoFromStruct` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:93:17 [INFO] [stderr] | [INFO] [stderr] 93 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumNoFromStruct` [INFO] [stderr] 94 | #[error(no_from)] [INFO] [stderr] 95 | enum EnumNoFromStruct { [INFO] [stderr] | ---------------- `EnumNoFromStruct` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:93:17 [INFO] [stderr] | [INFO] [stderr] 93 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumNoFromStruct` [INFO] [stderr] 94 | #[error(no_from)] [INFO] [stderr] 95 | enum EnumNoFromStruct { [INFO] [stderr] | ---------------- `EnumNoFromStruct` is not local [INFO] [stderr] ... [INFO] [stderr] 99 | Second(#[error(source, from)] UnitError), [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:118:17 [INFO] [stderr] | [INFO] [stderr] 118 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_EnumAutoBox` [INFO] [stderr] 119 | enum EnumAutoBox { [INFO] [stderr] | ----------- `EnumAutoBox` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:118:17 [INFO] [stderr] | [INFO] [stderr] 118 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_EnumAutoBox` [INFO] [stderr] 119 | enum EnumAutoBox { [INFO] [stderr] | ----------- `EnumAutoBox` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:118:17 [INFO] [stderr] | [INFO] [stderr] 118 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_Box_UnitError_FOR_EnumAutoBox` [INFO] [stderr] 119 | enum EnumAutoBox { [INFO] [stderr] | ----------- `EnumAutoBox` is not local [INFO] [stderr] 120 | #[error(display = "Boxed error: {}", _0)] [INFO] [stderr] 121 | First(#[error(source)] Box), [INFO] [stderr] | --- --------- `UnitError` is not local [INFO] [stderr] | | [INFO] [stderr] | `Box` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [INFO] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] running 0 tests [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] --> tests/tests.rs:118:17 [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 118 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `From` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_convert_From_UnitError_FOR_EnumAutoBox` [INFO] [stderr] 119 | enum EnumAutoBox { [INFO] [stderr] | ----------- `EnumAutoBox` is not local [INFO] [stderr] 120 | #[error(display = "Boxed error: {}", _0)] [INFO] [stderr] 121 | First(#[error(source)] Box), [INFO] [stderr] | --------- `UnitError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:133:17 [INFO] [stderr] | [INFO] [stderr] 133 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Error` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_std_error_Error_FOR_TestsNonFieldDisplayValues` [INFO] [stderr] 134 | pub enum TestsNonFieldDisplayValues { [INFO] [stderr] | -------------------------- `TestsNonFieldDisplayValues` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/tests.rs:133:17 [INFO] [stderr] | [INFO] [stderr] 133 | #[derive(Debug, Error)] [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Display_FOR_TestsNonFieldDisplayValues` [INFO] [stderr] 134 | pub enum TestsNonFieldDisplayValues { [INFO] [stderr] | -------------------------- `TestsNonFieldDisplayValues` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Error` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Error` may come from an old version of the `err_derive` crate, try updating your dependency with `cargo update -p err_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `err-derive` (example "enums") generated 5 warnings [INFO] [stderr] warning: `err-derive` (test "tests") generated 27 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/err_derive-15da84f582029cae) [INFO] [stderr] Running tests/no-std.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/no_std-e753952bf8b5cb55) [INFO] [stderr] Running tests/skeptic.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/skeptic-5e107e8698a67391) [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/tests-acddb9bb717aa4bd) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test enum_error ... ok [INFO] [stdout] test from_enum_autobox ... ok [INFO] [stdout] test from_inner ... ok [INFO] [stdout] test non_field_display ... ok [INFO] [stdout] test record_struct ... ok [INFO] [stdout] test tuple_struct ... ok [INFO] [stdout] test unit_struct ... ok [INFO] [stderr] Doc-tests err_derive [INFO] [stdout] test error_with_source ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - (line 126) ... ok [INFO] [stdout] test src/lib.rs - (line 7) ... ok [INFO] [stdout] test src/lib.rs - (line 31) ... ok [INFO] [stdout] test src/lib.rs - (line 53) ... ok [INFO] [stdout] test src/lib.rs - (line 83) ... ok [INFO] [stdout] test src/lib.rs - (line 96) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.40s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dee778f3fd0f7bdcd49be8ecd53ab1706057e2be93cb632a785ed232344164ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dee778f3fd0f7bdcd49be8ecd53ab1706057e2be93cb632a785ed232344164ad", kill_on_drop: false }` [INFO] [stdout] dee778f3fd0f7bdcd49be8ecd53ab1706057e2be93cb632a785ed232344164ad