[INFO] fetching crate suan 0.0.4... [INFO] checking suan-0.0.4 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate suan 0.0.4 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate suan 0.0.4 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 suan 0.0.4 [INFO] finished tweaking crates.io crate suan 0.0.4 [INFO] tweaked toml for crates.io crate suan 0.0.4 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate suan 0.0.4 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 num-modular v0.5.1 [INFO] [stderr] Downloaded lru v0.7.6 [INFO] [stderr] Downloaded unindent v0.1.9 [INFO] [stderr] Downloaded target-lexicon v0.12.4 [INFO] [stderr] Downloaded suan-core v0.0.4 [INFO] [stderr] Downloaded num-irrational v0.3.0 [INFO] [stderr] Downloaded bitvec v1.0.0 [INFO] [stderr] Downloaded pyo3 v0.16.5 [INFO] [stderr] Downloaded pyo3-macros-backend v0.16.5 [INFO] [stderr] Downloaded pyo3-ffi v0.16.5 [INFO] [stderr] Downloaded num-complex v0.4.1 [INFO] [stderr] Downloaded pyo3-macros v0.16.5 [INFO] [stderr] Downloaded pyo3-build-config v0.16.5 [INFO] [stderr] Downloaded indoc v1.0.6 [INFO] [stderr] Downloaded wyz v0.5.0 [INFO] [stderr] Downloaded num-order v1.0.4 [INFO] [stderr] Downloaded num-prime v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 5281c48a31ba21cf37648e50976ece3efa2e6add73a019254ea11dc53f6bac5a [INFO] running `Command { std: "docker" "start" "-a" "5281c48a31ba21cf37648e50976ece3efa2e6add73a019254ea11dc53f6bac5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5281c48a31ba21cf37648e50976ece3efa2e6add73a019254ea11dc53f6bac5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5281c48a31ba21cf37648e50976ece3efa2e6add73a019254ea11dc53f6bac5a", kill_on_drop: false }` [INFO] [stdout] 5281c48a31ba21cf37648e50976ece3efa2e6add73a019254ea11dc53f6bac5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] b0c0256a4a1dd2c604e7f692c1275a20ffaad4d1ae03498dc92a0ce71150996f [INFO] running `Command { std: "docker" "start" "-a" "b0c0256a4a1dd2c604e7f692c1275a20ffaad4d1ae03498dc92a0ce71150996f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling target-lexicon v0.12.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling indoc v1.0.6 [INFO] [stderr] Checking wyz v0.5.0 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking bitvec v1.0.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling pyo3-build-config v0.16.5 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking ahash v0.7.6 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking num-complex v0.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking lru v0.7.6 [INFO] [stderr] Compiling pyo3-ffi v0.16.5 [INFO] [stderr] Compiling pyo3 v0.16.5 [INFO] [stderr] Checking num-modular v0.5.1 [INFO] [stderr] Checking bigdecimal v0.3.0 [INFO] [stderr] Checking num-irrational v0.3.0 [INFO] [stderr] Checking num-order v1.0.4 [INFO] [stderr] Checking num-prime v0.4.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.16.5 [INFO] [stderr] Compiling pyo3-macros v0.16.5 [INFO] [stderr] Checking suan-core v0.0.4 [INFO] [stderr] Checking suan v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:581:10 [INFO] [stdout] | [INFO] [stdout] 581 | fn parse(s: &str, ty: Option) -> PyResult { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:581:10 [INFO] [stdout] | [INFO] [stdout] 581 | fn parse(s: &str, ty: Option) -> PyResult { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.08s [INFO] running `Command { std: "docker" "inspect" "b0c0256a4a1dd2c604e7f692c1275a20ffaad4d1ae03498dc92a0ce71150996f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0c0256a4a1dd2c604e7f692c1275a20ffaad4d1ae03498dc92a0ce71150996f", kill_on_drop: false }` [INFO] [stdout] b0c0256a4a1dd2c604e7f692c1275a20ffaad4d1ae03498dc92a0ce71150996f [INFO] checking suan-0.0.4 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate suan 0.0.4 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate suan 0.0.4 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 suan 0.0.4 [INFO] finished tweaking crates.io crate suan 0.0.4 [INFO] tweaked toml for crates.io crate suan 0.0.4 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate suan 0.0.4 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 33e7c1a8c757a358dd4efb871a812aef011c1c11c65a939ab13b304a380cc573 [INFO] running `Command { std: "docker" "start" "-a" "33e7c1a8c757a358dd4efb871a812aef011c1c11c65a939ab13b304a380cc573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33e7c1a8c757a358dd4efb871a812aef011c1c11c65a939ab13b304a380cc573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33e7c1a8c757a358dd4efb871a812aef011c1c11c65a939ab13b304a380cc573", kill_on_drop: false }` [INFO] [stdout] 33e7c1a8c757a358dd4efb871a812aef011c1c11c65a939ab13b304a380cc573 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 57872f33f1ed8ea504bdbe4ad3d703f958e0055b53e25e320326440a51b22667 [INFO] running `Command { std: "docker" "start" "-a" "57872f33f1ed8ea504bdbe4ad3d703f958e0055b53e25e320326440a51b22667", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling target-lexicon v0.12.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking wyz v0.5.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Compiling indoc v1.0.6 [INFO] [stderr] Checking bitvec v1.0.0 [INFO] [stderr] Compiling pyo3-build-config v0.16.5 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking ahash v0.7.6 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking num-complex v0.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking lru v0.7.6 [INFO] [stderr] Compiling pyo3-ffi v0.16.5 [INFO] [stderr] Compiling pyo3 v0.16.5 [INFO] [stderr] Checking num-modular v0.5.1 [INFO] [stderr] Checking bigdecimal v0.3.0 [INFO] [stderr] Checking num-irrational v0.3.0 [INFO] [stderr] Checking num-order v1.0.4 [INFO] [stderr] Checking num-prime v0.4.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.16.5 [INFO] [stderr] Compiling pyo3-macros v0.16.5 [INFO] [stderr] Checking suan-core v0.0.4 [INFO] [stderr] Checking suan v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:581:10 [INFO] [stdout] | [INFO] [stdout] 581 | fn parse(s: &str, ty: Option) -> PyResult { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:581:10 [INFO] [stdout] | [INFO] [stdout] 581 | fn parse(s: &str, ty: Option) -> PyResult { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | register_simple_unary!(m, sqrt); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | register_simple_unary!(m, sqrt); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | register_simple_unary!(m, sqrt_); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | register_simple_unary!(m, cbrt); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | register_simple_unary!(m, sqrt_); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | register_simple_unary!(m, cbrt_); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | register_simple_unary!(m, cbrt); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (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:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | register_simple_unary!(m, cbrt_); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_` and up 2 bodies [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 attribute macro `pyfunction` which comes from the expansion of the macro `register_simple_unary` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `suan` (lib test) due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `suan` (lib) due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "57872f33f1ed8ea504bdbe4ad3d703f958e0055b53e25e320326440a51b22667", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57872f33f1ed8ea504bdbe4ad3d703f958e0055b53e25e320326440a51b22667", kill_on_drop: false }` [INFO] [stdout] 57872f33f1ed8ea504bdbe4ad3d703f958e0055b53e25e320326440a51b22667