[INFO] cloning repository https://github.com/AirChen/Algorithm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AirChen/Algorithm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAirChen%2FAlgorithm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAirChen%2FAlgorithm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 57eec5f930831aa30ae56cdac2495d50783c9d27 [INFO] checking AirChen/Algorithm against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAirChen%2FAlgorithm" "/workspace/builds/worker-30/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-30/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AirChen/Algorithm on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AirChen/Algorithm [INFO] finished tweaking git repo https://github.com/AirChen/Algorithm [INFO] tweaked toml for git repo https://github.com/AirChen/Algorithm written to /workspace/builds/worker-30/source/Cargo.toml [INFO] crate git repo https://github.com/AirChen/Algorithm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ddf972829f4500477986fe5967c0014a9b0f239ae37d91a3fcee6e9aa515d79 [INFO] running `Command { std: "docker" "start" "-a" "5ddf972829f4500477986fe5967c0014a9b0f239ae37d91a3fcee6e9aa515d79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ddf972829f4500477986fe5967c0014a9b0f239ae37d91a3fcee6e9aa515d79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ddf972829f4500477986fe5967c0014a9b0f239ae37d91a3fcee6e9aa515d79", kill_on_drop: false }` [INFO] [stdout] 5ddf972829f4500477986fe5967c0014a9b0f239ae37d91a3fcee6e9aa515d79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e32d2e8eadf99c203e4af30cef21ca70367cd8e266c62bc4476bca9890e94bab [INFO] running `Command { std: "docker" "start" "-a" "e32d2e8eadf99c203e4af30cef21ca70367cd8e266c62bc4476bca9890e94bab", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking algorithm v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut last = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut last: f64 = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new() -> Sort { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `selectionSort` [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insertionSort` [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shellSort` [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mergeSort` [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs` [INFO] [stdout] --> src/math.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn abs(x: f64) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_newton` [INFO] [stdout] --> src/math.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sqrt_newton(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_bisection` [INFO] [stdout] --> src/math.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn sqrt_bisection(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `selectionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `selection_sort` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minIdx` should have a snake case name [INFO] [stdout] --> src/sort.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let mut minIdx = idx; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `min_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insertionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `insertion_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shellSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shell_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn _mergeSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | fn _quickSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn quickSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isNeg` should have a snake case name [INFO] [stdout] --> src/math.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut isNeg: bool = false; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut last = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut last: f64 = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new() -> Sort { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `selectionSort` [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insertionSort` [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shellSort` [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mergeSort` [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs` [INFO] [stdout] --> src/math.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn abs(x: f64) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_newton` [INFO] [stdout] --> src/math.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sqrt_newton(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_bisection` [INFO] [stdout] --> src/math.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn sqrt_bisection(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `selectionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `selection_sort` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minIdx` should have a snake case name [INFO] [stdout] --> src/sort.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let mut minIdx = idx; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `min_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insertionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `insertion_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shellSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shell_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn _mergeSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | fn _quickSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn quickSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isNeg` should have a snake case name [INFO] [stdout] --> src/math.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut isNeg: bool = false; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.85s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking algorithm v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut last = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut last: f64 = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new() -> Sort { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut last = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/math.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut last: f64 = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `selectionSort` [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insertionSort` [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shellSort` [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mergeSort` [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs` [INFO] [stdout] --> src/math.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn abs(x: f64) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_newton` [INFO] [stdout] --> src/math.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sqrt_newton(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_bisection` [INFO] [stdout] --> src/math.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn sqrt_bisection(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `selectionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `selection_sort` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minIdx` should have a snake case name [INFO] [stdout] --> src/sort.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let mut minIdx = idx; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `min_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insertionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `insertion_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shellSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shell_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn _mergeSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | fn _quickSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn quickSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isNeg` should have a snake case name [INFO] [stdout] --> src/math.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut isNeg: bool = false; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new() -> Sort { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `selectionSort` [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insertionSort` [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shellSort` [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mergeSort` [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `abs` [INFO] [stdout] --> src/math.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn abs(x: f64) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_newton` [INFO] [stdout] --> src/math.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sqrt_newton(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt_bisection` [INFO] [stdout] --> src/math.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn sqrt_bisection(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `selectionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn selectionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `selection_sort` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minIdx` should have a snake case name [INFO] [stdout] --> src/sort.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let mut minIdx = idx; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `min_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insertionSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insertionSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `insertion_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shellSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shellSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shell_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn _mergeSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mergeSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn mergeSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `_quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | fn _quickSort(arr: &mut [i32], lo: usize, hi: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quickSort` should have a snake case name [INFO] [stdout] --> src/sort.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn quickSort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quick_sort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isNeg` should have a snake case name [INFO] [stdout] --> src/math.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut isNeg: bool = false; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "e32d2e8eadf99c203e4af30cef21ca70367cd8e266c62bc4476bca9890e94bab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e32d2e8eadf99c203e4af30cef21ca70367cd8e266c62bc4476bca9890e94bab", kill_on_drop: false }` [INFO] [stdout] e32d2e8eadf99c203e4af30cef21ca70367cd8e266c62bc4476bca9890e94bab