[INFO] cloning repository https://github.com/ltraniello/rustcses [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ltraniello/rustcses" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fltraniello%2Frustcses", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fltraniello%2Frustcses'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e53a804181ddaf7d5535c02917de9ea1bec7f09d [INFO] checking ltraniello/rustcses against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fltraniello%2Frustcses" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ltraniello/rustcses 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/ltraniello/rustcses [INFO] finished tweaking git repo https://github.com/ltraniello/rustcses [INFO] tweaked toml for git repo https://github.com/ltraniello/rustcses written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ltraniello/rustcses 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 182d3929931aa9a29bbd801148bc196514bb2b36593ca5a4b0c6bd9191ba0100 [INFO] running `Command { std: "docker" "start" "-a" "182d3929931aa9a29bbd801148bc196514bb2b36593ca5a4b0c6bd9191ba0100", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "182d3929931aa9a29bbd801148bc196514bb2b36593ca5a4b0c6bd9191ba0100", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "182d3929931aa9a29bbd801148bc196514bb2b36593ca5a4b0c6bd9191ba0100", kill_on_drop: false }` [INFO] [stdout] 182d3929931aa9a29bbd801148bc196514bb2b36593ca5a4b0c6bd9191ba0100 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 203bc0a31c3a39e4c52c245d412e50a7c52066ea434e19f2711116e3e03041a7 [INFO] running `Command { std: "docker" "start" "-a" "203bc0a31c3a39e4c52c245d412e50a7c52066ea434e19f2711116e3e03041a7", kill_on_drop: false }` [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Checking rustcsec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/sorting_searching.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{HashMap, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/sorting_searching.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{HashMap, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_available_movie_index` is never read [INFO] [stdout] --> src/sorting_searching.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut next_available_movie_index = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/sorting_searching.rs:224:68 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/utils.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pairs` is never used [INFO] [stdout] --> src/utils.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Scanner { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn pairs(&mut self, count : u32) -> Vec> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_vec` is never used [INFO] [stdout] --> src/utils.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn print_vec(v : &Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_to_u8` is never used [INFO] [stdout] --> src/utils.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn char_to_u8(c : char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8_to_char` is never used [INFO] [stdout] --> src/utils.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn u8_to_char(u : u8) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve_weird_algorithm(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn do_solve_weird_algorithm(mut n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn solve_missing_number(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn do_solve_missing_number(n : i32, numbers : Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn solve_repetitions(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn do_solve_repetitions(dna : String, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_increasing_array` is never used [INFO] [stdout] --> src/intro.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn solve_increasing_array(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn solve_permutations(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn do_solve_permutations(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn solve_number_spiral(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn do_solve_number_spiral(coords : Vec>, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn solve_two_knights(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn do_solve_two_knights(n : i64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn solve_two_sets(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn do_solve_two_sets(n : i64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn solve_bit_strings(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn do_solve_bit_strings(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn solve_trailing_zeros(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_trailing_zeros_slow` is never used [INFO] [stdout] --> src/intro.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn do_solve_trailing_zeros_slow(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn do_solve_trailing_zeros(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn solve_coin_piles(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn do_solve_coin_piles(pairs : Vec>, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE` is never used [INFO] [stdout] --> src/intro.rs:380:7 [INFO] [stdout] | [INFO] [stdout] 380 | const SIZE: usize = 7; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQQIZE` is never used [INFO] [stdout] --> src/intro.rs:381:7 [INFO] [stdout] | [INFO] [stdout] 381 | const SQQIZE: usize = SIZE*SIZE; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIRST_POS` is never used [INFO] [stdout] --> src/intro.rs:382:7 [INFO] [stdout] | [INFO] [stdout] 382 | const FIRST_POS: usize = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LAST_POS` is never used [INFO] [stdout] --> src/intro.rs:383:7 [INFO] [stdout] | [INFO] [stdout] 383 | const LAST_POS: usize = SIZE*(SIZE-1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PATHLEN` is never used [INFO] [stdout] --> src/intro.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | const PATHLEN: usize = SIZE*SIZE-1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_available` is never used [INFO] [stdout] --> src/intro.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn is_available(visited : &[[bool; SIZE]], i : usize, j : usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/intro.rs:391:8 [INFO] [stdout] | [INFO] [stdout] 391 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:396:4 [INFO] [stdout] | [INFO] [stdout] 396 | fn rec_solve_grid_path(count : &mut Counter, path : &[u8], visited : &mut[[bool; SIZE]], gi : usize, gj : usize, i : usize, lastchar : u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:424:4 [INFO] [stdout] | [INFO] [stdout] 424 | fn do_solve_grid_path(path : &[u8]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:437:4 [INFO] [stdout] | [INFO] [stdout] 437 | fn solve_grid_path(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn solve_palindrome_reorder(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:456:4 [INFO] [stdout] | [INFO] [stdout] 456 | fn do_solve_palindrome_reorder(raws : String, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn solve_apple_division(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:508:4 [INFO] [stdout] | [INFO] [stdout] 508 | fn do_solve_apple_division(n : i32, weights : Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_appartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn solve_appartments(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_apartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn do_solve_apartments(k : i64, expected : &mut Vec, size : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn solve_ferris(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn do_solve_ferris(x : i64, size : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn solve_concert_ticket(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn do_solve_concert_ticket(prices : &mut Vec, customers : &mut Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | fn solve_restaurant_customers(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | fn do_solve_restaurant_customers(arrival_t : &mut Vec, leaving_t : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn solve_movie_festival(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn solve_twovalues(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn do_solve_twovalues(val : i64, values : Vec) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(out, "{} ", *u); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `trimmedDna` should have a snake case name [INFO] [stdout] --> src/intro.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let trimmedDna = dna.trim(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trimmed_dna` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longestSeq` should have a snake case name [INFO] [stdout] --> src/intro.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut longestSeq = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `longest_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentChar` should have a snake case name [INFO] [stdout] --> src/intro.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut currentChar = 'Z'; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentSeqLength` should have a snake case name [INFO] [stdout] --> src/intro.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut currentSeqLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_seq_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turnCount` should have a snake case name [INFO] [stdout] --> src/intro.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut turnCount : u64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `turn_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 266 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/intro.rs:362:30 [INFO] [stdout] | [INFO] [stdout] 362 | if (2*b-a)%3 != 0 || b-2*(2*b-a)/3 < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | write!(out, "{}", oddchar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:527:5 [INFO] [stdout] | [INFO] [stdout] 527 | writeln!(out, "{}", sum-2*maxgroupsum); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | write!(out, "{}", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | write!(out, "{}", ans); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_available_movie_index` is never read [INFO] [stdout] --> src/sorting_searching.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut next_available_movie_index = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/sorting_searching.rs:224:68 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/sorting_searching.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 281 | let (u,v) = do_solve_twovalues(8, vec!{2, 7, 5, 1}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pairs` is never used [INFO] [stdout] --> src/utils.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Scanner { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn pairs(&mut self, count : u32) -> Vec> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve_weird_algorithm(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn solve_missing_number(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn solve_repetitions(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_increasing_array` is never used [INFO] [stdout] --> src/intro.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn solve_increasing_array(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn solve_permutations(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn solve_number_spiral(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn solve_two_knights(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn solve_two_sets(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn solve_bit_strings(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn solve_trailing_zeros(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn solve_coin_piles(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQQIZE` is never used [INFO] [stdout] --> src/intro.rs:381:7 [INFO] [stdout] | [INFO] [stdout] 381 | const SQQIZE: usize = SIZE*SIZE; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LAST_POS` is never used [INFO] [stdout] --> src/intro.rs:383:7 [INFO] [stdout] | [INFO] [stdout] 383 | const LAST_POS: usize = SIZE*(SIZE-1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PATHLEN` is never used [INFO] [stdout] --> src/intro.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | const PATHLEN: usize = SIZE*SIZE-1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rec` is never read [INFO] [stdout] --> src/intro.rs:393:5 [INFO] [stdout] | [INFO] [stdout] 391 | struct Counter { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 392 | count: u64, [INFO] [stdout] 393 | rec: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:437:4 [INFO] [stdout] | [INFO] [stdout] 437 | fn solve_grid_path(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn solve_palindrome_reorder(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn solve_apple_division(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_appartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn solve_appartments(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn solve_ferris(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn solve_concert_ticket(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | fn solve_restaurant_customers(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn solve_movie_festival(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn solve_twovalues(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(out, "{} ", *u); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `trimmedDna` should have a snake case name [INFO] [stdout] --> src/intro.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let trimmedDna = dna.trim(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trimmed_dna` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longestSeq` should have a snake case name [INFO] [stdout] --> src/intro.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut longestSeq = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `longest_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentChar` should have a snake case name [INFO] [stdout] --> src/intro.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut currentChar = 'Z'; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentSeqLength` should have a snake case name [INFO] [stdout] --> src/intro.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut currentSeqLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_seq_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turnCount` should have a snake case name [INFO] [stdout] --> src/intro.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut turnCount : u64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `turn_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 266 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/intro.rs:362:30 [INFO] [stdout] | [INFO] [stdout] 362 | if (2*b-a)%3 != 0 || b-2*(2*b-a)/3 < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | write!(out, "{}", oddchar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:527:5 [INFO] [stdout] | [INFO] [stdout] 527 | writeln!(out, "{}", sum-2*maxgroupsum); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | write!(out, "{}", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | write!(out, "{}", ans); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "203bc0a31c3a39e4c52c245d412e50a7c52066ea434e19f2711116e3e03041a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "203bc0a31c3a39e4c52c245d412e50a7c52066ea434e19f2711116e3e03041a7", kill_on_drop: false }` [INFO] [stdout] 203bc0a31c3a39e4c52c245d412e50a7c52066ea434e19f2711116e3e03041a7 [INFO] checking ltraniello/rustcses 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%2Fltraniello%2Frustcses" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ltraniello/rustcses 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/ltraniello/rustcses [INFO] finished tweaking git repo https://github.com/ltraniello/rustcses [INFO] tweaked toml for git repo https://github.com/ltraniello/rustcses written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ltraniello/rustcses 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 71b619dd1f67af9daf633c4c91dcc175fef4fbebd93a91a9cbea6fca8c272170 [INFO] running `Command { std: "docker" "start" "-a" "71b619dd1f67af9daf633c4c91dcc175fef4fbebd93a91a9cbea6fca8c272170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71b619dd1f67af9daf633c4c91dcc175fef4fbebd93a91a9cbea6fca8c272170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71b619dd1f67af9daf633c4c91dcc175fef4fbebd93a91a9cbea6fca8c272170", kill_on_drop: false }` [INFO] [stdout] 71b619dd1f67af9daf633c4c91dcc175fef4fbebd93a91a9cbea6fca8c272170 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 4d9d05a35e26dd3b4cd48e9c92827a00ff5b2af55a88c8d46eaaa633ebea2bce [INFO] running `Command { std: "docker" "start" "-a" "4d9d05a35e26dd3b4cd48e9c92827a00ff5b2af55a88c8d46eaaa633ebea2bce", kill_on_drop: false }` [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Checking rustcsec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/sorting_searching.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{HashMap, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/sorting_searching.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{HashMap, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_available_movie_index` is never read [INFO] [stdout] --> src/sorting_searching.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut next_available_movie_index = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/sorting_searching.rs:224:68 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/utils.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pairs` is never used [INFO] [stdout] --> src/utils.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Scanner { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn pairs(&mut self, count : u32) -> Vec> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_vec` is never used [INFO] [stdout] --> src/utils.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn print_vec(v : &Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_to_u8` is never used [INFO] [stdout] --> src/utils.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn char_to_u8(c : char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8_to_char` is never used [INFO] [stdout] --> src/utils.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn u8_to_char(u : u8) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve_weird_algorithm(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn do_solve_weird_algorithm(mut n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn solve_missing_number(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn do_solve_missing_number(n : i32, numbers : Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn solve_repetitions(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn do_solve_repetitions(dna : String, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_increasing_array` is never used [INFO] [stdout] --> src/intro.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn solve_increasing_array(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn solve_permutations(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn do_solve_permutations(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn solve_number_spiral(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn do_solve_number_spiral(coords : Vec>, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn solve_two_knights(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn do_solve_two_knights(n : i64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn solve_two_sets(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn do_solve_two_sets(n : i64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn solve_bit_strings(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn do_solve_bit_strings(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn solve_trailing_zeros(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_trailing_zeros_slow` is never used [INFO] [stdout] --> src/intro.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn do_solve_trailing_zeros_slow(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn do_solve_trailing_zeros(n : u64, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn solve_coin_piles(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn do_solve_coin_piles(pairs : Vec>, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE` is never used [INFO] [stdout] --> src/intro.rs:380:7 [INFO] [stdout] | [INFO] [stdout] 380 | const SIZE: usize = 7; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQQIZE` is never used [INFO] [stdout] --> src/intro.rs:381:7 [INFO] [stdout] | [INFO] [stdout] 381 | const SQQIZE: usize = SIZE*SIZE; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIRST_POS` is never used [INFO] [stdout] --> src/intro.rs:382:7 [INFO] [stdout] | [INFO] [stdout] 382 | const FIRST_POS: usize = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LAST_POS` is never used [INFO] [stdout] --> src/intro.rs:383:7 [INFO] [stdout] | [INFO] [stdout] 383 | const LAST_POS: usize = SIZE*(SIZE-1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PATHLEN` is never used [INFO] [stdout] --> src/intro.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | const PATHLEN: usize = SIZE*SIZE-1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_available` is never used [INFO] [stdout] --> src/intro.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn is_available(visited : &[[bool; SIZE]], i : usize, j : usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/intro.rs:391:8 [INFO] [stdout] | [INFO] [stdout] 391 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:396:4 [INFO] [stdout] | [INFO] [stdout] 396 | fn rec_solve_grid_path(count : &mut Counter, path : &[u8], visited : &mut[[bool; SIZE]], gi : usize, gj : usize, i : usize, lastchar : u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:424:4 [INFO] [stdout] | [INFO] [stdout] 424 | fn do_solve_grid_path(path : &[u8]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:437:4 [INFO] [stdout] | [INFO] [stdout] 437 | fn solve_grid_path(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn solve_palindrome_reorder(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:456:4 [INFO] [stdout] | [INFO] [stdout] 456 | fn do_solve_palindrome_reorder(raws : String, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn solve_apple_division(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:508:4 [INFO] [stdout] | [INFO] [stdout] 508 | fn do_solve_apple_division(n : i32, weights : Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_appartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn solve_appartments(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_apartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn do_solve_apartments(k : i64, expected : &mut Vec, size : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn solve_ferris(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn do_solve_ferris(x : i64, size : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn solve_concert_ticket(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn do_solve_concert_ticket(prices : &mut Vec, customers : &mut Vec, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | fn solve_restaurant_customers(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | fn do_solve_restaurant_customers(arrival_t : &mut Vec, leaving_t : &mut Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn solve_movie_festival(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn solve_twovalues(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn do_solve_twovalues(val : i64, values : Vec) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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/utils.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | return input.split_whitespace().map(|s| T::from_str(s).ok().expect("parse error")).collect(); [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 `Result` that must be used [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(out, "{} ", *u); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `trimmedDna` should have a snake case name [INFO] [stdout] --> src/intro.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let trimmedDna = dna.trim(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trimmed_dna` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longestSeq` should have a snake case name [INFO] [stdout] --> src/intro.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut longestSeq = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `longest_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentChar` should have a snake case name [INFO] [stdout] --> src/intro.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut currentChar = 'Z'; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentSeqLength` should have a snake case name [INFO] [stdout] --> src/intro.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut currentSeqLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_seq_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turnCount` should have a snake case name [INFO] [stdout] --> src/intro.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut turnCount : u64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `turn_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 266 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/intro.rs:362:30 [INFO] [stdout] | [INFO] [stdout] 362 | if (2*b-a)%3 != 0 || b-2*(2*b-a)/3 < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | write!(out, "{}", oddchar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:527:5 [INFO] [stdout] | [INFO] [stdout] 527 | writeln!(out, "{}", sum-2*maxgroupsum); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | write!(out, "{}", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | write!(out, "{}", ans); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustcsec` (bin "rustcsec") due to 2 previous errors; 71 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: value assigned to `next_available_movie_index` is never read [INFO] [stdout] --> src/sorting_searching.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut next_available_movie_index = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/sorting_searching.rs:224:68 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/sorting_searching.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 281 | let (u,v) = do_solve_twovalues(8, vec!{2, 7, 5, 1}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pairs` is never used [INFO] [stdout] --> src/utils.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Scanner { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn pairs(&mut self, count : u32) -> Vec> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_weird_algorithm` is never used [INFO] [stdout] --> src/intro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve_weird_algorithm(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_missing_number` is never used [INFO] [stdout] --> src/intro.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn solve_missing_number(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_repetitions` is never used [INFO] [stdout] --> src/intro.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn solve_repetitions(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_increasing_array` is never used [INFO] [stdout] --> src/intro.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn solve_increasing_array(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_permutations` is never used [INFO] [stdout] --> src/intro.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn solve_permutations(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_number_spiral` is never used [INFO] [stdout] --> src/intro.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn solve_number_spiral(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_knights` is never used [INFO] [stdout] --> src/intro.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn solve_two_knights(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_two_sets` is never used [INFO] [stdout] --> src/intro.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn solve_two_sets(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_bit_strings` is never used [INFO] [stdout] --> src/intro.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn solve_bit_strings(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_trailing_zeros` is never used [INFO] [stdout] --> src/intro.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn solve_trailing_zeros(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_coin_piles` is never used [INFO] [stdout] --> src/intro.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn solve_coin_piles(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQQIZE` is never used [INFO] [stdout] --> src/intro.rs:381:7 [INFO] [stdout] | [INFO] [stdout] 381 | const SQQIZE: usize = SIZE*SIZE; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LAST_POS` is never used [INFO] [stdout] --> src/intro.rs:383:7 [INFO] [stdout] | [INFO] [stdout] 383 | const LAST_POS: usize = SIZE*(SIZE-1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PATHLEN` is never used [INFO] [stdout] --> src/intro.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | const PATHLEN: usize = SIZE*SIZE-1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rec` is never read [INFO] [stdout] --> src/intro.rs:393:5 [INFO] [stdout] | [INFO] [stdout] 391 | struct Counter { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 392 | count: u64, [INFO] [stdout] 393 | rec: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_grid_path` is never used [INFO] [stdout] --> src/intro.rs:437:4 [INFO] [stdout] | [INFO] [stdout] 437 | fn solve_grid_path(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_palindrome_reorder` is never used [INFO] [stdout] --> src/intro.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn solve_palindrome_reorder(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_apple_division` is never used [INFO] [stdout] --> src/intro.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn solve_apple_division(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_appartments` is never used [INFO] [stdout] --> src/sorting_searching.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn solve_appartments(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_ferris` is never used [INFO] [stdout] --> src/sorting_searching.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn solve_ferris(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_concert_ticket` is never used [INFO] [stdout] --> src/sorting_searching.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn solve_concert_ticket(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_restaurant_customers` is never used [INFO] [stdout] --> src/sorting_searching.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | fn solve_restaurant_customers(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn solve_movie_festival(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_solve_movie_festival` is never used [INFO] [stdout] --> src/sorting_searching.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn do_solve_movie_festival(movies : &Vec>, mut last_film_index : i32, movie_seen : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_twovalues` is never used [INFO] [stdout] --> src/sorting_searching.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn solve_twovalues(scan: &mut crate::utils::Scanner, out: &mut W) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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/utils.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | return input.split_whitespace().map(|s| T::from_str(s).ok().expect("parse error")).collect(); [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 `Result` that must be used [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(out, "{} ", *u); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `trimmedDna` should have a snake case name [INFO] [stdout] --> src/intro.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let trimmedDna = dna.trim(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `trimmed_dna` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longestSeq` should have a snake case name [INFO] [stdout] --> src/intro.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut longestSeq = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `longest_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentChar` should have a snake case name [INFO] [stdout] --> src/intro.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut currentChar = 'Z'; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentSeqLength` should have a snake case name [INFO] [stdout] --> src/intro.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut currentSeqLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_seq_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turnCount` should have a snake case name [INFO] [stdout] --> src/intro.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut turnCount : u64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `turn_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 266 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/intro.rs:362:30 [INFO] [stdout] | [INFO] [stdout] 362 | if (2*b-a)%3 != 0 || b-2*(2*b-a)/3 < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | write!(out, "{}", oddchar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | write!(out, "{}", crate::utils::u8_to_char(*c as u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/intro.rs:527:5 [INFO] [stdout] | [INFO] [stdout] 527 | writeln!(out, "{}", sum-2*maxgroupsum); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | write!(out, "{}", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sorting_searching.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | write!(out, "{}", ans); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustcsec` (bin "rustcsec" test) due to 2 previous errors; 45 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4d9d05a35e26dd3b4cd48e9c92827a00ff5b2af55a88c8d46eaaa633ebea2bce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d9d05a35e26dd3b4cd48e9c92827a00ff5b2af55a88c8d46eaaa633ebea2bce", kill_on_drop: false }` [INFO] [stdout] 4d9d05a35e26dd3b4cd48e9c92827a00ff5b2af55a88c8d46eaaa633ebea2bce