[INFO] cloning repository https://github.com/Cheng-DX/rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Cheng-DX/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheng-DX%2Frust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheng-DX%2Frust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0eb05762368d7e534b9bbcbccc3ed806cd3ac438
[INFO] checking Cheng-DX/rust against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheng-DX%2Frust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Cheng-DX/rust
[INFO] finished tweaking git repo https://github.com/Cheng-DX/rust
[INFO] tweaked toml for git repo https://github.com/Cheng-DX/rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Cheng-DX/rust on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Cheng-DX/rust 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ouroboros v0.15.5
[INFO] [stderr]   Downloaded ouroboros_macro v0.15.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4b441d8e200e6ebe18cc1c698b8048440b3435635135044622704fffcfd610aa
[INFO] running `Command { std: "docker" "start" "-a" "4b441d8e200e6ebe18cc1c698b8048440b3435635135044622704fffcfd610aa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4b441d8e200e6ebe18cc1c698b8048440b3435635135044622704fffcfd610aa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4b441d8e200e6ebe18cc1c698b8048440b3435635135044622704fffcfd610aa", kill_on_drop: false }`
[INFO] [stdout] 4b441d8e200e6ebe18cc1c698b8048440b3435635135044622704fffcfd610aa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 21297914dc4efe51b3ed778c6c66f26ecb8a152391ba6bc347b770ef051bae13
[INFO] running `Command { std: "docker" "start" "-a" "21297914dc4efe51b3ed778c6c66f26ecb8a152391ba6bc347b770ef051bae13", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.47
[INFO] [stderr]    Compiling quote v1.0.21
[INFO] [stderr]    Compiling syn v1.0.103
[INFO] [stderr]    Compiling Inflector v0.11.4
[INFO] [stderr]     Checking aliasable v0.1.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling ouroboros_macro v0.15.5
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]     Checking ouroboros v0.15.5
[INFO] [stderr]     Checking rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `cell::Ref`
[INFO] [stdout]  --> src/thread.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |         cell::Ref,
[INFO] [stdout]   |         ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]   --> src/smart_pointer.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |         enum List {
[INFO] [stdout]    |              ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `one` and `two` are never read
[INFO] [stdout]    --> src/smart_pointer.rs:104:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         struct HasTwoDrops {
[INFO] [stdout]     |                ----------- fields in this struct
[INFO] [stdout] 104 |             one: HasDrop1,
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 105 |             two: HasDrop2,
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
[INFO] [stdout]   --> src/lifecycle.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |         std::mem::drop(name);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^----^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        argument has type `&str`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dropping_references)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the expression or result
[INFO] [stdout]    |
[INFO] [stdout] 40 -         std::mem::drop(name);
[INFO] [stdout] 40 +         let _ = name;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/types.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 |     #[derive(FromPrimitive)]
[INFO] [stdout]    |              ^------------
[INFO] [stdout]    |              |
[INFO] [stdout]    |              `FromPrimitive` is not local
[INFO] [stdout]    |              move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Color`
[INFO] [stdout] 83 |     #[repr(i32)]
[INFO] [stdout] 84 |     enum Color {
[INFO] [stdout]    |          ----- `Color` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/types.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     fn try_from() {
[INFO] [stdout]     |     ------------- move the `impl` block outside of this function `try_from`
[INFO] [stdout] 101 |         impl TryFrom<i32> for Color {
[INFO] [stdout]     |         ^^^^^-------^^^^^^^^^^-----
[INFO] [stdout]     |              |                |
[INFO] [stdout]     |              |                `Color` is not local
[INFO] [stdout]     |              `TryFrom` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `cell::Ref`
[INFO] [stdout]  --> src/thread.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |         cell::Ref,
[INFO] [stdout]   |         ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]   --> src/smart_pointer.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |         enum List {
[INFO] [stdout]    |              ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `one` and `two` are never read
[INFO] [stdout]    --> src/smart_pointer.rs:104:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         struct HasTwoDrops {
[INFO] [stdout]     |                ----------- fields in this struct
[INFO] [stdout] 104 |             one: HasDrop1,
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 105 |             two: HasDrop2,
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
[INFO] [stdout]   --> src/lifecycle.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |         std::mem::drop(name);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^----^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        argument has type `&str`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dropping_references)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the expression or result
[INFO] [stdout]    |
[INFO] [stdout] 40 -         std::mem::drop(name);
[INFO] [stdout] 40 +         let _ = name;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/types.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 |     #[derive(FromPrimitive)]
[INFO] [stdout]    |              ^------------
[INFO] [stdout]    |              |
[INFO] [stdout]    |              `FromPrimitive` is not local
[INFO] [stdout]    |              move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Color`
[INFO] [stdout] 83 |     #[repr(i32)]
[INFO] [stdout] 84 |     enum Color {
[INFO] [stdout]    |          ----- `Color` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/types.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     fn try_from() {
[INFO] [stdout]     |     ------------- move the `impl` block outside of this function `try_from`
[INFO] [stdout] 101 |         impl TryFrom<i32> for Color {
[INFO] [stdout]     |         ^^^^^-------^^^^^^^^^^-----
[INFO] [stdout]     |              |                |
[INFO] [stdout]     |              |                `Color` is not local
[INFO] [stdout]     |              `TryFrom` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.74s
[INFO] running `Command { std: "docker" "inspect" "21297914dc4efe51b3ed778c6c66f26ecb8a152391ba6bc347b770ef051bae13", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "21297914dc4efe51b3ed778c6c66f26ecb8a152391ba6bc347b770ef051bae13", kill_on_drop: false }`
[INFO] [stdout] 21297914dc4efe51b3ed778c6c66f26ecb8a152391ba6bc347b770ef051bae13
