[INFO] cloning repository https://github.com/akiradeveloper/rust-comp-snippets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/akiradeveloper/rust-comp-snippets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakiradeveloper%2Frust-comp-snippets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakiradeveloper%2Frust-comp-snippets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6011684fd8edcfac56ea6235f9e87666659ef4fc [INFO] checking akiradeveloper/rust-comp-snippets/6011684fd8edcfac56ea6235f9e87666659ef4fc against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakiradeveloper%2Frust-comp-snippets" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/akiradeveloper/rust-comp-snippets on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/akiradeveloper/rust-comp-snippets [INFO] finished tweaking git repo https://github.com/akiradeveloper/rust-comp-snippets [INFO] tweaked toml for git repo https://github.com/akiradeveloper/rust-comp-snippets written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/akiradeveloper/rust-comp-snippets 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cargo-snippet v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4c0696b592820f51f716bae3b341e80a833c287d0b5591161f1478eadf50213 [INFO] running `Command { std: "docker" "start" "-a" "f4c0696b592820f51f716bae3b341e80a833c287d0b5591161f1478eadf50213", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4c0696b592820f51f716bae3b341e80a833c287d0b5591161f1478eadf50213", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4c0696b592820f51f716bae3b341e80a833c287d0b5591161f1478eadf50213", kill_on_drop: false }` [INFO] [stdout] f4c0696b592820f51f716bae3b341e80a833c287d0b5591161f1478eadf50213 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f6fc7e6b3c61bd947278fe762e49b5614f3fa9d8ca7ffb417cb9dd742827c01 [INFO] running `Command { std: "docker" "start" "-a" "9f6fc7e6b3c61bd947278fe762e49b5614f3fa9d8ca7ffb417cb9dd742827c01", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling cargo-snippet v0.5.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rust-comp-snippets v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(plugin)] [INFO] [stdout] | ^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: plugins are no longer supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(plugin)] [INFO] [stdout] | ^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: plugins are no longer supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/graph/lca.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (v0 == v1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (v0 == v1) { [INFO] [stdout] 68 + if v0 == v1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/graph/dijkstra_queue.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/macros.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max,min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `chmax` [INFO] [stdout] --> src/macros.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! chmax { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `chmin` [INFO] [stdout] --> src/macros.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | macro_rules! chmin { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `max` [INFO] [stdout] --> src/macros.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | macro_rules! max { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `min` [INFO] [stdout] --> src/macros.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | macro_rules! min { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fft`, `karatsuba`, and `ntt` [INFO] [stdout] --> src/polynomial/bench.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ntt, fft, karatsuba}; [INFO] [stdout] | ^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MAX_RUQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct MAX_RUQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MaxRuq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MIN_RUQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | struct MIN_RUQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MinRuq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MAX_RAQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct MAX_RAQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MaxRaq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MIN_RAQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | struct MIN_RAQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MinRaq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `BTreeSet` [INFO] [stdout] --> src/skiplist.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{BTreeMap, BTreeSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `skiplist::*` [INFO] [stdout] --> src/skiplist.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 430 | use skiplist::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeSet` [INFO] [stdout] --> src/skiplist.rs:431:5 [INFO] [stdout] | [INFO] [stdout] 431 | use std::collections::BTreeSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/graph/lca.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (v0 == v1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (v0 == v1) { [INFO] [stdout] 68 + if v0 == v1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/graph/zenho.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/graph/dijkstra_queue.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/macros.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max,min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MAX_RUQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct MAX_RUQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MaxRuq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MIN_RUQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | struct MIN_RUQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MinRuq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MAX_RAQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct MAX_RAQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MaxRaq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MIN_RAQ` should have an upper camel case name [INFO] [stdout] --> src/seg_lazy.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | struct MIN_RAQ; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MinRaq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `BTreeSet` [INFO] [stdout] --> src/skiplist.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{BTreeMap, BTreeSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/skiplist.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | println!("{}",ss.connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 61 | println!("{}",ss.join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/combination.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 182 | fn nBk(&self, n: i64, k: i64) -> i64 { [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: `k` [INFO] [stdout] --> src/combination.rs:182:27 [INFO] [stdout] | [INFO] [stdout] 182 | fn nBk(&self, n: i64, k: i64) -> i64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/cumsum.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let b = line.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/graph/lowlink.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut g = vec![vec![];n]; [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/graph/lowlink.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut used = vec![false; n]; [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/graph/lowlink.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ord = vec![0; n]; [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/graph/lowlink.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut low = vec![0; n]; [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/grundy.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut n = xs.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/seg_lazy.rs:114:23 [INFO] [stdout] | [INFO] [stdout] 114 | fn ap(f: Self::F, x: Self::Monoid) -> Self::Monoid { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/seg_lazy.rs:117:28 [INFO] [stdout] | [INFO] [stdout] 117 | fn compose(f: Self::F, g: Self::F) -> Self::F { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/seg_lazy.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | fn ap(f: Self::F, x: Self::Monoid) -> Self::Monoid { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/seg_lazy.rs:153:28 [INFO] [stdout] | [INFO] [stdout] 153 | fn compose(f: Self::F, g: Self::F) -> Self::F { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/skiplist.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | let mut it = self.iter(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/skiplist.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | println!("{}",ss.connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 61 | println!("{}",ss.join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub mod template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub mod template; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/treap.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | let (t2, t3) = split(rest, 1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wavelet_matrix.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut x = x; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0557`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-comp-snippets` (lib) due to 2 previous errors; 33 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/combination.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 182 | fn nBk(&self, n: i64, k: i64) -> i64 { [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: `k` [INFO] [stdout] --> src/combination.rs:182:27 [INFO] [stdout] | [INFO] [stdout] 182 | fn nBk(&self, n: i64, k: i64) -> i64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/cumsum.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let b = line.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/doubling.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut f = Doubling::new(F, 5); [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: `ok` [INFO] [stdout] --> src/garner.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let ok = pre_garner(&mut rm); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/graph/tsort.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut e = vec![ [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/graph/lowlink.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut g = vec![vec![];n]; [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/graph/lowlink.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut used = vec![false; n]; [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/graph/lowlink.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ord = vec![0; n]; [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/graph/lowlink.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut low = vec![0; n]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/graph/lca.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let tree = vec![ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/graph/lca.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut e = vec![ [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/graph/zenho.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut cum: CumRL = CumRL::new(v); [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/grundy.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut n = xs.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/seg2d.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/seg_lazy.rs:114:23 [INFO] [stdout] | [INFO] [stdout] 114 | fn ap(f: Self::F, x: Self::Monoid) -> Self::Monoid { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/seg_lazy.rs:117:28 [INFO] [stdout] | [INFO] [stdout] 117 | fn compose(f: Self::F, g: Self::F) -> Self::F { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/seg_lazy.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | fn ap(f: Self::F, x: Self::Monoid) -> Self::Monoid { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/seg_lazy.rs:153:28 [INFO] [stdout] | [INFO] [stdout] 153 | fn compose(f: Self::F, g: Self::F) -> Self::F { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | let mut t1 = vec![1,2,3,4]; [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/sequence.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let mut t2 = vec![1,2,3,4]; [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/sequence.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | let mut t3 = vec![1,3,2,4,1]; [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/skiplist.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | let mut it = self.iter(); [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/skiplist.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | let mut data = vec![920,265,659]; [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/slide_win.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut a = vec![3,2,1,1,2,3]; [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/string/kmp.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut p = vec![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/string/kmp.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut s = vec![0;1000000]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/string/roliha.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | for i in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub mod template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub mod template; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/treap.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | let (t2, t3) = split(rest, 1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/two_pointer.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut f = |i:usize, j:usize| { [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/wavelet_matrix.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut x = x; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/wavelet_matrix.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | for i in 0..500 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/wavelet_matrix.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | for i in 0..1000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0557`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-comp-snippets` (lib test) due to 2 previous errors; 45 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9f6fc7e6b3c61bd947278fe762e49b5614f3fa9d8ca7ffb417cb9dd742827c01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f6fc7e6b3c61bd947278fe762e49b5614f3fa9d8ca7ffb417cb9dd742827c01", kill_on_drop: false }` [INFO] [stdout] 9f6fc7e6b3c61bd947278fe762e49b5614f3fa9d8ca7ffb417cb9dd742827c01