[INFO] cloning repository https://github.com/safrannn/leetcode_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/safrannn/leetcode_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsafrannn%2Fleetcode_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsafrannn%2Fleetcode_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 505b16519564b68d159a4f191151a0b9c0c72d17 [INFO] checking safrannn/leetcode_rust against try#c4ca24658d934444a28db36abebef17a8651701a for pr-144156 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsafrannn%2Fleetcode_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/safrannn/leetcode_rust [INFO] finished tweaking git repo https://github.com/safrannn/leetcode_rust [INFO] tweaked toml for git repo https://github.com/safrannn/leetcode_rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/safrannn/leetcode_rust on toolchain c4ca24658d934444a28db36abebef17a8651701a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/safrannn/leetcode_rust 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" "+c4ca24658d934444a28db36abebef17a8651701a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustgym-gvc v0.1.0 [INFO] [stderr] Downloaded rustgym-util v0.1.0 [INFO] [stderr] Downloaded leetcode_prelude v0.2.3 [INFO] [stderr] Downloaded assert_approx_eq v1.1.0 [INFO] [stderr] Downloaded leetcode_test v0.1.2 [INFO] [stderr] Downloaded rustgym-testcpp v0.1.0 [INFO] [stderr] Downloaded pretty_assertions v0.6.1 [INFO] [stderr] Downloaded gvc-sys v0.1.1 [INFO] [stderr] Downloaded rustgym v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01bc040a444262b94bb7c65c6f1d6c38fbcb8fda6e39666841fe92eaeeb16498 [INFO] running `Command { std: "docker" "start" "-a" "01bc040a444262b94bb7c65c6f1d6c38fbcb8fda6e39666841fe92eaeeb16498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01bc040a444262b94bb7c65c6f1d6c38fbcb8fda6e39666841fe92eaeeb16498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01bc040a444262b94bb7c65c6f1d6c38fbcb8fda6e39666841fe92eaeeb16498", kill_on_drop: false }` [INFO] [stdout] 01bc040a444262b94bb7c65c6f1d6c38fbcb8fda6e39666841fe92eaeeb16498 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d8e1d6eefa8e4cd9a4de513dd34a3dbb1d309bc36370c9932d466c0857b8760 [INFO] running `Command { std: "docker" "start" "-a" "9d8e1d6eefa8e4cd9a4de513dd34a3dbb1d309bc36370c9932d466c0857b8760", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling bindgen v0.53.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Checking rustgym-util v0.1.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Checking pretty_assertions v0.6.1 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling rustgym-testcpp v0.1.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling leetcode_test v0.1.2 [INFO] [stderr] Checking leetcode_prelude v0.2.3 [INFO] [stderr] Compiling gvc-sys v0.1.1 [INFO] [stderr] Checking rustgym-gvc v0.1.0 [INFO] [stderr] Checking rustgym v0.1.7 [INFO] [stderr] Checking leetcode_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `_1207_unique_number_of_occurrences` [INFO] [stdout] --> src/lib.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 309 | mod _1207_unique_number_of_occurrences; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `_1207_unique_number_of_occurrences`, create file "src/_1207_unique_number_of_occurrences.rs" or "src/_1207_unique_number_of_occurrences/mod.rs" [INFO] [stdout] = note: if there is a `mod _1207_unique_number_of_occurrences` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `_1207_unique_number_of_occurrences` [INFO] [stdout] --> src/lib.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 309 | mod _1207_unique_number_of_occurrences; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `_1207_unique_number_of_occurrences`, create file "src/_1207_unique_number_of_occurrences.rs" or "src/_1207_unique_number_of_occurrences/mod.rs" [INFO] [stdout] = note: if there is a `mod _1207_unique_number_of_occurrences` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switched` [INFO] [stdout] --> src/_0031_next_permutation.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut i, mut switched) = (nums.len() - 1, false); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_switched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/_0031_next_permutation.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut i, mut switched) = (nums.len() - 1, false); [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] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(Solution::next_permutation(vec![1, 2, 3]), vec![1, 3, 2]); [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^ expected `&mut Vec`, found `Vec<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/_0031_next_permutation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0402_remove_k_digits.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for (i, c) in num.chars().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:26:59 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(Solution::next_permutation(vec![1, 2, 3]), vec![1, 3, 2]); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `()`, found `Vec<{integer}>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:27:43 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(Solution::next_permutation(vec![3, 2, 1]), vec![1, 2, 3]); [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^ expected `&mut Vec`, found `Vec<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/_0031_next_permutation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:27:59 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(Solution::next_permutation(vec![3, 2, 1]), vec![1, 2, 3]); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `()`, found `Vec<{integer}>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:28:43 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(Solution::next_permutation(vec![1, 1, 5]), vec![1, 5, 1]); [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^ expected `&mut Vec`, found `Vec<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/_0031_next_permutation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0031_next_permutation.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(Solution::next_permutation(vec![1, 1, 5]), vec![1, 5, 1]); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `()`, found `Vec<{integer}>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode_rust` (lib) due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `switched` [INFO] [stdout] --> src/_0031_next_permutation.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut i, mut switched) = (nums.len() - 1, false); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_switched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/_0031_next_permutation.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut i, mut switched) = (nums.len() - 1, false); [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: `i` [INFO] [stdout] --> src/_0402_remove_k_digits.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for (i, c) in num.chars().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode_rust` (lib test) due to 7 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9d8e1d6eefa8e4cd9a4de513dd34a3dbb1d309bc36370c9932d466c0857b8760", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d8e1d6eefa8e4cd9a4de513dd34a3dbb1d309bc36370c9932d466c0857b8760", kill_on_drop: false }` [INFO] [stdout] 9d8e1d6eefa8e4cd9a4de513dd34a3dbb1d309bc36370c9932d466c0857b8760