[INFO] fetching crate sumtype 0.2.1... [INFO] checking sumtype-0.2.1 against master#a3f76a26e045a760bb1163b7eab36872985242d5 for pr-130930 [INFO] extracting crate sumtype 0.2.1 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate sumtype 0.2.1 on toolchain a3f76a26e045a760bb1163b7eab36872985242d5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3f76a26e045a760bb1163b7eab36872985242d5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sumtype 0.2.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate sumtype 0.2.1 [INFO] tweaked toml for crates.io crate sumtype 0.2.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3f76a26e045a760bb1163b7eab36872985242d5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 19 packages to latest compatible versions [INFO] [stderr] Adding derive-syn-parse v0.1.5 (available: v0.2.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3f76a26e045a760bb1163b7eab36872985242d5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded template-quote-impl v0.4.1 [INFO] [stderr] Downloaded template-quote v0.4.1 [INFO] [stderr] Downloaded sumtype-macro v0.2.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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+a3f76a26e045a760bb1163b7eab36872985242d5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9210d75d1d3221d723e00ab0018c6b9839feab575196470c09295268c252ca0f [INFO] running `Command { std: "docker" "start" "-a" "9210d75d1d3221d723e00ab0018c6b9839feab575196470c09295268c252ca0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9210d75d1d3221d723e00ab0018c6b9839feab575196470c09295268c252ca0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9210d75d1d3221d723e00ab0018c6b9839feab575196470c09295268c252ca0f", kill_on_drop: false }` [INFO] [stdout] 9210d75d1d3221d723e00ab0018c6b9839feab575196470c09295268c252ca0f [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+a3f76a26e045a760bb1163b7eab36872985242d5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a624615533ee729b856ba5fa81656971debd80efd438a8cca96e06e995d884a3 [INFO] running `Command { std: "docker" "start" "-a" "a624615533ee729b856ba5fa81656971debd80efd438a8cca96e06e995d884a3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling template-quote-impl v0.4.1 [INFO] [stderr] Compiling derive-syn-parse v0.1.5 [INFO] [stderr] Compiling template-quote v0.4.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling syn_derive v0.1.8 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling sumtype-macro v0.2.1 [INFO] [stderr] Checking sumtype v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/module.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_13383943222920266821_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_11701189073834629568` is not local [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn new(flag: bool) -> Self { [INFO] [stdout] | ------------------------------ move the `impl` block outside of this associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/module.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_15550677882502123625_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_11701189073834629568` is not local [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn new(flag: bool) -> Self { [INFO] [stdout] | ------------------------------ move the `impl` block outside of this associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/test_mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_16026953964752800103_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_11928837705095717099` is not local [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn new(flag: bool) -> Self { [INFO] [stdout] | ------------------------------ move the `impl` block outside of this associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/large.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_13136228283470962770_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_4828723548089460440` is not local [INFO] [stdout] ... [INFO] [stdout] 15 | fn f<'a, T>(i: usize, t: &'a T) -> Self::Ty<'a, T> { [INFO] [stdout] | -------------------------------------------------- move the `impl` block outside of this associated function `f` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/test_mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_1975725951193385417_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_11928837705095717099` is not local [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn new(flag: bool) -> Self { [INFO] [stdout] | ------------------------------ move the `impl` block outside of this associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/large.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_13624020090325377004_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_4828723548089460440` is not local [INFO] [stdout] ... [INFO] [stdout] 15 | fn f<'a, T>(i: usize, t: &'a T) -> Self::Ty<'a, T> { [INFO] [stdout] | -------------------------------------------------- move the `impl` block outside of this associated function `f` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/large.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_7961195884460623382_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_15057604039297137294` is not local [INFO] [stdout] ... [INFO] [stdout] 39 | fn f<'a>(i: usize, t: &'a T) -> Self::Ty<'a> { [INFO] [stdout] | -------------------------------------------- move the `impl` block outside of this associated function `f` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/large.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_14645169301071988615_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_15057604039297137294` is not local [INFO] [stdout] ... [INFO] [stdout] 39 | fn f<'a>(i: usize, t: &'a T) -> Self::Ty<'a> { [INFO] [stdout] | -------------------------------------------- move the `impl` block outside of this associated function `f` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/test_gparams.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_13381853448697369949_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_10190851183161516973` is not local [INFO] [stdout] | move the `impl` block outside of this function `with_generics` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/test_gparams.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_16073676983359211450_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_10190851183161516973` is not local [INFO] [stdout] | move the `impl` block outside of this function `with_generics` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/test_gparams.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_10140890748993652811_2` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_10190851183161516973` is not local [INFO] [stdout] | move the `impl` block outside of this function `with_generics` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/test.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_8526237036994591357_0` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_7623272685927899314` is not local [INFO] [stdout] | move the `impl` block outside of this function `generate_iter_explicit` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/test.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_2646930429996502769_1` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_7623272685927899314` is not local [INFO] [stdout] | move the `impl` block outside of this function `generate_iter_explicit` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (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/test.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[sumtype(sumtype::traits::Iterator)] [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `__SumType_RefType_11607321578573901010_2` is not local [INFO] [stdout] | `__Sumtype_TypeRef_Trait_7623272685927899314` is not local [INFO] [stdout] | move the `impl` block outside of this function `generate_iter_explicit` [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `sumtype` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `sumtype` may come from an old version of the `sumtype_macro` crate, try updating your dependency with `cargo update -p sumtype_macro` [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `sumtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.90s [INFO] running `Command { std: "docker" "inspect" "a624615533ee729b856ba5fa81656971debd80efd438a8cca96e06e995d884a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a624615533ee729b856ba5fa81656971debd80efd438a8cca96e06e995d884a3", kill_on_drop: false }` [INFO] [stdout] a624615533ee729b856ba5fa81656971debd80efd438a8cca96e06e995d884a3