[INFO] cloning repository https://github.com/helloooooo/Ants-book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/helloooooo/Ants-book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhelloooooo%2FAnts-book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhelloooooo%2FAnts-book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f35f886f92d9dc62d4a02f0adbae68b60e79ab3a [INFO] checking helloooooo/Ants-book against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhelloooooo%2FAnts-book" "/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/helloooooo/Ants-book 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/helloooooo/Ants-book [INFO] finished tweaking git repo https://github.com/helloooooo/Ants-book [INFO] tweaked toml for git repo https://github.com/helloooooo/Ants-book written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/helloooooo/Ants-book already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `src/main.rs` was erroneously implicitly accepted for binary `binary_search`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6fad1632f36a11f59b60d98d39359963ac79a1f8bb6505226b1c85ce5f1da572 [INFO] running `Command { std: "docker" "start" "-a" "6fad1632f36a11f59b60d98d39359963ac79a1f8bb6505226b1c85ce5f1da572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6fad1632f36a11f59b60d98d39359963ac79a1f8bb6505226b1c85ce5f1da572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fad1632f36a11f59b60d98d39359963ac79a1f8bb6505226b1c85ce5f1da572", kill_on_drop: false }` [INFO] [stdout] 6fad1632f36a11f59b60d98d39359963ac79a1f8bb6505226b1c85ce5f1da572 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 33537a023c40e9d841b3f5d9b75b519ff66479fb3ffd84586c88d5f128d77a58 [INFO] running `Command { std: "docker" "start" "-a" "33537a023c40e9d841b3f5d9b75b519ff66479fb3ffd84586c88d5f128d77a58", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `src/main.rs` was erroneously implicitly accepted for binary `binary_search`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking Ants-book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/selection_sort.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | if (v[j as usize] < v[minj as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if (v[j as usize] < v[minj as usize]) { [INFO] [stdout] 5 + if v[j as usize] < v[minj as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/lower_bound.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | fn lower_bound(&self, &T) -> usize; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: &T` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/lower_bound.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | fn upper_bound(&self, &T) -> usize; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: &T` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/selection_sort.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | if (v[j as usize] < v[minj as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if (v[j as usize] < v[minj as usize]) { [INFO] [stdout] 5 + if v[j as usize] < v[minj as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/lower_bound.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | fn lower_bound(&self, &T) -> usize; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: &T` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/lower_bound.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | fn upper_bound(&self, &T) -> usize; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: &T` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bubblesort.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | let mut x = v[(n - j) as usize]; [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: `n` [INFO] [stdout] --> src/que.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/que.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn que(v: Vec<(String, i64)>, n: i64, t: i64) -> Vec<(String, i64)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/liner_search.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/liner_search.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/liner_search.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/liner_search.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn gate_linerSearch(n:i64,mut an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/liner_search.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binary_search.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sn = read_vec::(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/binary_search.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn binary_search(n:i64,mut sn:Vec,t:i64,tn:Vec)->i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/Exhaustive_serach.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let n = read::(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an` [INFO] [stdout] --> src/Exhaustive_serach.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let an = read_vec::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_an` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/Exhaustive_serach.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let m = read::(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bn` [INFO] [stdout] --> src/Exhaustive_serach.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let bn = read::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `temp_v` is never read [INFO] [stdout] --> src/partition.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut temp_v = 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: function `read` is never used [INFO] [stdout] --> src/insertionsort.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read() -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/insertionsort.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/insertionsort.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/insertionsort.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/que.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MAX_SIZE: usize = 50; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Que` is never constructed [INFO] [stdout] --> src/que.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Que { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `isEmpty`, `isFull`, `enqueue`, and `dequeue` are never used [INFO] [stdout] --> src/que.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Que { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | fn new(n: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn enqueue(&mut self, x: i64) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn dequeue(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/binary_search.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read() -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/binary_search.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/binary_search.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/binary_search.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/iterator.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/Exhaustive_serach.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_sum` is never used [INFO] [stdout] --> src/Exhaustive_serach.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn all_sum(v:&Vec,i:usize,m:usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `partition` is never used [INFO] [stdout] --> src/partition.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn partition(v:&mut Vec){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Ants_book` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ants_book` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Exhaustive_serach` should have a snake case name [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Exhaustive_serach; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `exhaustive_serach` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/que.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isFull` should have a snake case name [INFO] [stdout] --> src/que.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/stack.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isFull` should have a snake case name [INFO] [stdout] --> src/stack.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `linerSearch` should have a snake case name [INFO] [stdout] --> src/liner_search.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `liner_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gate_linerSearch` should have a snake case name [INFO] [stdout] --> src/liner_search.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn gate_linerSearch(n:i64,mut an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gate_liner_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bubblesort.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | let mut x = v[(n - j) as usize]; [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: `n` [INFO] [stdout] --> src/que.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/que.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn que(v: Vec<(String, i64)>, n: i64, t: i64) -> Vec<(String, i64)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/liner_search.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/liner_search.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/liner_search.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/liner_search.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn gate_linerSearch(n:i64,mut an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/liner_search.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binary_search.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sn = read_vec::(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/binary_search.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn binary_search(n:i64,mut sn:Vec,t:i64,tn:Vec)->i64{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/Exhaustive_serach.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let n = read::(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an` [INFO] [stdout] --> src/Exhaustive_serach.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let an = read_vec::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_an` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/Exhaustive_serach.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let m = read::(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bn` [INFO] [stdout] --> src/Exhaustive_serach.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let bn = read::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `temp_v` is never read [INFO] [stdout] --> src/partition.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut temp_v = 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: function `read` is never used [INFO] [stdout] --> src/insertionsort.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read() -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/insertionsort.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/insertionsort.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/insertionsort.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/que.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MAX_SIZE: usize = 50; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Que` is never constructed [INFO] [stdout] --> src/que.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Que { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `isEmpty`, `isFull`, `enqueue`, and `dequeue` are never used [INFO] [stdout] --> src/que.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Que { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | fn new(n: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn enqueue(&mut self, x: i64) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn dequeue(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/binary_search.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read() -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/binary_search.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/binary_search.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/binary_search.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/iterator.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/Exhaustive_serach.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Exhaustive_serach` should have a snake case name [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Exhaustive_serach; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `exhaustive_serach` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/que.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isFull` should have a snake case name [INFO] [stdout] --> src/que.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/stack.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isFull` should have a snake case name [INFO] [stdout] --> src/stack.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn isFull(&self) -> bool { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `linerSearch` should have a snake case name [INFO] [stdout] --> src/liner_search.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn linerSearch(n:i64,an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `liner_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gate_linerSearch` should have a snake case name [INFO] [stdout] --> src/liner_search.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn gate_linerSearch(n:i64,mut an:Vec,m:i64,bn:Vec) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gate_liner_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ants_book::selection_sort::*` [INFO] [stdout] --> tests/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use Ants_book::selection_sort::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s: String = read(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/scaneer.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/scaneer.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s: String = read(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec` is never used [INFO] [stdout] --> src/scaneer.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_vec() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_vec2` is never used [INFO] [stdout] --> src/scaneer.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn read_vec2(n: u32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "33537a023c40e9d841b3f5d9b75b519ff66479fb3ffd84586c88d5f128d77a58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33537a023c40e9d841b3f5d9b75b519ff66479fb3ffd84586c88d5f128d77a58", kill_on_drop: false }` [INFO] [stdout] 33537a023c40e9d841b3f5d9b75b519ff66479fb3ffd84586c88d5f128d77a58