[INFO] cloning repository https://github.com/fatah4561/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/fatah4561/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatah4561%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatah4561%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cbed87a3fceced1b752c5579da7510ae2721465e [INFO] checking fatah4561/learn-rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatah4561%2Flearn-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fatah4561/learn-rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fatah4561/learn-rust [INFO] finished tweaking git repo https://github.com/fatah4561/learn-rust [INFO] tweaked toml for git repo https://github.com/fatah4561/learn-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fatah4561/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ferris-says v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4efab90ba326a9083df6ba684b23995c08819deb4c4905d5cfe5c2ab57e8300c [INFO] running `Command { std: "docker" "start" "-a" "4efab90ba326a9083df6ba684b23995c08819deb4c4905d5cfe5c2ab57e8300c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4efab90ba326a9083df6ba684b23995c08819deb4c4905d5cfe5c2ab57e8300c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4efab90ba326a9083df6ba684b23995c08819deb4c4905d5cfe5c2ab57e8300c", kill_on_drop: false }` [INFO] [stdout] 4efab90ba326a9083df6ba684b23995c08819deb4c4905d5cfe5c2ab57e8300c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5cb980b5e805c953362f41839efd9c1eddbf200285ddd7ff38702b8fdd36aca [INFO] running `Command { std: "docker" "start" "-a" "b5cb980b5e805c953362f41839efd9c1eddbf200285ddd7ff38702b8fdd36aca", kill_on_drop: false }` [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking smawk v0.3.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Checking ferris-says v0.3.1 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | break 'outer [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 18 | } [INFO] [stdout] 19 | println!("this point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | break 'outer [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 18 | } [INFO] [stdout] 19 | println!("this point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `multi_char` is never read [INFO] [stdout] --> src/modules/b_primitives/ba_literals_and_operators.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | multi_char = "aw"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `multi_char` is never read [INFO] [stdout] --> src/modules/b_primitives/ba_literals_and_operators.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | multi_char = "aw"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_custom_types/cb_enums.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_custom_types/cb_enums.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/modules/f_conversions/fa_from_and_into.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/modules/f_conversions/fa_from_and_into.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let triple = (0, -2, 3); // fist arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let triple = (1, -2, 3); // second arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let triple = (5, -2, 2); // third arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let triple = (3, -2, 4); // fourth arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let player_status = (0, 5, (10, 20)); // 1st [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let triple = (0, -2, 3); // fist arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let player_status = (100, 5, (10, 20)); // 2nd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let triple = (1, -2, 3); // second arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let player_status = (2, 11, (10, 20)); // 3rd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let triple = (5, -2, 2); // third arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let triple = (3, -2, 4); // fourth arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let player_status = (0, 5, (10, 20)); // 1st [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let player_status = (100, 5, (10, 20)); // 2nd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let player_status = (2, 11, (10, 20)); // 3rd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | [first, middle @ .., last] => println!("array[0] is {}, middle is {:?}, and last element is {}", first, middle, last), [INFO] [stdout] | -------------------------- matches all the relevant values [INFO] [stdout] 43 | _ => println!("no match found") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let array = [1, -2, 6]; // 2nd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let array = [0, -2, 6]; // 1st [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let array = [-1, -2, 6]; // 3rd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let array = [3, -2, 6]; // 4th [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | [first, middle @ .., last] => println!("array[0] is {}, middle is {:?}, and last element is {}", first, middle, last), [INFO] [stdout] | -------------------------- matches all the relevant values [INFO] [stdout] 43 | _ => println!("no match found") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let array = [1, -2, 6]; // 2nd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let array = [0, -2, 6]; // 1st [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let array = [-1, -2, 6]; // 3rd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let array = [3, -2, 6]; // 4th [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let color = Color::RGB(122, 17, 40); // rgb [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let color = Color::Red; // red [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let color = Color::Blue; // blue [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let color = Color::Green; // green [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let color = Color::CMY(30, 30, 30); // cmy [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let color = Color::CMYK(30, 30, 30, 30); // cmyk [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let color = Color::RGB(122, 17, 40); // rgb [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let color = Color::Red; // red [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let color = Color::Blue; // blue [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let color = Color::Green; // green [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let color = Color::CMY(30, 30, 30); // cmy [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let color = Color::CMYK(30, 30, 30, 30); // cmyk [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let foo = Foo {x: (1,2), y: 3}; // 1st [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let foo = Foo {x: (2,2), y: 2}; // 2nd [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let foo = Foo {x: (1,2), y: 3}; // 1st [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let foo = Foo {x: (2,2), y: 2}; // 2nd [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temperature` [INFO] [stdout] --> src/modules/h_flow_of_control/heb_guards.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let temperature = Temperature::Celsius(35); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temperature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temperature` [INFO] [stdout] --> src/modules/h_flow_of_control/heb_guards.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let temperature = Temperature::Celsius(35); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temperature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hf_if_let.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | if let Foo2::Bar = a2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hf_if_let.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | if let Foo2::Bar = a2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/modules/h_flow_of_control/hg_let_else.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | let Ok(count) = u64::from_str(count_str) else { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/modules/h_flow_of_control/hg_let_else.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | let Ok(count) = u64::from_str(count_str) else { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bc_arrays_and_slices` is never used [INFO] [stdout] --> src/modules/b_primitives/bc_arrays_and_slices.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn bc_arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/modules/c_custom_types/ca_structures.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bc_arrays_and_slices` is never used [INFO] [stdout] --> src/modules/b_primitives/bc_arrays_and_slices.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn bc_arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/modules/c_custom_types/ca_structures.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "b5cb980b5e805c953362f41839efd9c1eddbf200285ddd7ff38702b8fdd36aca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5cb980b5e805c953362f41839efd9c1eddbf200285ddd7ff38702b8fdd36aca", kill_on_drop: false }` [INFO] [stdout] b5cb980b5e805c953362f41839efd9c1eddbf200285ddd7ff38702b8fdd36aca [INFO] checking fatah4561/learn-rust against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatah4561%2Flearn-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fatah4561/learn-rust on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fatah4561/learn-rust [INFO] finished tweaking git repo https://github.com/fatah4561/learn-rust [INFO] tweaked toml for git repo https://github.com/fatah4561/learn-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fatah4561/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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55efdffe2706b943db26157d876c13bfb29aab2cebad70f2c7675ae8d3b0d7bd [INFO] running `Command { std: "docker" "start" "-a" "55efdffe2706b943db26157d876c13bfb29aab2cebad70f2c7675ae8d3b0d7bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55efdffe2706b943db26157d876c13bfb29aab2cebad70f2c7675ae8d3b0d7bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55efdffe2706b943db26157d876c13bfb29aab2cebad70f2c7675ae8d3b0d7bd", kill_on_drop: false }` [INFO] [stdout] 55efdffe2706b943db26157d876c13bfb29aab2cebad70f2c7675ae8d3b0d7bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0a0514b3ae54a0762f2735fd5727830eca98bb17d20feea918c5e553163888e [INFO] running `Command { std: "docker" "start" "-a" "b0a0514b3ae54a0762f2735fd5727830eca98bb17d20feea918c5e553163888e", kill_on_drop: false }` [INFO] [stderr] Checking smawk v0.3.2 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Checking ferris-says v0.3.1 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | break 'outer [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 18 | } [INFO] [stdout] 19 | println!("this point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/modules/h_flow_of_control/hba_nesting_and_labels.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | break 'outer [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 18 | } [INFO] [stdout] 19 | println!("this point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `multi_char` is never read [INFO] [stdout] --> src/modules/b_primitives/ba_literals_and_operators.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | multi_char = "aw"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_custom_types/cb_enums.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `multi_char` is never read [INFO] [stdout] --> src/modules/b_primitives/ba_literals_and_operators.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | multi_char = "aw"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/modules/f_conversions/fa_from_and_into.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/modules/c_custom_types/cb_enums.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let triple = (0, -2, 3); // fist arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let triple = (1, -2, 3); // second arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let triple = (5, -2, 2); // third arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let triple = (3, -2, 4); // fourth arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let player_status = (0, 5, (10, 20)); // 1st [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let player_status = (100, 5, (10, 20)); // 2nd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let player_status = (2, 11, (10, 20)); // 3rd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | [first, middle @ .., last] => println!("array[0] is {}, middle is {:?}, and last element is {}", first, middle, last), [INFO] [stdout] | -------------------------- matches all the relevant values [INFO] [stdout] 43 | _ => println!("no match found") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let array = [1, -2, 6]; // 2nd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let array = [0, -2, 6]; // 1st [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let array = [-1, -2, 6]; // 3rd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let array = [3, -2, 6]; // 4th [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let color = Color::RGB(122, 17, 40); // rgb [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let color = Color::Red; // red [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let color = Color::Blue; // blue [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let color = Color::Green; // green [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let color = Color::CMY(30, 30, 30); // cmy [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let color = Color::CMYK(30, 30, 30, 30); // cmyk [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let foo = Foo {x: (1,2), y: 3}; // 1st [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let foo = Foo {x: (2,2), y: 2}; // 2nd [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temperature` [INFO] [stdout] --> src/modules/h_flow_of_control/heb_guards.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let temperature = Temperature::Celsius(35); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temperature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/modules/f_conversions/fa_from_and_into.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hf_if_let.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | if let Foo2::Bar = a2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/modules/h_flow_of_control/hg_let_else.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | let Ok(count) = u64::from_str(count_str) else { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bc_arrays_and_slices` is never used [INFO] [stdout] --> src/modules/b_primitives/bc_arrays_and_slices.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn bc_arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/modules/c_custom_types/ca_structures.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/modules/c_custom_types/cbc_testcase_linked_list.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | // cons also has type list [INFO] [stdout] 25 | Cons(elem, Box::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let triple = (0, -2, 3); // fist arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let triple = (1, -2, 3); // second arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let triple = (5, -2, 2); // third arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triple` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let triple = (3, -2, 4); // fourth arm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_triple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let player_status = (0, 5, (10, 20)); // 1st [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let player_status = (100, 5, (10, 20)); // 2nd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_status` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaa_tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let player_status = (2, 11, (10, 20)); // 3rd [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | [first, middle @ .., last] => println!("array[0] is {}, middle is {:?}, and last element is {}", first, middle, last), [INFO] [stdout] | -------------------------- matches all the relevant values [INFO] [stdout] 43 | _ => println!("no match found") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let array = [1, -2, 6]; // 2nd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let array = [0, -2, 6]; // 1st [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let array = [-1, -2, 6]; // 3rd [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heab_arrays_slices.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let array = [3, -2, 6]; // 4th [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let color = Color::RGB(122, 17, 40); // rgb [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let color = Color::Red; // red [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let color = Color::Blue; // blue [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let color = Color::Green; // green [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let color = Color::CMY(30, 30, 30); // cmy [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heac_enums.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let color = Color::CMYK(30, 30, 30, 30); // cmyk [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let foo = Foo {x: (1,2), y: 3}; // 1st [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/modules/h_flow_of_control/hea_destructuring/heaf_structs.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let foo = Foo {x: (2,2), y: 2}; // 2nd [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temperature` [INFO] [stdout] --> src/modules/h_flow_of_control/heb_guards.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let temperature = Temperature::Celsius(35); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temperature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/modules/h_flow_of_control/hf_if_let.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | if let Foo2::Bar = a2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/modules/h_flow_of_control/hg_let_else.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | let Ok(count) = u64::from_str(count_str) else { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (bin "hello-rust") due to 2 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `bc_arrays_and_slices` is never used [INFO] [stdout] --> src/modules/b_primitives/bc_arrays_and_slices.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn bc_arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/modules/c_custom_types/ca_structures.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/modules/c_custom_types/cbc_testcase_linked_list.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | // cons also has type list [INFO] [stdout] 25 | Cons(elem, Box::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (bin "hello-rust" test) due to 2 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b0a0514b3ae54a0762f2735fd5727830eca98bb17d20feea918c5e553163888e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0a0514b3ae54a0762f2735fd5727830eca98bb17d20feea918c5e553163888e", kill_on_drop: false }` [INFO] [stdout] b0a0514b3ae54a0762f2735fd5727830eca98bb17d20feea918c5e553163888e