[INFO] cloning repository https://github.com/heheshang/rust-demo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/heheshang/rust-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheheshang%2Frust-demo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheheshang%2Frust-demo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 76f4c998293f4b4168d66bec3d001a78e0f9f312
[INFO] checking heheshang/rust-demo against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheheshang%2Frust-demo" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/heheshang/rust-demo
[INFO] finished tweaking git repo https://github.com/heheshang/rust-demo
[INFO] tweaked toml for git repo https://github.com/heheshang/rust-demo written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/heheshang/rust-demo 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/heheshang/rust-demo 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 ahash v0.8.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 41fbcd3740517ef97031fef6cbd91d531d5075e0b2382191f5310b566647de78
[INFO] running `Command { std: "docker" "start" "-a" "41fbcd3740517ef97031fef6cbd91d531d5075e0b2382191f5310b566647de78", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "41fbcd3740517ef97031fef6cbd91d531d5075e0b2382191f5310b566647de78", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "41fbcd3740517ef97031fef6cbd91d531d5075e0b2382191f5310b566647de78", kill_on_drop: false }`
[INFO] [stdout] 41fbcd3740517ef97031fef6cbd91d531d5075e0b2382191f5310b566647de78
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 30d752f0ec9ee3470357a79ac094fc8b00433dd9e08d460e5be27ff17db4c44e
[INFO] running `Command { std: "docker" "start" "-a" "30d752f0ec9ee3470357a79ac094fc8b00433dd9e08d460e5be27ff17db4c44e", kill_on_drop: false }`
[INFO] [stderr]     Checking once_cell v1.17.0
[INFO] [stderr]    Compiling ahash v0.8.2
[INFO] [stderr]     Checking twox-hash v1.6.3
[INFO] [stderr]     Checking rust-demo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:24:56
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn some_function<T: Display + Clone, U: Clone + Debug>(t: T, u: U) -> i32 {
[INFO] [stdout]    |                                                        ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:24:62
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn some_function<T: Display + Clone, U: Clone + Debug>(t: T, u: U) -> i32 {
[INFO] [stdout]    |                                                              ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:29:25
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn some_function1<T, U>(t: T, u: U) -> i32
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:29:31
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn some_function1<T, U>(t: T, u: U) -> i32
[INFO] [stdout]    |                               ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `some_function` is never used
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:24:4
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn some_function<T: Display + Clone, U: Clone + Debug>(t: T, u: U) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `some_function1` is never used
[INFO] [stdout]   --> examples/2_8_2_trait_4.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn some_function1<T, U>(t: T, u: U) -> i32
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `age`
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:24:35
[INFO] [stdout]    |
[INFO] [stdout] 24 |     fn display(self: &mut Person, age: u8) {
[INFO] [stdout]    |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_age`
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 |     #[warn(unused_variables)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:25:22
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let Person { name, age } = &self;
[INFO] [stdout]    |                      ^^^^ help: try ignoring the field: `name: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `age`
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:25:28
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let Person { name, age } = &self;
[INFO] [stdout]    |                            ^^^ help: try ignoring the field: `age: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Person` is never constructed
[INFO] [stdout]  --> examples/3_4_2_deref_0.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct Person {
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]  --> examples/3_4_2_deref_0.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | #[warn(dead_code)]
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `display` are never used
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Person {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 16 |     #[warn(unused_variables)]
[INFO] [stdout] 17 |     fn new(name: &str, age: u8) -> Person {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     fn display(self: &mut Person, age: u8) {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/3_4_2_deref_0.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | #[warn(dead_code)]
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> examples/2_7_0_method_2.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 |     Write(String),
[INFO] [stdout]   |     ----- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]   |
[INFO] [stdout] 5 -     Write(String),
[INFO] [stdout] 5 +     Write(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed
[INFO] [stdout]  --> examples/2_7_0_method_2.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum Message {
[INFO] [stdout]   |      ------- variants in this enum
[INFO] [stdout] 3 |     Quit,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 4 |     Move { x: i32, y: i32 },
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 5 |     Write(String),
[INFO] [stdout] 6 |     ChangeColor(i32, i32, i32),
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> examples/2_9_1_vec_2.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 |     V4(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 12 -     V4(String),
[INFO] [stdout] 12 +     V4(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> examples/2_9_1_vec_2.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 |     V6(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 13 -     V6(String),
[INFO] [stdout] 13 +     V6(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width` and `options` are never read
[INFO] [stdout]   --> examples/2_8_3_trait_object_2.rs:56:5
[INFO] [stdout]    |
[INFO] [stdout] 55 | struct SelectBox {
[INFO] [stdout]    |        --------- fields in this struct
[INFO] [stdout] 56 |     width: u32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 57 |     height: u32,
[INFO] [stdout] 58 |     options: Vec<String>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Option` is never used
[INFO] [stdout]   --> examples/2_8_1_generics_2.rs:21:6
[INFO] [stdout]    |
[INFO] [stdout] 21 | enum Option<T> {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/2_8_1_generics_2.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[warn(dead_code)]
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Result` is never used
[INFO] [stdout]   --> examples/2_8_1_generics_2.rs:26:6
[INFO] [stdout]    |
[INFO] [stdout] 26 | enum Result<T, E> {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/2_8_1_generics_2.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | #[warn(dead_code)]
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `i` is assigned to, but never used
[INFO] [stdout]  --> examples/3_1_1_lifetime_4.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let i;
[INFO] [stdout]   |         ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider using `_i` instead
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `i` is never read
[INFO] [stdout]  --> examples/3_1_1_lifetime_4.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | /         i = ImportantExcerpt {
[INFO] [stdout] 8 | |             part: first_sentence,
[INFO] [stdout] 9 | |         };
[INFO] [stdout]   | |_________^
[INFO] [stdout]   |
[INFO] [stdout]   = help: maybe it is overwritten before being read?
[INFO] [stdout]   = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `part` is never read
[INFO] [stdout]   --> examples/3_1_1_lifetime_4.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct ImportantExcerpt<'a> {
[INFO] [stdout]    |        ---------------- field in this struct
[INFO] [stdout] 22 |     part: &'a str,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `first`
[INFO] [stdout]   --> examples/2_9_1_vec_0.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let first = &v[0];
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_first`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Circle` is never constructed
[INFO] [stdout]  --> examples/2_7_0_method_0.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct Circle {
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `area` and `new` are never used
[INFO] [stdout]   --> examples/2_7_0_method_0.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Circle {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 10 |     fn area(&self) -> f64 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 13 |     fn new(x: f64, y: f64, radius: f64) -> Circle {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> examples/3_1_1_lifetime_2.rs:37:28
[INFO] [stdout]    |
[INFO] [stdout] 37 | fn largest<'a>(x: &'a str, y: &str) -> &'a str {
[INFO] [stdout]    |                            ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/3_1_1_lifetime_2.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | #[warn(unused_variables)]
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]   --> examples/3_4_1_box_1.rs:27:6
[INFO] [stdout]    |
[INFO] [stdout] 27 | enum List {
[INFO] [stdout]    |      ^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> examples/3_4_1_box_1.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 26 | #[warn(dead_code)]
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> examples/2_8_4_trait_object_more_0.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> examples/2_8_4_trait_object_more_0.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct Conuter {
[INFO] [stdout]    |        ------- field in this struct
[INFO] [stdout] 11 |     id: u32,
[INFO] [stdout]    |     ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn foo<X: Trait>(t: X) {}
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Foo` is never constructed
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | struct Foo {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Bar` is never constructed
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | struct Bar {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reinterpret` is never used
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn reinterpret(foo: Foo) -> Bar {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Trait` is never used
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:55:7
[INFO] [stdout]    |
[INFO] [stdout] 55 | trait Trait {}
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `foo` is never used
[INFO] [stdout]   --> examples/2_10_0_into_1.rs:56:4
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn foo<X: Trait>(t: X) {}
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cloned`
[INFO] [stdout]  --> examples/2_10_0_into_3.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let cloned = value.clone();
[INFO] [stdout]   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `do_stuff` is never used
[INFO] [stdout]  --> examples/2_10_0_into_3.rs:5:4
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn do_stuff<T: Clone>(value: &T) {
[INFO] [stdout]   |    ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `width` and `new` are never used
[INFO] [stdout]   --> examples/2_7_0_method_1.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Rectangle {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 10 |     fn width(&self) -> bool {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 13 |     fn new(width: u32, height: u32) -> Rectangle {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Millimeters` is never constructed
[INFO] [stdout]   --> examples/2_8_4_trait_object_more_1.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct Millimeters(u32);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Meters` is never constructed
[INFO] [stdout]   --> examples/2_8_4_trait_object_more_1.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct Meters(u32);
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `suit` and `value` are never read
[INFO] [stdout]   --> examples/2_4_4_enum_0.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 32 | struct PokerCard {
[INFO] [stdout]    |        --------- fields in this struct
[INFO] [stdout] 33 |     suit: PokerSuit,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 34 |     value: u8,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PokerCard` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `R` is never constructed
[INFO] [stdout]  --> examples/2_10_0_into_6.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 |     struct R<'a>(&'a i32);
[INFO] [stdout]   |            ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extend_lifetime` is never used
[INFO] [stdout]  --> examples/2_10_0_into_6.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 |     unsafe fn extend_lifetime<'b>(r: R<'b>) -> R<'static> {
[INFO] [stdout]   |               ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shorten_invariant_lifetime` is never used
[INFO] [stdout]   --> examples/2_10_0_into_6.rs:10:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     unsafe fn shorten_invariant_lifetime<'b, 'c>(r: &'b mut R<'static>) -> &'b mut R<'c> {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s1`
[INFO] [stdout]  --> examples/2_3_1_owenship_3.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let s1 = gives_ownership(); // gives_ownership 将返回值
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_s1`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s3`
[INFO] [stdout]  --> examples/2_3_1_owenship_3.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let s3 = takes_and_gives_back(s2); // s2 被移动到
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_s3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s2`
[INFO] [stdout]   --> examples/2_3_1_owenship_0.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let s2 = s1;
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_s2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Container` is never constructed
[INFO] [stdout]   --> examples/2_10_0_into_4.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct Container<T>(Arc<T>);
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clone_container` is never used
[INFO] [stdout]   --> examples/2_10_0_into_4.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn clone_container<T: Clone>(foo: &Container<i32>, bar: &Container<T>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `OutlinePrint` is never used
[INFO] [stdout]  --> examples/2_8_4_trait_object_more_4.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | trait OutlinePrint: fmt::Display {
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Point` is never constructed
[INFO] [stdout]   --> examples/2_8_4_trait_object_more_4.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | struct Point {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.43s
[INFO] running `Command { std: "docker" "inspect" "30d752f0ec9ee3470357a79ac094fc8b00433dd9e08d460e5be27ff17db4c44e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "30d752f0ec9ee3470357a79ac094fc8b00433dd9e08d460e5be27ff17db4c44e", kill_on_drop: false }`
[INFO] [stdout] 30d752f0ec9ee3470357a79ac094fc8b00433dd9e08d460e5be27ff17db4c44e
