[INFO] cloning repository https://github.com/MariiaRa/algorithms-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MariiaRa/algorithms-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMariiaRa%2Falgorithms-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMariiaRa%2Falgorithms-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] be066c396add23e23609008bd931474d39a3b48c [INFO] checking MariiaRa/algorithms-rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMariiaRa%2Falgorithms-rust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MariiaRa/algorithms-rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MariiaRa/algorithms-rust [INFO] finished tweaking git repo https://github.com/MariiaRa/algorithms-rust [INFO] tweaked toml for git repo https://github.com/MariiaRa/algorithms-rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/MariiaRa/algorithms-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62d692228e4f0374c82f19d564ebe80c989d6ceaa14c2f70b75cc8beb64f63c9 [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" "62d692228e4f0374c82f19d564ebe80c989d6ceaa14c2f70b75cc8beb64f63c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62d692228e4f0374c82f19d564ebe80c989d6ceaa14c2f70b75cc8beb64f63c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62d692228e4f0374c82f19d564ebe80c989d6ceaa14c2f70b75cc8beb64f63c9", kill_on_drop: false }` [INFO] [stdout] 62d692228e4f0374c82f19d564ebe80c989d6ceaa14c2f70b75cc8beb64f63c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d7f696dfa8c7b7f81b70c98725c880f22af2aecda092cbe0b49ce42afeded4c [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" "3d7f696dfa8c7b7f81b70c98725c880f22af2aecda092cbe0b49ce42afeded4c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking algorithms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Queue` [INFO] [stdout] --> src/main.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dataStructures::{List, Queue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Queue` [INFO] [stdout] --> src/main.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dataStructures::{List, Queue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/dataStructures/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/dataStructures/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ----- matches any value [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ----- matches any value [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ----- matches any value [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ----- matches any value [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/sorting/mod.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 325 | max: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Greater` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Less` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sorting/mod.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | for i in 1..number_of_digits+1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/sorting/mod.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 325 | max: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sorting/mod.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | for i in 1..number_of_digits+1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Greater` [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Less` [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sorting/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | mut elements: Vec, [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: variable does not need to be mutable [INFO] [stdout] --> src/sorting/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | mut elements: Vec, [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: function is never used: `partition_pivot_left` [INFO] [stdout] --> src/sorting/mod.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn partition_pivot_left(elements: &mut [T], f: &F) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counting_sort_two` [INFO] [stdout] --> src/sorting/mod.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn counting_sort_two(arr: &mut [T], min: usize, max: usize, key: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `radix_sort_two` [INFO] [stdout] --> src/sorting/mod.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 415 | pub fn radix_sort_two(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Stack` [INFO] [stdout] --> src/dataStructures/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_capacity` [INFO] [stdout] --> src/dataStructures/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn with_capacity(maxsize: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/dataStructures/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/dataStructures/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn push(&mut self, item: T) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/dataStructures/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Link` [INFO] [stdout] --> src/dataStructures/mod.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type Link = Option>>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `QueueNode` [INFO] [stdout] --> src/dataStructures/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct QueueNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Queue` [INFO] [stdout] --> src/dataStructures/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dataStructures/mod.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new() -> Queue { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_empty` [INFO] [stdout] --> src/dataStructures/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/dataStructures/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enqueue` [INFO] [stdout] --> src/dataStructures/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn enqueue(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dequeue` [INFO] [stdout] --> src/dataStructures/mod.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn dequeue(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dequeue_back` [INFO] [stdout] --> src/dataStructures/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn dequeue_back(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last` [INFO] [stdout] --> src/dataStructures/mod.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | last: Option>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TreeNode` [INFO] [stdout] --> src/dataStructures/mod.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dataStructures/mod.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(key: K, item: V) -> Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/dataStructures/mod.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn contains(&self, key: K) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/dataStructures/mod.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn get(&self, key: K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/dataStructures/mod.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn insert(&mut self, key: K, item: V) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/dataStructures/mod.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/dataStructures/mod.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn remove(&mut self, key: K) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_min` [INFO] [stdout] --> src/dataStructures/mod.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 325 | fn delete_min(&mut self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/dataStructures/mod.rs:346:8 [INFO] [stdout] | [INFO] [stdout] 346 | fn min(&mut self) -> Option>> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dataStructures` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod dataStructures; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `data_structures` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `partition_pivot_left` [INFO] [stdout] --> src/sorting/mod.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn partition_pivot_left(elements: &mut [T], f: &F) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counting_sort_two` [INFO] [stdout] --> src/sorting/mod.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn counting_sort_two(arr: &mut [T], min: usize, max: usize, key: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `radix_sort_two` [INFO] [stdout] --> src/sorting/mod.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 415 | pub fn radix_sort_two(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Stack` [INFO] [stdout] --> src/dataStructures/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_capacity` [INFO] [stdout] --> src/dataStructures/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn with_capacity(maxsize: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/dataStructures/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/dataStructures/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn push(&mut self, item: T) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/dataStructures/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Link` [INFO] [stdout] --> src/dataStructures/mod.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type Link = Option>>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `QueueNode` [INFO] [stdout] --> src/dataStructures/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct QueueNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Queue` [INFO] [stdout] --> src/dataStructures/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dataStructures/mod.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new() -> Queue { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_empty` [INFO] [stdout] --> src/dataStructures/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/dataStructures/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enqueue` [INFO] [stdout] --> src/dataStructures/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn enqueue(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dequeue` [INFO] [stdout] --> src/dataStructures/mod.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn dequeue(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dequeue_back` [INFO] [stdout] --> src/dataStructures/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn dequeue_back(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last` [INFO] [stdout] --> src/dataStructures/mod.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | last: Option>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TreeNode` [INFO] [stdout] --> src/dataStructures/mod.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dataStructures/mod.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(key: K, item: V) -> Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/dataStructures/mod.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn contains(&self, key: K) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/dataStructures/mod.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn get(&self, key: K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/dataStructures/mod.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn insert(&mut self, key: K, item: V) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/dataStructures/mod.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/dataStructures/mod.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn remove(&mut self, key: K) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_min` [INFO] [stdout] --> src/dataStructures/mod.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 325 | fn delete_min(&mut self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/dataStructures/mod.rs:346:8 [INFO] [stdout] | [INFO] [stdout] 346 | fn min(&mut self) -> Option>> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `dataStructures` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod dataStructures; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `data_structures` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Equal => true, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Less => match self.left { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Greater => match self.right { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | Equal => Some(&self.data), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | Less => match self.right { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Equal => {}, // do nothing; item is already inside the tree [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | Less => match self.right { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Greater => match self.left { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Equal` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Equal => match (&node.left, &node.right) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Greater` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | Greater => node.remove(key), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Less` should have a snake case name [INFO] [stdout] --> src/dataStructures/mod.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | Less => {} [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `less` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.14s [INFO] running `Command { std: "docker" "inspect" "3d7f696dfa8c7b7f81b70c98725c880f22af2aecda092cbe0b49ce42afeded4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d7f696dfa8c7b7f81b70c98725c880f22af2aecda092cbe0b49ce42afeded4c", kill_on_drop: false }` [INFO] [stdout] 3d7f696dfa8c7b7f81b70c98725c880f22af2aecda092cbe0b49ce42afeded4c