[INFO] fetching crate indy 1.16.0-post-286... [INFO] checking indy-1.16.0-post-286 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate indy 1.16.0-post-286 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate indy 1.16.0-post-286 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 indy 1.16.0-post-286 [INFO] finished tweaking crates.io crate indy 1.16.0-post-286 [INFO] tweaked toml for crates.io crate indy 1.16.0-post-286 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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] Downloading crates ... [INFO] [stderr] Downloaded indy-sys v1.16.0-post-286 [INFO] [stderr] Downloaded rmp-serde v0.13.7 [INFO] [stderr] Downloaded num-derive v0.2.5 [INFO] [stderr] Downloaded addr2line v0.14.1 [INFO] [stderr] Downloaded object v0.22.0 [INFO] [stderr] Downloaded backtrace v0.3.55 [INFO] [stderr] Downloaded gimli v0.23.0 [INFO] [stderr] Downloaded bs58 v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d56488ece9658b0369d3ccf15a03b075969422d9a9cb195181f21e6fbd4ef19b [INFO] running `Command { std: "docker" "start" "-a" "d56488ece9658b0369d3ccf15a03b075969422d9a9cb195181f21e6fbd4ef19b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d56488ece9658b0369d3ccf15a03b075969422d9a9cb195181f21e6fbd4ef19b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d56488ece9658b0369d3ccf15a03b075969422d9a9cb195181f21e6fbd4ef19b", kill_on_drop: false }` [INFO] [stdout] d56488ece9658b0369d3ccf15a03b075969422d9a9cb195181f21e6fbd4ef19b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 17c734d9ae9e63de97bf3907b323cc217258f731708e6ada5343e36ee615b459 [INFO] running `Command { std: "docker" "start" "-a" "17c734d9ae9e63de97bf3907b323cc217258f731708e6ada5343e36ee615b459", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rmp v0.8.12 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking rmp-serde v0.13.7 [INFO] [stderr] Checking bs58 v0.2.5 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling indy-sys v1.16.0-post-286 [INFO] [stderr] Checking indy v1.16.0-post-286 (/opt/rustwide/workdir) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:173:77 [INFO] [stdout] | [INFO] [stdout] 173 | callback(command_handle, 0, CString::new("This is a test").unwrap().as_ptr(), null()); [INFO] [stdout] | --------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:185:77 [INFO] [stdout] | [INFO] [stdout] 185 | callback(command_handle, 0, CString::new("This is a test").unwrap().as_ptr(), CString::new("The second string has something").unw... [INFO] [stdout] | --------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:185:144 [INFO] [stdout] | [INFO] [stdout] 185 | ... a test").unwrap().as_ptr(), CString::new("The second string has something").unwrap().as_ptr()); [INFO] [stdout] | -------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.74s [INFO] running `Command { std: "docker" "inspect" "17c734d9ae9e63de97bf3907b323cc217258f731708e6ada5343e36ee615b459", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17c734d9ae9e63de97bf3907b323cc217258f731708e6ada5343e36ee615b459", kill_on_drop: false }` [INFO] [stdout] 17c734d9ae9e63de97bf3907b323cc217258f731708e6ada5343e36ee615b459 [INFO] checking indy-1.16.0-post-286 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate indy 1.16.0-post-286 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate indy 1.16.0-post-286 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 indy 1.16.0-post-286 [INFO] finished tweaking crates.io crate indy 1.16.0-post-286 [INFO] tweaked toml for crates.io crate indy 1.16.0-post-286 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a08fbbd3b7e7e50ce6147771e807af6fd29c212f0eba78f19a7b16a2a95654be [INFO] running `Command { std: "docker" "start" "-a" "a08fbbd3b7e7e50ce6147771e807af6fd29c212f0eba78f19a7b16a2a95654be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a08fbbd3b7e7e50ce6147771e807af6fd29c212f0eba78f19a7b16a2a95654be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a08fbbd3b7e7e50ce6147771e807af6fd29c212f0eba78f19a7b16a2a95654be", kill_on_drop: false }` [INFO] [stdout] a08fbbd3b7e7e50ce6147771e807af6fd29c212f0eba78f19a7b16a2a95654be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 4c1d3d393a871181d974cf92217b34f74d8b18b8c5f05a84592a603d41d7b8a6 [INFO] running `Command { std: "docker" "start" "-a" "4c1d3d393a871181d974cf92217b34f74d8b18b8c5f05a84592a603d41d7b8a6", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rmp v0.8.12 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking rmp-serde v0.13.7 [INFO] [stderr] Checking bs58 v0.2.5 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Compiling indy-sys v1.16.0-post-286 [INFO] [stderr] Checking indy v1.16.0-post-286 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/lib.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_Fail_FOR_ErrorCode` [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 derive macro `Fail` (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:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorCode` [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 derive macro `Fail` (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:77:47 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [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 derive macro `FromPrimitive` (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:77:62 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_ErrorCode` [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 derive macro `ToPrimitive` (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:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_Fail_FOR_ErrorCode` [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 derive macro `Fail` (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:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorCode` [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 derive macro `Fail` (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:77:47 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [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 derive macro `FromPrimitive` (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:77:62 [INFO] [stdout] | [INFO] [stdout] 77 | #[derive(Fail, Debug, PartialEq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_ErrorCode` [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 derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:173:77 [INFO] [stdout] | [INFO] [stdout] 173 | callback(command_handle, 0, CString::new("This is a test").unwrap().as_ptr(), null()); [INFO] [stdout] | --------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:185:77 [INFO] [stdout] | [INFO] [stdout] 185 | callback(command_handle, 0, CString::new("This is a test").unwrap().as_ptr(), CString::new("The second string has something").unw... [INFO] [stdout] | --------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/utils/callbacks.rs:185:144 [INFO] [stdout] | [INFO] [stdout] 185 | ... a test").unwrap().as_ptr(), CString::new("The second string has something").unwrap().as_ptr()); [INFO] [stdout] | -------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `indy` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `indy` (lib test) due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4c1d3d393a871181d974cf92217b34f74d8b18b8c5f05a84592a603d41d7b8a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c1d3d393a871181d974cf92217b34f74d8b18b8c5f05a84592a603d41d7b8a6", kill_on_drop: false }` [INFO] [stdout] 4c1d3d393a871181d974cf92217b34f74d8b18b8c5f05a84592a603d41d7b8a6