[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#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndianBoy42%2Fcodewars" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IndianBoy42/codewars on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-14/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: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29481eb9be623eb6389e25a7a93b354b90ccad81c1087ec73ef342106685fcda [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "29481eb9be623eb6389e25a7a93b354b90ccad81c1087ec73ef342106685fcda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29481eb9be623eb6389e25a7a93b354b90ccad81c1087ec73ef342106685fcda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29481eb9be623eb6389e25a7a93b354b90ccad81c1087ec73ef342106685fcda", kill_on_drop: false }` [INFO] [stdout] 29481eb9be623eb6389e25a7a93b354b90ccad81c1087ec73ef342106685fcda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6296a099b296162323a93ef671b161a009f6119c3f8d85a63dda4be91a6d6230 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6296a099b296162323a93ef671b161a009f6119c3f8d85a63dda4be91a6d6230", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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 is never used: `swap_lt` [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 is never used: `sq_in_rect` [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 is never used: `sq_in_rect2` [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 is never used: `testing` [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 is never used: `nth_odd` [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 is never used: `row_sum_odd_numbers2` [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 is never used: `sum_n_even_numbers` [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 is never used: `row_sum_odd_numbers` [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 is never used: `duplicate_encode` [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 is never used: `rot` [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 is never used: `play_pass` [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 is never used: `order` [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 is never used: `digits` [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 is never used: `num_as_roman` [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: variant is never constructed: `Sheldon` [INFO] [stdout] --> src/who_is_next.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Sheldon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Leonard` [INFO] [stdout] --> src/who_is_next.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Leonard, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/who_is_next.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rajesh` [INFO] [stdout] --> src/who_is_next.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Rajesh, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Howard` [INFO] [stdout] --> src/who_is_next.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Howard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Names` [INFO] [stdout] --> src/who_is_next.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | type Names = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generation` [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 is never used: `who_is_next` [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 is never used: `encrypt_this` [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 is never used: `range_extraction` [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 is never used: `decompose` [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 is never used: `testing` [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 is never used: `rgb` [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 is never used: `prod_merge` [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 is never used: `prod_one` [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 is never used: `prod` [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 is never used: `part` [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 is never used: `doubles` [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 is never constructed: `MorseDecoder` [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 is never used: `new` [INFO] [stdout] --> src/decode_morse.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> MorseDecoder { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_bits` [INFO] [stdout] --> src/decode_morse.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn decode_bits(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_morse` [INFO] [stdout] --> src/decode_morse.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn decode_morse(&self, encoded: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Sudoku` [INFO] [stdout] --> src/validate_sudoku.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Sudoku { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/validate_sudoku.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `snail` [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 is never used: `rolldice_sum_prob` [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 is never used: `assert_fuzzy_eq` [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 is never used: `rectangle_rotation` [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 is never used: `dbl_linear` [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 is never used: `zeroes` [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 is never used: `going1` [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 is never used: `going` [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 is never used: `remove_nb` [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 is never used: `testing` [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: 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: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 | "Expected {}, but got {}", expected, actual [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: 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: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sq_in_rect2` [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 is never used: `row_sum_odd_numbers2` [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: variant is never constructed: `North` [INFO] [stdout] --> src/bloxorz_solver.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `South` [INFO] [stdout] --> src/bloxorz_solver.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `East` [INFO] [stdout] --> src/bloxorz_solver.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `West` [INFO] [stdout] --> src/bloxorz_solver.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `North` [INFO] [stdout] --> src/bloxorz_solver.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `East` [INFO] [stdout] --> src/bloxorz_solver.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/bloxorz_solver.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | One(usize, usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Two` [INFO] [stdout] --> src/bloxorz_solver.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Two(usize, usize, Lying), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base` [INFO] [stdout] --> src/bloxorz_solver.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | fn base(self) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `both` [INFO] [stdout] --> src/bloxorz_solver.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | fn both(self) -> ((usize, usize), (usize, usize)) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `one` [INFO] [stdout] --> src/bloxorz_solver.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | fn one(self) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two` [INFO] [stdout] --> src/bloxorz_solver.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | fn two(self) -> Option<((usize, usize), (usize, usize))> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ok` [INFO] [stdout] --> src/bloxorz_solver.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | fn ok(self, gnd: &HashSet<(usize, usize)>) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `going1` [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: 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: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 | "Expected {}, but got {}", expected, actual [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: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.17s [INFO] running `Command { std: "docker" "inspect" "6296a099b296162323a93ef671b161a009f6119c3f8d85a63dda4be91a6d6230", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6296a099b296162323a93ef671b161a009f6119c3f8d85a63dda4be91a6d6230", kill_on_drop: false }` [INFO] [stdout] 6296a099b296162323a93ef671b161a009f6119c3f8d85a63dda4be91a6d6230