[INFO] fetching crate superstruct 0.7.0... [INFO] checking superstruct-0.7.0 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate superstruct 0.7.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate superstruct 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 superstruct 0.7.0 [INFO] finished tweaking crates.io crate superstruct 0.7.0 [INFO] tweaked toml for crates.io crate superstruct 0.7.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate superstruct 0.7.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] Downloading crates ... [INFO] [stderr] Downloaded darling_macro v0.13.0 [INFO] [stderr] Downloaded darling v0.13.0 [INFO] [stderr] Downloaded darling_core v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a41cdd1a8962641e4e0995847861eb014eae917e82d7ff2dd29c4ca16f513ea2 [INFO] running `Command { std: "docker" "start" "-a" "a41cdd1a8962641e4e0995847861eb014eae917e82d7ff2dd29c4ca16f513ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a41cdd1a8962641e4e0995847861eb014eae917e82d7ff2dd29c4ca16f513ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a41cdd1a8962641e4e0995847861eb014eae917e82d7ff2dd29c4ca16f513ea2", kill_on_drop: false }` [INFO] [stdout] a41cdd1a8962641e4e0995847861eb014eae917e82d7ff2dd29c4ca16f513ea2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] cb6d0e4b617ae6f61295c1d48ed7e4c13107aaeb1fbda5d5b05d7165f5f903eb [INFO] running `Command { std: "docker" "start" "-a" "cb6d0e4b617ae6f61295c1d48ed7e4c13107aaeb1fbda5d5b05d7165f5f903eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Checking unicode-xid v0.2.2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking quote v1.0.10 [INFO] [stderr] Checking darling_core v0.13.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Checking darling v0.13.0 [INFO] [stderr] Checking superstruct v0.7.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.24s [INFO] running `Command { std: "docker" "inspect" "cb6d0e4b617ae6f61295c1d48ed7e4c13107aaeb1fbda5d5b05d7165f5f903eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb6d0e4b617ae6f61295c1d48ed7e4c13107aaeb1fbda5d5b05d7165f5f903eb", kill_on_drop: false }` [INFO] [stdout] cb6d0e4b617ae6f61295c1d48ed7e4c13107aaeb1fbda5d5b05d7165f5f903eb [INFO] checking superstruct-0.7.0 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate superstruct 0.7.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate superstruct 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 superstruct 0.7.0 [INFO] finished tweaking crates.io crate superstruct 0.7.0 [INFO] tweaked toml for crates.io crate superstruct 0.7.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate superstruct 0.7.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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 99d1694c9fcd6977f3e3fcbcc11e998b7818b33b8385e4c857376ee985b9d90b [INFO] running `Command { std: "docker" "start" "-a" "99d1694c9fcd6977f3e3fcbcc11e998b7818b33b8385e4c857376ee985b9d90b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99d1694c9fcd6977f3e3fcbcc11e998b7818b33b8385e4c857376ee985b9d90b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99d1694c9fcd6977f3e3fcbcc11e998b7818b33b8385e4c857376ee985b9d90b", kill_on_drop: false }` [INFO] [stdout] 99d1694c9fcd6977f3e3fcbcc11e998b7818b33b8385e4c857376ee985b9d90b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 48cc3af127eeceb2ceb4cf6ccb1cf479bfaac00c1d4f0c25e406ee41ce214d15 [INFO] running `Command { std: "docker" "start" "-a" "48cc3af127eeceb2ceb4cf6ccb1cf479bfaac00c1d4f0c25e406ee41ce214d15", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Checking unicode-xid v0.2.2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking quote v1.0.10 [INFO] [stderr] Checking darling_core v0.13.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Checking darling v0.13.0 [INFO] [stderr] Checking superstruct v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/ref_mut.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[superstruct(variants(A, B))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `partial_getter` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/ref.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[superstruct(variants(A, B))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `getter_and_partial_getter_lifetimes` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `superstruct` (test "ref_mut") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `superstruct` (test "ref") due to 2 previous errors [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/map_macro.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[superstruct(variants(Base, Ext), variant_attributes(derive(Debug, PartialEq)))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `map_macro_basic` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/map_macro.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | #[superstruct(variants(Base, Ext), variant_attributes(derive(Debug, PartialEq)))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `map_macro_generic` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/map_macro.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / #[superstruct( [INFO] [stdout] 83 | | variants(A, B), [INFO] [stdout] 84 | | variant_attributes(derive(Debug, PartialEq, Clone)), [INFO] [stdout] 85 | | map_into(Thing2), [INFO] [stdout] 86 | | map_ref_into(Thing2Ref), [INFO] [stdout] 87 | | map_ref_mut_into(Thing2RefMut) [INFO] [stdout] 88 | | )] [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `map_into` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/map_macro.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | #[superstruct(variants(A, B), variant_attributes(derive(Debug, PartialEq, Clone)))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `map_into` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `superstruct` (test "map_macro") due to 5 previous errors [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/basic.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | / #[superstruct( [INFO] [stdout] 7 | | variants(Base, Ext), [INFO] [stdout] 8 | | variant_attributes(derive(Debug, PartialEq, Clone)), [INFO] [stdout] 9 | | cast_error(ty = "BlockError", expr = "BlockError::WrongVariant"), [INFO] [stdout] 10 | | partial_getter_error(ty = "BlockError", expr = "BlockError::WrongVariant") [INFO] [stdout] 11 | | )] [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `basic` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/basic.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | / #[superstruct( [INFO] [stdout] 73 | | variants(B, A), [INFO] [stdout] 74 | | variant_attributes(derive(Debug, Deserialize, PartialEq)) [INFO] [stdout] 75 | | )] [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `serde_deserialise_order` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [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 `superstruct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `superstruct` (test "basic") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "48cc3af127eeceb2ceb4cf6ccb1cf479bfaac00c1d4f0c25e406ee41ce214d15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48cc3af127eeceb2ceb4cf6ccb1cf479bfaac00c1d4f0c25e406ee41ce214d15", kill_on_drop: false }` [INFO] [stdout] 48cc3af127eeceb2ceb4cf6ccb1cf479bfaac00c1d4f0c25e406ee41ce214d15