[INFO] cloning repository https://github.com/IndianBoy42/codewars [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IndianBoy42/codewars" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 184edd3ca283bf7a3f920630442310fff46c5ea0 [INFO] checking IndianBoy42/codewars against master#7606c13961ddc1174b70638e934df0439b7dc515 for pr-121979 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IndianBoy42/codewars on toolchain 7606c13961ddc1174b70638e934df0439b7dc515 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7606c13961ddc1174b70638e934df0439b7dc515" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IndianBoy42/codewars [INFO] finished tweaking git repo https://github.com/IndianBoy42/codewars [INFO] tweaked toml for git repo https://github.com/IndianBoy42/codewars written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/IndianBoy42/codewars 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" "+7606c13961ddc1174b70638e934df0439b7dc515" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking IndianBoy42/codewars against try#ae973628c64ab60398819bcc1fd9f08ae68ad5b5 for pr-121979 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IndianBoy42/codewars on toolchain ae973628c64ab60398819bcc1fd9f08ae68ad5b5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IndianBoy42/codewars [INFO] finished tweaking git repo https://github.com/IndianBoy42/codewars [INFO] tweaked toml for git repo https://github.com/IndianBoy42/codewars written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/IndianBoy42/codewars 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" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking IndianBoy42/codewars against try#ae973628c64ab60398819bcc1fd9f08ae68ad5b5 for pr-121979 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IndianBoy42/codewars on toolchain ae973628c64ab60398819bcc1fd9f08ae68ad5b5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IndianBoy42/codewars [INFO] finished tweaking git repo https://github.com/IndianBoy42/codewars [INFO] tweaked toml for git repo https://github.com/IndianBoy42/codewars written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/IndianBoy42/codewars 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" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1deecf02e77de147069837c74e5b6292347d6d5b8bc55a86562a994cfe5bc546 [INFO] running `Command { std: "docker" "start" "-a" "1deecf02e77de147069837c74e5b6292347d6d5b8bc55a86562a994cfe5bc546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1deecf02e77de147069837c74e5b6292347d6d5b8bc55a86562a994cfe5bc546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1deecf02e77de147069837c74e5b6292347d6d5b8bc55a86562a994cfe5bc546", kill_on_drop: false }` [INFO] [stdout] 1deecf02e77de147069837c74e5b6292347d6d5b8bc55a86562a994cfe5bc546 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ae973628c64ab60398819bcc1fd9f08ae68ad5b5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 769b857d0c122864a8662dea5b57000254ab1a5940ed141ea15c32c35c4f17c9 [INFO] running `Command { std: "docker" "start" "-a" "769b857d0c122864a8662dea5b57000254ab1a5940ed141ea15c32c35c4f17c9", kill_on_drop: false }` [INFO] [stderr] Checking codewars v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/going_to_zero_inf.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | (actual.abs() <= merr) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - (actual.abs() <= merr) [INFO] [stdout] 34 + actual.abs() <= merr [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/going_to_zero_inf.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | ((actual - expected).abs() / expected <= merr) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - ((actual - expected).abs() / expected <= merr) [INFO] [stdout] 36 + (actual - expected).abs() / expected <= merr [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded` [INFO] [stdout] --> src/decode_morse.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn decode_bits(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded` [INFO] [stdout] --> src/decode_morse.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn decode_morse(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap_lt` is never used [INFO] [stdout] --> src/sq_in_rect.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn swap_lt(a: i32, b: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sq_in_rect` is never used [INFO] [stdout] --> src/sq_in_rect.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn sq_in_rect(length: i32, width: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sq_in_rect2` is never used [INFO] [stdout] --> src/sq_in_rect.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn sq_in_rect2(length: i32, width: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing` is never used [INFO] [stdout] --> src/sq_in_rect.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn testing(lng: i32, wdth: i32, exp: Option>) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nth_odd` is never used [INFO] [stdout] --> src/row_sum_odd_numbers.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn nth_odd(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `row_sum_odd_numbers2` is never used [INFO] [stdout] --> src/row_sum_odd_numbers.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn row_sum_odd_numbers2(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_n_even_numbers` is never used [INFO] [stdout] --> src/row_sum_odd_numbers.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn sum_n_even_numbers(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `row_sum_odd_numbers` is never used [INFO] [stdout] --> src/row_sum_odd_numbers.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn row_sum_odd_numbers(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duplicate_encode` is never used [INFO] [stdout] --> src/duplicate_encode.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn duplicate_encode(word: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rot` is never used [INFO] [stdout] --> src/play_pass.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn rot(ch: u8, base: u8, len: u8, n: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_pass` is never used [INFO] [stdout] --> src/play_pass.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn play_pass(s: &str, n: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `order` is never used [INFO] [stdout] --> src/order.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn order(sentence: &str) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `digits` is never used [INFO] [stdout] --> src/num_as_roman.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn digits(num: i32) -> [i32; 10] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_as_roman` is never used [INFO] [stdout] --> src/num_as_roman.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn num_as_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sheldon`, `Leonard`, `Penny`, `Rajesh`, and `Howard` are never constructed [INFO] [stdout] --> src/who_is_next.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Name { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 4 | Sheldon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | Leonard, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Rajesh, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Howard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Name` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Names` is never used [INFO] [stdout] --> src/who_is_next.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type Names = Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generation` is never used [INFO] [stdout] --> src/who_is_next.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn generation(n: usize) -> (usize, usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `who_is_next` is never used [INFO] [stdout] --> src/who_is_next.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn who_is_next(_names: &Names, n: usize) -> Name { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_this` is never used [INFO] [stdout] --> src/encrypt_this.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn encrypt_this(text: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `range_extraction` is never used [INFO] [stdout] --> src/range_extraction.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn range_extraction(a: &[i32]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompose` is never used [INFO] [stdout] --> src/decompose.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn decompose(n: i64) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing` is never used [INFO] [stdout] --> src/decompose.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn testing(n: i64, exp: Option>) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rgb` is never used [INFO] [stdout] --> src/rgb_to_hex.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn rgb(r: i32, g: i32, b: i32) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prod_merge` is never used [INFO] [stdout] --> src/integer_partitions.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn prod_merge(a: BTreeSet, b: &BTreeSet) -> BTreeSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prod_one` is never used [INFO] [stdout] --> src/integer_partitions.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn prod_one(v: &Vec>, n: i64) -> BTreeSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prod` is never used [INFO] [stdout] --> src/integer_partitions.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn prod(n: i64) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part` is never used [INFO] [stdout] --> src/integer_partitions.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn part(n: i64) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doubles` is never used [INFO] [stdout] --> src/magnet_particules.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn doubles(maxk: i32, maxn: i32) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MorseDecoder` is never constructed [INFO] [stdout] --> src/decode_morse.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MorseDecoder; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/decode_morse.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | impl MorseDecoder { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 4 | fn new() -> MorseDecoder { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `decode_bits` and `decode_morse` are never used [INFO] [stdout] --> src/decode_morse.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl MorseDecoder { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 10 | pub fn decode_bits(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn decode_morse(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sudoku` is never constructed [INFO] [stdout] --> src/validate_sudoku.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Sudoku { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/validate_sudoku.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Sudoku { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 8 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `snail` is never used [INFO] [stdout] --> src/snail.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn snail(matrix: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rolldice_sum_prob` is never used [INFO] [stdout] --> src/rolldice_sum_prob.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn rolldice_sum_prob(sum: i32, dice_amount: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_fuzzy_eq` is never used [INFO] [stdout] --> src/rolldice_sum_prob.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn assert_fuzzy_eq(actual: f64, expected: f64, eps: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rectangle_rotation` is never used [INFO] [stdout] --> src/rectangle_rotation.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn rectangle_rotation(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dbl_linear` is never used [INFO] [stdout] --> src/twice_linear.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn dbl_linear(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `zeroes` is never used [INFO] [stdout] --> src/factorial_tail.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn zeroes(base: i32, number: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `going1` is never used [INFO] [stdout] --> src/going_to_zero_inf.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn going1(n: i32) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `going` is never used [INFO] [stdout] --> src/going_to_zero_inf.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn going(n: i32) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_nb` is never used [INFO] [stdout] --> src/remove_nb.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn remove_nb(m: i32) -> Vec<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing` is never used [INFO] [stdout] --> src/remove_nb.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn testing(n: i32, exp: Vec<(i32, i32)>) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S` should have a snake case name [INFO] [stdout] --> src/magnet_particules.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn S(k: i32, n: i32) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rolldice_sum_prob.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | format!("Expected {}, but got {}", expected, actual) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - format!("Expected {}, but got {}", expected, actual) [INFO] [stdout] 26 + "Expected {}, but got {}", expected, actual [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded` [INFO] [stdout] --> src/decode_morse.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn decode_bits(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded` [INFO] [stdout] --> src/decode_morse.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn decode_morse(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `solid` [INFO] [stdout] --> src/bloxorz_solver.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let solid: HashSet<_> = map [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_solid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `queue` [INFO] [stdout] --> src/bloxorz_solver.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let queue = BinaryHeap::<(i32, State)>::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sq_in_rect2` is never used [INFO] [stdout] --> src/sq_in_rect.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn sq_in_rect2(length: i32, width: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `row_sum_odd_numbers2` is never used [INFO] [stdout] --> src/row_sum_odd_numbers.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn row_sum_odd_numbers2(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `North`, `South`, `East`, and `West` are never constructed [INFO] [stdout] --> src/bloxorz_solver.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 7 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `North` and `East` are never constructed [INFO] [stdout] --> src/bloxorz_solver.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | enum Lying { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 15 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lying` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Two` are never constructed [INFO] [stdout] --> src/bloxorz_solver.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 20 | One(usize, usize), [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | Two(usize, usize, Lying), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `base`, `both`, `one`, `two`, and `ok` are never used [INFO] [stdout] --> src/bloxorz_solver.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 25 | fn base(self) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn both(self) -> ((usize, usize), (usize, usize)) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn one(self) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn two(self) -> Option<((usize, usize), (usize, usize))> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn ok(self, gnd: &HashSet<(usize, usize)>) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `going1` is never used [INFO] [stdout] --> src/going_to_zero_inf.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn going1(n: i32) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/who_is_next.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | for (i, name) in (1..) [INFO] [stdout] | __________________________^ [INFO] [stdout] 76 | | .flat_map(|i| { [INFO] [stdout] 77 | | (0..5).flat_map(move |j| std::iter::repeat(names[j]).take(2usize.pow(i - 1))) [INFO] [stdout] 78 | | }) [INFO] [stdout] 79 | | .enumerate() [INFO] [stdout] 80 | | .nth(759137-1) [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 75 | while let Some((i, name)) = (1..) [INFO] [stdout] | ~~~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 75 | if let Some((i, name)) = (1..) [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S` should have a snake case name [INFO] [stdout] --> src/magnet_particules.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn S(k: i32, n: i32) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rolldice_sum_prob.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | format!("Expected {}, but got {}", expected, actual) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - format!("Expected {}, but got {}", expected, actual) [INFO] [stdout] 26 + "Expected {}, but got {}", expected, actual [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "769b857d0c122864a8662dea5b57000254ab1a5940ed141ea15c32c35c4f17c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "769b857d0c122864a8662dea5b57000254ab1a5940ed141ea15c32c35c4f17c9", kill_on_drop: false }` [INFO] [stdout] 769b857d0c122864a8662dea5b57000254ab1a5940ed141ea15c32c35c4f17c9