[INFO] cloning repository https://github.com/FanJiang2024/learn-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FanJiang2024/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFanJiang2024%2Flearn-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFanJiang2024%2Flearn-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9b98a2da69599e680931024ed5b06b576cec88a1
[INFO] checking FanJiang2024/learn-rust against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFanJiang2024%2Flearn-rust" "/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/FanJiang2024/learn-rust
[INFO] finished tweaking git repo https://github.com/FanJiang2024/learn-rust
[INFO] tweaked toml for git repo https://github.com/FanJiang2024/learn-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FanJiang2024/learn-rust on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FanJiang2024/learn-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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 74bfed3ee1a50ebe7faddf35db6f00443fa23ad88334d2d9317f86a604966bd7
[INFO] running `Command { std: "docker" "start" "-a" "74bfed3ee1a50ebe7faddf35db6f00443fa23ad88334d2d9317f86a604966bd7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "74bfed3ee1a50ebe7faddf35db6f00443fa23ad88334d2d9317f86a604966bd7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "74bfed3ee1a50ebe7faddf35db6f00443fa23ad88334d2d9317f86a604966bd7", kill_on_drop: false }`
[INFO] [stdout] 74bfed3ee1a50ebe7faddf35db6f00443fa23ad88334d2d9317f86a604966bd7
[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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 493654241dbf493b411b363ea1afd9467addb52b91a63a10c8e30e98c4c23168
[INFO] running `Command { std: "docker" "start" "-a" "493654241dbf493b411b363ea1afd9467addb52b91a63a10c8e30e98c4c23168", kill_on_drop: false }`
[INFO] [stderr]     Checking const_static v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/basic_type/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `addr_of_mut` and `addr_of`
[INFO] [stdout]  --> src/tuple_array/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::ptr::{addr_of, addr_of_mut};
[INFO] [stdout]   |                ^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `MY_STATIC` is never used
[INFO] [stdout]  --> src/const_static/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | static  MY_STATIC: i32 = 32;
[INFO] [stdout]   |         ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `MY_MUT_STATIC` is never used
[INFO] [stdout]  --> src/const_static/mod.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | static mut MY_MUT_STATIC: i32 = 64;
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/basic_type/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/main.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut tup2 = tup1;
[INFO] [stdout]   |         ----^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tup2`
[INFO] [stdout]  --> src/main.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut tup2 = tup1;
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tup2`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/main.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut tup2 = tup1;
[INFO] [stdout]   |         ----^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tup2`
[INFO] [stdout]  --> src/main.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut tup2 = tup1;
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tup2`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `n` is assigned to, but never used
[INFO] [stdout]  --> src/function/mod.rs:8:26
[INFO] [stdout]   |
[INFO] [stdout] 8 |     fn try_to_change_num(mut n: i32) {
[INFO] [stdout]   |                          ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider using `_n` instead
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `n` is never read
[INFO] [stdout]  --> src/function/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |         n += 10; // failed!!!
[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 `size` is never read
[INFO] [stdout]   --> src/function/mod.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     struct Person {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 24 |         size: u8,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has derived impls for the traits `Clone` and `Debug`, but these are 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: variants `Spicy` and `Fruity` are never constructed
[INFO] [stdout]  --> src/struct_module/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     enum Flavor {
[INFO] [stdout]   |          ------ variants in this enum
[INFO] [stdout] 5 |         Spicy,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 6 |         Fruity,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_length` is never used
[INFO] [stdout]   --> src/lifetimes/mod.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 43 |     trait MyStringTrait<'a> {
[INFO] [stdout]    |           ------------- method in this trait
[INFO] [stdout] 44 |         fn get_length(&self) -> usize;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Lang` is never used
[INFO] [stdout]   --> src/trait_generic_learn/mod.rs:78:10
[INFO] [stdout]    |
[INFO] [stdout] 78 |     enum Lang {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Language` is never used
[INFO] [stdout]   --> src/trait_generic_learn/mod.rs:85:11
[INFO] [stdout]    |
[INFO] [stdout] 85 |     trait Language {
[INFO] [stdout]    |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Material` is never constructed
[INFO] [stdout]   --> src/trait_generic_learn/mod.rs:91:12
[INFO] [stdout]    |
[INFO] [stdout] 91 |     struct Material<T: Language> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_content` is never used
[INFO] [stdout]   --> src/trait_generic_learn/mod.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 97 |     impl<T: Language> Material<T> {
[INFO] [stdout]    |     ----------------------------- method in this implementation
[INFO] [stdout] 98 |         fn get_content(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Yellow` and `Blue` are never constructed
[INFO] [stdout]  --> src/common_trait/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     enum Color {
[INFO] [stdout]   |          ----- variants in this enum
[INFO] [stdout] 6 |         Yellow,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout] 7 |         Black,
[INFO] [stdout] 8 |         Blue
[INFO] [stdout]   |         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Color` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/const_static/mod.rs:18:35
[INFO] [stdout]    |
[INFO] [stdout] 18 |         println!("MY MUT STATIC: {MY_MUT_STATIC}");
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Tom` should have a snake case name
[INFO] [stdout]   --> src/function/mod.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let Tom = Person {
[INFO] [stdout]    |         ^^^ help: convert the identifier to snake case: `tom`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
[INFO] running `Command { std: "docker" "inspect" "493654241dbf493b411b363ea1afd9467addb52b91a63a10c8e30e98c4c23168", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "493654241dbf493b411b363ea1afd9467addb52b91a63a10c8e30e98c4c23168", kill_on_drop: false }`
[INFO] [stdout] 493654241dbf493b411b363ea1afd9467addb52b91a63a10c8e30e98c4c23168
