[INFO] cloning repository https://github.com/yabuking84/mastering-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yabuking84/mastering-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyabuking84%2Fmastering-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyabuking84%2Fmastering-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 93bbcd0a32122e56e10cdb60186dd6ec80eacb43
[INFO] checking yabuking84/mastering-rust against master#4008bbdf34b583ce44a467043aae3703afc0a76f for pr-129249-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyabuking84%2Fmastering-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/yabuking84/mastering-rust
[INFO] finished tweaking git repo https://github.com/yabuking84/mastering-rust
[INFO] tweaked toml for git repo https://github.com/yabuking84/mastering-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/yabuking84/mastering-rust on toolchain 4008bbdf34b583ce44a467043aae3703afc0a76f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/yabuking84/mastering-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" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded num-complex v0.4.5
[INFO] [stderr]   Downloaded num-bigint v0.4.4
[INFO] [stderr]   Downloaded num-iter v0.1.43
[INFO] [stderr]   Downloaded num v0.4.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4
[INFO] running `Command { std: "docker" "start" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4" "/opt/rustwide/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4" "/opt/rustwide/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling autocfg v0.1.8
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling num-bigint v0.4.4
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling num-rational v0.4.1
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]     Checking rand_os v0.1.3
[INFO] [stderr]     Checking num-complex v0.4.5
[INFO] [stderr]     Checking num v0.4.1
[INFO] [stderr]     Checking hello v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `num::integer::sqrt`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use num::integer::sqrt;
[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 import: `hello::greet`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use hello::greet;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prime`
[INFO] [stdout]    --> src/main.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 124 |     let prime = get_prime(numbers);
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `is_prime` is never read
[INFO] [stdout]    --> src/main.rs:132:24
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut is_prime = false;
[INFO] [stdout]     |                        ^^^^^ this value is reassigned later and never used
[INFO] [stdout] 133 |     'outer: loop {
[INFO] [stdout] 134 |         is_prime = false;
[INFO] [stdout]     |         ---------------- `is_prime` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `LANGUAGE2` is never used
[INFO] [stdout]  --> src/main.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const LANGUAGE2: u8 = 1;
[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 `LANGUAGE` is never used
[INFO] [stdout]  --> src/main.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | static LANGUAGE: &str = "Rust";
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_to_string_own` is never used
[INFO] [stdout]   --> examples/borrowing.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn add_to_string_own(mut p1: String) -> 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: function `add_to_string` is never used
[INFO] [stdout]   --> examples/borrowing.rs:53:4
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn add_to_string(p1: &mut String)  {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_something` is never used
[INFO] [stdout]   --> examples/borrowing.rs:58:4
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn print_something(i: &String){
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::integer::sqrt`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use num::integer::sqrt;
[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 import: `hello::greet`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use hello::greet;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prime`
[INFO] [stdout]    --> src/main.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 124 |     let prime = get_prime(numbers);
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `is_prime` is never read
[INFO] [stdout]    --> src/main.rs:132:24
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut is_prime = false;
[INFO] [stdout]     |                        ^^^^^ this value is reassigned later and never used
[INFO] [stdout] 133 |     'outer: loop {
[INFO] [stdout] 134 |         is_prime = false;
[INFO] [stdout]     |         ---------------- `is_prime` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `LANGUAGE2` is never used
[INFO] [stdout]  --> src/main.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const LANGUAGE2: u8 = 1;
[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 `LANGUAGE` is never used
[INFO] [stdout]  --> src/main.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | static LANGUAGE: &str = "Rust";
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `in_stock` is never read
[INFO] [stdout]  --> examples/impl.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Product {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 4 |     in_stock: bool,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> examples/enum-match.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut retVal: String;
[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: `product`
[INFO] [stdout]   --> examples/enum-match.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let product = Product {
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `category`, `price`, and `in_stock` are never read
[INFO] [stdout]  --> examples/enum-match.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Product {
[INFO] [stdout]   |        ------- fields in this struct
[INFO] [stdout] 2 |     name: String,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 3 |     category: ProductCategory,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 4 |     price: f32,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 5 |     in_stock: bool,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Books` and `Clothing` are never constructed
[INFO] [stdout]   --> examples/enum-match.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | enum ProductCategory {
[INFO] [stdout]    |      --------------- variants in this enum
[INFO] [stdout]  9 |     Books,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     Clothing,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Redo` is never constructed
[INFO] [stdout]   --> examples/enum-match.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum Command {
[INFO] [stdout]    |      ------- variant in this enum
[INFO] [stdout] 16 |     Undo,
[INFO] [stdout] 17 |     Redo,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `retVal` should have a snake case name
[INFO] [stdout]   --> examples/enum-match.rs:25:17
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut retVal: String;
[INFO] [stdout]    |                 ^^^^^^ help: convert the identifier to snake case: `ret_val`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: path statement with no effect
[INFO] [stdout]   --> examples/enum-match.rs:80:5
[INFO] [stdout]    |
[INFO] [stdout] 80 |     age;
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> examples/strings.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let mut d1: &String = &a;
[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: `d1`
[INFO] [stdout]  --> examples/strings.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let mut d1: &String = &a;
[INFO] [stdout]   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_d1`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d2`
[INFO] [stdout]  --> examples/strings.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let d2: &mut String = &mut a;
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_d2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s1`
[INFO] [stdout]  --> examples/strings.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let s1 = "😂 옻옺웃ӱ";
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_s1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `world`
[INFO] [stdout]   --> examples/strings.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let world = &ssss[6..11];
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_world`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]  --> examples/vectors.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let v2 = vec![1, 2, 3];
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]  --> examples/vectors.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let s = &v[0]; // can panic
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.31s
[INFO] running `Command { std: "docker" "inspect" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4", kill_on_drop: false }`
[INFO] [stdout] bd17a65edc5d57f6138bcc7be46a1edad54e686719f6ef6f8fc200503bd272b4
