[INFO] fetching crate prost-helper 0.7.0... [INFO] checking prost-helper-0.7.0 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate prost-helper 0.7.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate prost-helper 0.7.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 prost-helper 0.7.0 [INFO] finished tweaking crates.io crate prost-helper 0.7.0 [INFO] tweaked toml for crates.io crate prost-helper 0.7.0 written to /workspace/builds/worker-5-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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 7a46df97079dc764addaeac08d6c71676712e3c8300a6119611b7d9775170434 [INFO] running `Command { std: "docker" "start" "-a" "7a46df97079dc764addaeac08d6c71676712e3c8300a6119611b7d9775170434", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a46df97079dc764addaeac08d6c71676712e3c8300a6119611b7d9775170434", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a46df97079dc764addaeac08d6c71676712e3c8300a6119611b7d9775170434", kill_on_drop: false }` [INFO] [stdout] 7a46df97079dc764addaeac08d6c71676712e3c8300a6119611b7d9775170434 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 2765ff7b1b0ab609a063bf206c65aa6c69cca90db03e595812290ce4201b19aa [INFO] running `Command { std: "docker" "start" "-a" "2765ff7b1b0ab609a063bf206c65aa6c69cca90db03e595812290ce4201b19aa", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Checking serde v1.0.196 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Checking prost v0.11.9 [INFO] [stderr] Checking prost-helper v0.7.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.00s [INFO] running `Command { std: "docker" "inspect" "2765ff7b1b0ab609a063bf206c65aa6c69cca90db03e595812290ce4201b19aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2765ff7b1b0ab609a063bf206c65aa6c69cca90db03e595812290ce4201b19aa", kill_on_drop: false }` [INFO] [stdout] 2765ff7b1b0ab609a063bf206c65aa6c69cca90db03e595812290ce4201b19aa [INFO] checking prost-helper-0.7.0 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate prost-helper 0.7.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate prost-helper 0.7.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 prost-helper 0.7.0 [INFO] finished tweaking crates.io crate prost-helper 0.7.0 [INFO] tweaked toml for crates.io crate prost-helper 0.7.0 written to /workspace/builds/worker-5-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] Blocking waiting for file lock on package cache [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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 369c1f3a43da8374aac0a06ae0a5d1dd52dee289ba008a3866e4c54d7a93e110 [INFO] running `Command { std: "docker" "start" "-a" "369c1f3a43da8374aac0a06ae0a5d1dd52dee289ba008a3866e4c54d7a93e110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "369c1f3a43da8374aac0a06ae0a5d1dd52dee289ba008a3866e4c54d7a93e110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "369c1f3a43da8374aac0a06ae0a5d1dd52dee289ba008a3866e4c54d7a93e110", kill_on_drop: false }` [INFO] [stdout] 369c1f3a43da8374aac0a06ae0a5d1dd52dee289ba008a3866e4c54d7a93e110 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 206cefd6d35bd8b5ed3197211a4d5754cece6cc0fee7028980e7bbe870fd6faa [INFO] running `Command { std: "docker" "start" "-a" "206cefd6d35bd8b5ed3197211a4d5754cece6cc0fee7028980e7bbe870fd6faa", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Checking serde v1.0.196 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Checking prost v0.11.9 [INFO] [stderr] Checking prost-helper v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/macros.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | $(impl std::convert::From<$type> for Vec { [INFO] [stdout] | ___________^ [INFO] [stdout] 9 | | fn from(msg: $type) -> Self { [INFO] [stdout] 10 | | let mut buf = bytes::BytesMut::with_capacity($cap); [INFO] [stdout] 11 | | msg.encode(&mut buf).unwrap(); [INFO] [stdout] 12 | | buf.to_vec() [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 118 | prost_into_vec!((Hello, 32), (World, 256)); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_vec` [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 `prost_into_vec` (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/macros.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | / impl std::convert::From<&$type> for Vec { [INFO] [stdout] 16 | | fn from(msg: &$type) -> Self { [INFO] [stdout] 17 | | let mut buf = bytes::BytesMut::with_capacity($cap); [INFO] [stdout] 18 | | msg.encode(&mut buf).unwrap(); [INFO] [stdout] 19 | | buf.to_vec() [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | })* [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 118 | prost_into_vec!((Hello, 32), (World, 256)); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_vec` [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 `prost_into_vec` (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/macros.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | $(impl std::convert::TryFrom> for $type { [INFO] [stdout] | ___________^ [INFO] [stdout] 53 | | type Error = prost::DecodeError; [INFO] [stdout] 54 | | fn try_from(buf: Vec) -> Result { [INFO] [stdout] 55 | | let msg: $type = Message::decode(&buf[..])?; [INFO] [stdout] 56 | | Ok(msg) [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 119 | vec_try_into_prost!(Hello, World); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_vec` [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 `vec_try_into_prost` (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/macros.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / impl std::convert::TryFrom<&[u8]> for $type { [INFO] [stdout] 61 | | type Error = prost::DecodeError; [INFO] [stdout] 62 | | fn try_from(buf: &[u8]) -> Result { [INFO] [stdout] 63 | | let msg: $type = Message::decode(buf)?; [INFO] [stdout] 64 | | Ok(msg) [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | })* [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 119 | vec_try_into_prost!(Hello, World); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_vec` [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 `vec_try_into_prost` (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/macros.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | $(impl std::convert::From<$type> for bytes::Bytes { [INFO] [stdout] | ___________^ [INFO] [stdout] 29 | | fn from(msg: $type) -> Self { [INFO] [stdout] 30 | | let mut buf = bytes::BytesMut::with_capacity($cap); [INFO] [stdout] 31 | | msg.encode(&mut buf).unwrap(); [INFO] [stdout] 32 | | buf.freeze() [INFO] [stdout] 33 | | } [INFO] [stdout] 34 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 134 | prost_into_bytes!((Hello, 32), (World, 256)); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_bytes` [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 `prost_into_bytes` (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/macros.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | / impl std::convert::From<&$type> for bytes::Bytes { [INFO] [stdout] 36 | | fn from(msg: &$type) -> Self { [INFO] [stdout] 37 | | let mut buf = bytes::BytesMut::with_capacity($cap); [INFO] [stdout] 38 | | msg.encode(&mut buf).unwrap(); [INFO] [stdout] 39 | | buf.freeze() [INFO] [stdout] 40 | | } [INFO] [stdout] 41 | | })* [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 134 | prost_into_bytes!((Hello, 32), (World, 256)); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_bytes` [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 `prost_into_bytes` (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/macros.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | $(impl std::convert::TryFrom for $type { [INFO] [stdout] | ___________^ [INFO] [stdout] 74 | | type Error = prost::DecodeError; [INFO] [stdout] 75 | | fn try_from(buf: bytes::Bytes) -> Result { [INFO] [stdout] 76 | | let msg: $type = Message::decode(buf)?; [INFO] [stdout] 77 | | Ok(msg) [INFO] [stdout] 78 | | } [INFO] [stdout] 79 | | })* [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 135 | bytes_try_into_prost!(Hello, World); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `test_prost_try_into_bytes` [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 `bytes_try_into_prost` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `prost-helper` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "206cefd6d35bd8b5ed3197211a4d5754cece6cc0fee7028980e7bbe870fd6faa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "206cefd6d35bd8b5ed3197211a4d5754cece6cc0fee7028980e7bbe870fd6faa", kill_on_drop: false }` [INFO] [stdout] 206cefd6d35bd8b5ed3197211a4d5754cece6cc0fee7028980e7bbe870fd6faa