[INFO] fetching crate enum-unitary 0.5.0... [INFO] checking enum-unitary-0.5.0 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] extracting crate enum-unitary 0.5.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate enum-unitary 0.5.0 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate enum-unitary 0.5.0 [INFO] finished tweaking crates.io crate enum-unitary 0.5.0 [INFO] tweaked toml for crates.io crate enum-unitary 0.5.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate enum-unitary 0.5.0 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum-iterator v1.1.3 [INFO] [stderr] Downloaded num-traits v0.2.15 [INFO] [stderr] Downloaded enum-iterator-derive v1.0.2 [INFO] [stderr] Downloaded quote v1.0.20 [INFO] [stderr] Downloaded unicode-ident v1.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.40 [INFO] [stderr] Downloaded syn v1.0.98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e99549164519d4e70a384af744dbf41220fd9ebd9edc668e73bc67ad43e4c973 [INFO] running `Command { std: "docker" "start" "-a" "e99549164519d4e70a384af744dbf41220fd9ebd9edc668e73bc67ad43e4c973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e99549164519d4e70a384af744dbf41220fd9ebd9edc668e73bc67ad43e4c973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e99549164519d4e70a384af744dbf41220fd9ebd9edc668e73bc67ad43e4c973", kill_on_drop: false }` [INFO] [stdout] e99549164519d4e70a384af744dbf41220fd9ebd9edc668e73bc67ad43e4c973 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23e357934bbe64b7064593defd0306a5caad581d77b20613e83f3e9824df289b [INFO] running `Command { std: "docker" "start" "-a" "23e357934bbe64b7064593defd0306a5caad581d77b20613e83f3e9824df289b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling enum-iterator-derive v1.0.2 [INFO] [stderr] Checking enum-iterator v1.1.3 [INFO] [stderr] Checking enum-unitary v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.95s [INFO] running `Command { std: "docker" "inspect" "23e357934bbe64b7064593defd0306a5caad581d77b20613e83f3e9824df289b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23e357934bbe64b7064593defd0306a5caad581d77b20613e83f3e9824df289b", kill_on_drop: false }` [INFO] [stdout] 23e357934bbe64b7064593defd0306a5caad581d77b20613e83f3e9824df289b [INFO] checking enum-unitary-0.5.0 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] extracting crate enum-unitary 0.5.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate enum-unitary 0.5.0 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate enum-unitary 0.5.0 [INFO] finished tweaking crates.io crate enum-unitary 0.5.0 [INFO] tweaked toml for crates.io crate enum-unitary 0.5.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate enum-unitary 0.5.0 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1775552592a3afefa5bb0343eff1790e4932c500d13e98099b844e20f73607bd [INFO] running `Command { std: "docker" "start" "-a" "1775552592a3afefa5bb0343eff1790e4932c500d13e98099b844e20f73607bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1775552592a3afefa5bb0343eff1790e4932c500d13e98099b844e20f73607bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1775552592a3afefa5bb0343eff1790e4932c500d13e98099b844e20f73607bd", kill_on_drop: false }` [INFO] [stdout] 1775552592a3afefa5bb0343eff1790e4932c500d13e98099b844e20f73607bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2bbda47810e5df158c503bf32824be499b56e351491428eb6218e75140b5182 [INFO] running `Command { std: "docker" "start" "-a" "c2bbda47810e5df158c503bf32824be499b56e351491428eb6218e75140b5182", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling enum-iterator-derive v1.0.2 [INFO] [stderr] Checking enum-iterator v1.1.3 [INFO] [stderr] Checking enum-unitary v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / impl From <$enum> for isize { [INFO] [stdout] 90 | | fn from (x : $enum) -> Self { [INFO] [stdout] 91 | | x as isize [INFO] [stdout] 92 | | } [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 216 | / enum_unitary!{ [INFO] [stdout] 217 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 218 | | enum Myenum1 { [INFO] [stdout] 219 | | A, B, C [INFO] [stdout] 220 | | } [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / impl From <$enum> for usize { [INFO] [stdout] 95 | | fn from (x : $enum) -> Self { [INFO] [stdout] 96 | | x as usize [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 216 | / enum_unitary!{ [INFO] [stdout] 217 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 218 | | enum Myenum1 { [INFO] [stdout] 219 | | A, B, C [INFO] [stdout] 220 | | } [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / impl From <$enum> for i64 { [INFO] [stdout] 100 | | fn from (x : $enum) -> Self { [INFO] [stdout] 101 | | x as i64 [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 216 | / enum_unitary!{ [INFO] [stdout] 217 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 218 | | enum Myenum1 { [INFO] [stdout] 219 | | A, B, C [INFO] [stdout] 220 | | } [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / impl From <$enum> for u64 { [INFO] [stdout] 105 | | fn from (x : $enum) -> Self { [INFO] [stdout] 106 | | x as u64 [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 216 | / enum_unitary!{ [INFO] [stdout] 217 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 218 | | enum Myenum1 { [INFO] [stdout] 219 | | A, B, C [INFO] [stdout] 220 | | } [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / impl From <$enum> for isize { [INFO] [stdout] 149 | | fn from (x : $enum) -> Self { [INFO] [stdout] 150 | | x as isize [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 248 | / enum_unitary!{ [INFO] [stdout] 249 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 250 | | pub enum Myenum2 { [INFO] [stdout] 251 | | A, B, C [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / impl From <$enum> for usize { [INFO] [stdout] 154 | | fn from (x: $enum) -> Self { [INFO] [stdout] 155 | | x as usize [INFO] [stdout] 156 | | } [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 248 | / enum_unitary!{ [INFO] [stdout] 249 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 250 | | pub enum Myenum2 { [INFO] [stdout] 251 | | A, B, C [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | / impl From <$enum> for i64 { [INFO] [stdout] 159 | | fn from (x : $enum) -> Self { [INFO] [stdout] 160 | | x as i64 [INFO] [stdout] 161 | | } [INFO] [stdout] 162 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 248 | / enum_unitary!{ [INFO] [stdout] 249 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 250 | | pub enum Myenum2 { [INFO] [stdout] 251 | | A, B, C [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | / impl From <$enum> for u64 { [INFO] [stdout] 164 | | fn from (x: $enum) -> Self { [INFO] [stdout] 165 | | x as u64 [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 248 | / enum_unitary!{ [INFO] [stdout] 249 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 250 | | pub enum Myenum2 { [INFO] [stdout] 251 | | A, B, C [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / impl From <$enum> for isize { [INFO] [stdout] 90 | | fn from (x : $enum) -> Self { [INFO] [stdout] 91 | | x as isize [INFO] [stdout] 92 | | } [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 280 | / enum_unitary!{ [INFO] [stdout] 281 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 282 | | enum Myenum3 { [INFO] [stdout] 283 | | X [INFO] [stdout] 284 | | } [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / impl From <$enum> for usize { [INFO] [stdout] 95 | | fn from (x : $enum) -> Self { [INFO] [stdout] 96 | | x as usize [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 280 | / enum_unitary!{ [INFO] [stdout] 281 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 282 | | enum Myenum3 { [INFO] [stdout] 283 | | X [INFO] [stdout] 284 | | } [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / impl From <$enum> for i64 { [INFO] [stdout] 100 | | fn from (x : $enum) -> Self { [INFO] [stdout] 101 | | x as i64 [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 280 | / enum_unitary!{ [INFO] [stdout] 281 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 282 | | enum Myenum3 { [INFO] [stdout] 283 | | X [INFO] [stdout] 284 | | } [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / impl From <$enum> for u64 { [INFO] [stdout] 105 | | fn from (x : $enum) -> Self { [INFO] [stdout] 106 | | x as u64 [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 280 | / enum_unitary!{ [INFO] [stdout] 281 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 282 | | enum Myenum3 { [INFO] [stdout] 283 | | X [INFO] [stdout] 284 | | } [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / impl From <$enum> for isize { [INFO] [stdout] 149 | | fn from (x : $enum) -> Self { [INFO] [stdout] 150 | | x as isize [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 300 | / enum_unitary!{ [INFO] [stdout] 301 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 302 | | pub enum Myenum4 { [INFO] [stdout] 303 | | X [INFO] [stdout] 304 | | } [INFO] [stdout] 305 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / impl From <$enum> for usize { [INFO] [stdout] 154 | | fn from (x: $enum) -> Self { [INFO] [stdout] 155 | | x as usize [INFO] [stdout] 156 | | } [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 300 | / enum_unitary!{ [INFO] [stdout] 301 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 302 | | pub enum Myenum4 { [INFO] [stdout] 303 | | X [INFO] [stdout] 304 | | } [INFO] [stdout] 305 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | / impl From <$enum> for i64 { [INFO] [stdout] 159 | | fn from (x : $enum) -> Self { [INFO] [stdout] 160 | | x as i64 [INFO] [stdout] 161 | | } [INFO] [stdout] 162 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 300 | / enum_unitary!{ [INFO] [stdout] 301 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 302 | | pub enum Myenum4 { [INFO] [stdout] 303 | | X [INFO] [stdout] 304 | | } [INFO] [stdout] 305 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | / impl From <$enum> for u64 { [INFO] [stdout] 164 | | fn from (x: $enum) -> Self { [INFO] [stdout] 165 | | x as u64 [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 300 | / enum_unitary!{ [INFO] [stdout] 301 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 302 | | pub enum Myenum4 { [INFO] [stdout] 303 | | X [INFO] [stdout] 304 | | } [INFO] [stdout] 305 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / impl From <$enum> for isize { [INFO] [stdout] 90 | | fn from (x : $enum) -> Self { [INFO] [stdout] 91 | | x as isize [INFO] [stdout] 92 | | } [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 320 | / enum_unitary!{ [INFO] [stdout] 321 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 322 | | enum Myenum5 { } [INFO] [stdout] 323 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / impl From <$enum> for usize { [INFO] [stdout] 95 | | fn from (x : $enum) -> Self { [INFO] [stdout] 96 | | x as usize [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 320 | / enum_unitary!{ [INFO] [stdout] 321 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 322 | | enum Myenum5 { } [INFO] [stdout] 323 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / impl From <$enum> for i64 { [INFO] [stdout] 100 | | fn from (x : $enum) -> Self { [INFO] [stdout] 101 | | x as i64 [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 320 | / enum_unitary!{ [INFO] [stdout] 321 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 322 | | enum Myenum5 { } [INFO] [stdout] 323 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / impl From <$enum> for u64 { [INFO] [stdout] 105 | | fn from (x : $enum) -> Self { [INFO] [stdout] 106 | | x as u64 [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 320 | / enum_unitary!{ [INFO] [stdout] 321 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 322 | | enum Myenum5 { } [INFO] [stdout] 323 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / impl From <$enum> for isize { [INFO] [stdout] 149 | | fn from (x : $enum) -> Self { [INFO] [stdout] 150 | | x as isize [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 332 | / enum_unitary!{ [INFO] [stdout] 333 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 334 | | pub enum Myenum6 { } [INFO] [stdout] 335 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / impl From <$enum> for usize { [INFO] [stdout] 154 | | fn from (x: $enum) -> Self { [INFO] [stdout] 155 | | x as usize [INFO] [stdout] 156 | | } [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 332 | / enum_unitary!{ [INFO] [stdout] 333 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 334 | | pub enum Myenum6 { } [INFO] [stdout] 335 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | / impl From <$enum> for i64 { [INFO] [stdout] 159 | | fn from (x : $enum) -> Self { [INFO] [stdout] 160 | | x as i64 [INFO] [stdout] 161 | | } [INFO] [stdout] 162 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 332 | / enum_unitary!{ [INFO] [stdout] 333 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 334 | | pub enum Myenum6 { } [INFO] [stdout] 335 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | / impl From <$enum> for u64 { [INFO] [stdout] 164 | | fn from (x: $enum) -> Self { [INFO] [stdout] 165 | | x as u64 [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] ... [INFO] [stdout] 332 | / enum_unitary!{ [INFO] [stdout] 333 | | #[derive(Debug, PartialEq)] [INFO] [stdout] 334 | | pub enum Myenum6 { } [INFO] [stdout] 335 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_unit` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `enum_unitary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `enum-unitary` (lib test) due to 25 previous errors [INFO] running `Command { std: "docker" "inspect" "c2bbda47810e5df158c503bf32824be499b56e351491428eb6218e75140b5182", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2bbda47810e5df158c503bf32824be499b56e351491428eb6218e75140b5182", kill_on_drop: false }` [INFO] [stdout] c2bbda47810e5df158c503bf32824be499b56e351491428eb6218e75140b5182