[INFO] cloning repository https://github.com/Jswizzy/sort_animals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jswizzy/sort_animals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJswizzy%2Fsort_animals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJswizzy%2Fsort_animals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dbdf65b9c05f610a752f51bffdc976a32dc787e0 [INFO] checking Jswizzy/sort_animals against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJswizzy%2Fsort_animals" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jswizzy/sort_animals 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 git repo https://github.com/Jswizzy/sort_animals [INFO] finished tweaking git repo https://github.com/Jswizzy/sort_animals [INFO] tweaked toml for git repo https://github.com/Jswizzy/sort_animals written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Jswizzy/sort_animals 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 unicode-xid v0.2.1 [INFO] [stderr] Downloaded itoa v0.4.6 [INFO] [stderr] Downloaded ghost v0.1.2 [INFO] [stderr] Downloaded ctor v0.1.15 [INFO] [stderr] Downloaded typetag-impl v0.1.5 [INFO] [stderr] Downloaded serde_derive v1.0.116 [INFO] [stderr] Downloaded inventory-impl v0.1.9 [INFO] [stderr] Downloaded structopt-derive v0.4.10 [INFO] [stderr] Downloaded unicode-width v0.1.8 [INFO] [stderr] Downloaded typetag v0.1.5 [INFO] [stderr] Downloaded erased-serde v0.3.12 [INFO] [stderr] Downloaded hermit-abi v0.1.15 [INFO] [stderr] Downloaded structopt v0.3.17 [INFO] [stderr] Downloaded clap v2.33.3 [INFO] [stderr] Downloaded libc v0.2.77 [INFO] [stderr] Downloaded serde v1.0.116 [INFO] [stderr] Downloaded proc-macro2 v1.0.21 [INFO] [stderr] Downloaded serde_json v1.0.57 [INFO] [stderr] Downloaded syn v1.0.41 [INFO] [stderr] Downloaded inventory v0.1.9 [INFO] [stderr] Downloaded version_check v0.9.2 [INFO] [stderr] Downloaded quote v1.0.7 [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] 75e921162b2c17844657a599b08c0f2d2fdabfa839e8bff884cca4f31beb3f1c [INFO] running `Command { std: "docker" "start" "-a" "75e921162b2c17844657a599b08c0f2d2fdabfa839e8bff884cca4f31beb3f1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75e921162b2c17844657a599b08c0f2d2fdabfa839e8bff884cca4f31beb3f1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75e921162b2c17844657a599b08c0f2d2fdabfa839e8bff884cca4f31beb3f1c", kill_on_drop: false }` [INFO] [stdout] 75e921162b2c17844657a599b08c0f2d2fdabfa839e8bff884cca4f31beb3f1c [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] 6104932f7cd2f0abf75612b42021967880fcb1a304e7d58ed13a00ef7313d643 [INFO] running `Command { std: "docker" "start" "-a" "6104932f7cd2f0abf75612b42021967880fcb1a304e7d58ed13a00ef7313d643", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling inventory v0.1.9 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling ctor v0.1.15 [INFO] [stderr] Compiling inventory-impl v0.1.9 [INFO] [stderr] Compiling ghost v0.1.2 [INFO] [stderr] Compiling typetag-impl v0.1.5 [INFO] [stderr] Compiling animal_derive v0.1.0 (/opt/rustwide/workdir/animal_derive) [INFO] [stderr] Compiling structopt-derive v0.4.10 [INFO] [stderr] Checking structopt v0.3.17 [INFO] [stderr] Checking erased-serde v0.3.12 [INFO] [stderr] Checking typetag v0.1.5 [INFO] [stderr] Checking animal v0.1.0 (/opt/rustwide/workdir/animal) [INFO] [stderr] Checking sort_animals v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.88s [INFO] running `Command { std: "docker" "inspect" "6104932f7cd2f0abf75612b42021967880fcb1a304e7d58ed13a00ef7313d643", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6104932f7cd2f0abf75612b42021967880fcb1a304e7d58ed13a00ef7313d643", kill_on_drop: false }` [INFO] [stdout] 6104932f7cd2f0abf75612b42021967880fcb1a304e7d58ed13a00ef7313d643 [INFO] checking Jswizzy/sort_animals against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJswizzy%2Fsort_animals" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jswizzy/sort_animals 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 git repo https://github.com/Jswizzy/sort_animals [INFO] finished tweaking git repo https://github.com/Jswizzy/sort_animals [INFO] tweaked toml for git repo https://github.com/Jswizzy/sort_animals written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Jswizzy/sort_animals 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-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] e6613c51953165113952326782ae10522b1b5d2162356a67396e42fbebaff9fc [INFO] running `Command { std: "docker" "start" "-a" "e6613c51953165113952326782ae10522b1b5d2162356a67396e42fbebaff9fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6613c51953165113952326782ae10522b1b5d2162356a67396e42fbebaff9fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6613c51953165113952326782ae10522b1b5d2162356a67396e42fbebaff9fc", kill_on_drop: false }` [INFO] [stdout] e6613c51953165113952326782ae10522b1b5d2162356a67396e42fbebaff9fc [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] ffb08715bba34dee3f083cf5b0e6c99faa9930217a7b8de0ffe30c5ce0b4e644 [INFO] running `Command { std: "docker" "start" "-a" "ffb08715bba34dee3f083cf5b0e6c99faa9930217a7b8de0ffe30c5ce0b4e644", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling inventory v0.1.9 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling ctor v0.1.15 [INFO] [stderr] Compiling ghost v0.1.2 [INFO] [stderr] Compiling inventory-impl v0.1.9 [INFO] [stderr] Compiling typetag-impl v0.1.5 [INFO] [stderr] Compiling animal_derive v0.1.0 (/opt/rustwide/workdir/animal_derive) [INFO] [stderr] Compiling structopt-derive v0.4.10 [INFO] [stderr] Checking structopt v0.3.17 [INFO] [stderr] Checking erased-serde v0.3.12 [INFO] [stderr] Checking typetag v0.1.5 [INFO] [stderr] Checking animal v0.1.0 (/opt/rustwide/workdir/animal) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> animal/src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | #[typetag::serde] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_Animal_registry` [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 `typetag::serde` (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] [stderr] error: could not compile `animal` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "ffb08715bba34dee3f083cf5b0e6c99faa9930217a7b8de0ffe30c5ce0b4e644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffb08715bba34dee3f083cf5b0e6c99faa9930217a7b8de0ffe30c5ce0b4e644", kill_on_drop: false }` [INFO] [stdout] ffb08715bba34dee3f083cf5b0e6c99faa9930217a7b8de0ffe30c5ce0b4e644