[INFO] cloning repository https://github.com/vldm/rbf-dos-neural-network [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vldm/rbf-dos-neural-network" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvldm%2Frbf-dos-neural-network", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvldm%2Frbf-dos-neural-network'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d28481d3525fd8206a169cfa6f6f648e02fa21b9 [INFO] checking vldm/rbf-dos-neural-network against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvldm%2Frbf-dos-neural-network" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vldm/rbf-dos-neural-network [INFO] finished tweaking git repo https://github.com/vldm/rbf-dos-neural-network [INFO] tweaked toml for git repo https://github.com/vldm/rbf-dos-neural-network written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vldm/rbf-dos-neural-network on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vldm/rbf-dos-neural-network 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c851f7e893ba1d8a3ee24ed1e07a4672b894842c72fd6b90e351e1c5d41f42d9 [INFO] running `Command { std: "docker" "start" "-a" "c851f7e893ba1d8a3ee24ed1e07a4672b894842c72fd6b90e351e1c5d41f42d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c851f7e893ba1d8a3ee24ed1e07a4672b894842c72fd6b90e351e1c5d41f42d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c851f7e893ba1d8a3ee24ed1e07a4672b894842c72fd6b90e351e1c5d41f42d9", kill_on_drop: false }` [INFO] [stdout] c851f7e893ba1d8a3ee24ed1e07a4672b894842c72fd6b90e351e1c5d41f42d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 467288cbf9c747245170d4318762ba76133da5e9ed7c76aeac547bcbbb479e41 [INFO] running `Command { std: "docker" "start" "-a" "467288cbf9c747245170d4318762ba76133da5e9ed7c76aeac547bcbbb479e41", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking wide v0.7.4 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Checking num_enum v0.5.7 [INFO] [stderr] Checking num-complex v0.4.1 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking simba v0.7.1 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking nalgebra v0.31.0 [INFO] [stderr] Checking dos-rbf-neural v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Borrow`, `Cow`, `HashMap`, `HashSet`, `Iter`, `env`, `mem::transmute_copy`, and `process::exit` [INFO] [stdout] --> src/main.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | ...e, env, path::{PathBuf, Path, Iter}, io::{BufReader, BufRead, BufWriter}, collections::{HashSet, HashMap, BTreeMap}, borrow::{Cow, Borrow}, process::exit, mem::transmute_copy, t... [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^ ^^^^^^^ ^^^ ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `distributions::Slice` [INFO] [stdout] --> src/main.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{SeedableRng, Rng, prelude::SliceRandom, distributions::Slice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:82:33 [INFO] [stdout] | [INFO] [stdout] 82 | generator.gen_range((lo..hi)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - generator.gen_range((lo..hi)) [INFO] [stdout] 82 + generator.gen_range(lo..hi ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | let output = (&self.weights * &hidden_output); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - let output = (&self.weights * &hidden_output); [INFO] [stdout] 207 + let output = &self.weights * &hidden_output ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Borrow`, `Cow`, `HashMap`, `HashSet`, `Iter`, `env`, `mem::transmute_copy`, and `process::exit` [INFO] [stdout] --> src/main.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | ...e, env, path::{PathBuf, Path, Iter}, io::{BufReader, BufRead, BufWriter}, collections::{HashSet, HashMap, BTreeMap}, borrow::{Cow, Borrow}, process::exit, mem::transmute_copy, t... [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^ ^^^^^^^ ^^^ ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `distributions::Slice` [INFO] [stdout] --> src/main.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{SeedableRng, Rng, prelude::SliceRandom, distributions::Slice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:82:33 [INFO] [stdout] | [INFO] [stdout] 82 | generator.gen_range((lo..hi)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - generator.gen_range((lo..hi)) [INFO] [stdout] 82 + generator.gen_range(lo..hi ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | let output = (&self.weights * &hidden_output); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - let output = (&self.weights * &hidden_output); [INFO] [stdout] 207 + let output = &self.weights * &hidden_output ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut this = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let n = self.centers.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut this = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let n = self.centers.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let mut test_data_vectored:Vec<_> = test_data.iter().map(|r| [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:763:9 [INFO] [stdout] | [INFO] [stdout] 763 | _ => todo!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:763:9 [INFO] [stdout] | [INFO] [stdout] 627 | Args::Example => example(), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 628 | / Args::Train { [INFO] [stdout] 629 | | max_epochs, [INFO] [stdout] 630 | | num_networks, [INFO] [stdout] 631 | | start_seed, [INFO] [stdout] ... | [INFO] [stdout] 635 | | epochs_stats: _epochs_stats, [INFO] [stdout] 636 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 646 | / Args::Verify { [INFO] [stdout] 647 | | file, [INFO] [stdout] 648 | | model, [INFO] [stdout] 649 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 659 | / Args::SampleInfo { [INFO] [stdout] 660 | | file, [INFO] [stdout] 661 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 763 | _ => todo!() [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:758:17 [INFO] [stdout] | [INFO] [stdout] 758 | let mut train_data = KDDSchemaReader::test_data(&PathBuf::from(train_data))?; [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/main.rs:760:17 [INFO] [stdout] | [INFO] [stdout] 760 | let mut test_data = KDDSchemaReader::test_data(&PathBuf::from(verify_data))?; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_train_len` [INFO] [stdout] --> src/main.rs:832:9 [INFO] [stdout] | [INFO] [stdout] 832 | let total_train_len = train_data.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_train_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:869:39 [INFO] [stdout] | [INFO] [stdout] 869 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:869:58 [INFO] [stdout] | [INFO] [stdout] 869 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:895:39 [INFO] [stdout] | [INFO] [stdout] 895 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:895:58 [INFO] [stdout] | [INFO] [stdout] 895 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:921:39 [INFO] [stdout] | [INFO] [stdout] 921 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:921:58 [INFO] [stdout] | [INFO] [stdout] 921 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_accuracy` is never used [INFO] [stdout] --> src/main.rs:323:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl RBFNetwork { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 323 | fn cmp_accuracy(&self, other: &Self, test_data: &[(DVector, DVector)]) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:501:9 [INFO] [stdout] | [INFO] [stdout] 501 | / #[clap(long= "file")] [INFO] [stdout] 502 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:503:9 [INFO] [stdout] | [INFO] [stdout] 503 | model: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:507:9 [INFO] [stdout] | [INFO] [stdout] 507 | / #[clap(long= "model")] [INFO] [stdout] 508 | | model: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | / #[clap(long= "file")] [INFO] [stdout] 511 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 515 | / #[clap(long= "model")] [INFO] [stdout] 516 | | model: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:517:9 [INFO] [stdout] | [INFO] [stdout] 517 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:521:9 [INFO] [stdout] | [INFO] [stdout] 521 | file: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 535 | / #[clap(long= "file")] [INFO] [stdout] 536 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 538 | / #[clap(long= "output")] [INFO] [stdout] 539 | | output: String, [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | source: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:548:9 [INFO] [stdout] | [INFO] [stdout] 548 | destination: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | / #[clap(long= "train-data")] [INFO] [stdout] 555 | | train_data: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | / #[clap(long= "verify-data")] [INFO] [stdout] 558 | | verify_data: String, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | / #[clap(long= "output")] [INFO] [stdout] 561 | | output: String, [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let mut test_data_vectored:Vec<_> = test_data.iter().map(|r| [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dos-rbf-neural` (bin "dos-rbf-neural") due to 14 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:763:9 [INFO] [stdout] | [INFO] [stdout] 763 | _ => todo!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:763:9 [INFO] [stdout] | [INFO] [stdout] 627 | Args::Example => example(), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 628 | / Args::Train { [INFO] [stdout] 629 | | max_epochs, [INFO] [stdout] 630 | | num_networks, [INFO] [stdout] 631 | | start_seed, [INFO] [stdout] ... | [INFO] [stdout] 635 | | epochs_stats: _epochs_stats, [INFO] [stdout] 636 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 646 | / Args::Verify { [INFO] [stdout] 647 | | file, [INFO] [stdout] 648 | | model, [INFO] [stdout] 649 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 659 | / Args::SampleInfo { [INFO] [stdout] 660 | | file, [INFO] [stdout] 661 | | } => { [INFO] [stdout] | |_________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 763 | _ => todo!() [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:758:17 [INFO] [stdout] | [INFO] [stdout] 758 | let mut train_data = KDDSchemaReader::test_data(&PathBuf::from(train_data))?; [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/main.rs:760:17 [INFO] [stdout] | [INFO] [stdout] 760 | let mut test_data = KDDSchemaReader::test_data(&PathBuf::from(verify_data))?; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_train_len` [INFO] [stdout] --> src/main.rs:832:9 [INFO] [stdout] | [INFO] [stdout] 832 | let total_train_len = train_data.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_train_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:869:39 [INFO] [stdout] | [INFO] [stdout] 869 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:869:58 [INFO] [stdout] | [INFO] [stdout] 869 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:895:39 [INFO] [stdout] | [INFO] [stdout] 895 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:895:58 [INFO] [stdout] | [INFO] [stdout] 895 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `catch_per_cluster` [INFO] [stdout] --> src/main.rs:921:39 [INFO] [stdout] | [INFO] [stdout] 921 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_catch_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `miss_per_cluster` [INFO] [stdout] --> src/main.rs:921:58 [INFO] [stdout] | [INFO] [stdout] 921 | let (accuracy, error, catch_per_cluster, miss_per_cluster) = statis_custom(&network, &test_data, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_miss_per_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_accuracy` is never used [INFO] [stdout] --> src/main.rs:323:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl RBFNetwork { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 323 | fn cmp_accuracy(&self, other: &Self, test_data: &[(DVector, DVector)]) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:501:9 [INFO] [stdout] | [INFO] [stdout] 501 | / #[clap(long= "file")] [INFO] [stdout] 502 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:503:9 [INFO] [stdout] | [INFO] [stdout] 503 | model: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:507:9 [INFO] [stdout] | [INFO] [stdout] 507 | / #[clap(long= "model")] [INFO] [stdout] 508 | | model: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | / #[clap(long= "file")] [INFO] [stdout] 511 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 515 | / #[clap(long= "model")] [INFO] [stdout] 516 | | model: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:517:9 [INFO] [stdout] | [INFO] [stdout] 517 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:521:9 [INFO] [stdout] | [INFO] [stdout] 521 | file: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 535 | / #[clap(long= "file")] [INFO] [stdout] 536 | | file: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 538 | / #[clap(long= "output")] [INFO] [stdout] 539 | | output: String, [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | source: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:548:9 [INFO] [stdout] | [INFO] [stdout] 548 | destination: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | / #[clap(long= "train-data")] [INFO] [stdout] 555 | | train_data: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | / #[clap(long= "verify-data")] [INFO] [stdout] 558 | | verify_data: String, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | / #[clap(long= "output")] [INFO] [stdout] 561 | | output: String, [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dos-rbf-neural` (bin "dos-rbf-neural" test) due to 14 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "467288cbf9c747245170d4318762ba76133da5e9ed7c76aeac547bcbbb479e41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "467288cbf9c747245170d4318762ba76133da5e9ed7c76aeac547bcbbb479e41", kill_on_drop: false }` [INFO] [stdout] 467288cbf9c747245170d4318762ba76133da5e9ed7c76aeac547bcbbb479e41