[INFO] cloning repository https://github.com/virct/leetcode-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/virct/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f450d54f913568317d3ffbc5bddfe80fe236994 [INFO] testing virct/leetcode-rs against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/virct/leetcode-rs on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/virct/leetcode-rs [INFO] finished tweaking git repo https://github.com/virct/leetcode-rs [INFO] tweaked toml for git repo https://github.com/virct/leetcode-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/virct/leetcode-rs 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" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e88bf2056b64bd627b8a4c0d151e3e21f9ced74b783d781961a606586ea0c42d [INFO] running `Command { std: "docker" "start" "-a" "e88bf2056b64bd627b8a4c0d151e3e21f9ced74b783d781961a606586ea0c42d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e88bf2056b64bd627b8a4c0d151e3e21f9ced74b783d781961a606586ea0c42d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e88bf2056b64bd627b8a4c0d151e3e21f9ced74b783d781961a606586ea0c42d", kill_on_drop: false }` [INFO] [stdout] e88bf2056b64bd627b8a4c0d151e3e21f9ced74b783d781961a606586ea0c42d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4124b1d1d2b746aabc2ece93d147dfe031b4b859965a29bfa13bbd3bc3353ea2 [INFO] running `Command { std: "docker" "start" "-a" "4124b1d1d2b746aabc2ece93d147dfe031b4b859965a29bfa13bbd3bc3353ea2", kill_on_drop: false }` [INFO] [stderr] Compiling hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::util::tree::*` [INFO] [stdout] --> src/leetcode/flatten.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util::tree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/leetcode/flatten.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/leetcode/flatten.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/leetcode/update_matrix.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | if (matrix[y][x] == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - if (matrix[y][x] == 1) { [INFO] [stdout] 11 + if matrix[y][x] == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `r#unsafe` [INFO] [stdout] --> src/offer/delete_node.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | #[cfg(feature = "unsafe")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `r#unsafe` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `r#unsafe` [INFO] [stdout] --> src/offer/delete_node.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | #[cfg(not(feature = "unsafe"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `r#unsafe` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode/pattern_matching.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | let b_words = (len - counta * a_words) / countb; [INFO] [stdout] 21 | | a_words += 1; [INFO] [stdout] 22 | | //give up [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 24 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/leetcode/generate_trees.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let left = Self::help(left, v - 1, res); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/leetcode/generate_trees.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let right = Self::help(v + 1, right, res); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode/generate_trees.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut root = Rc::new(RefCell::new(TreeNode::new(v))); [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/leetcode/merge_k_lists.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge_k_lists(mut lists: Vec>>) -> Option> { [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/leetcode/min_increment_for_unique.rs:64:38 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn min_increment_for_unique3(mut a: Vec) -> i32 { [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/leetcode/min_increment_for_unique.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn min_increment_for_unique2(mut a: Vec) -> i32 { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/leetcode/pattern_matching.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | let mut first = 'a'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/leetcode/pattern_matching.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | first = c; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (bin "hello_world"); 17 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to parse process output: `/opt/rustwide/rustup-home/toolchains/1.86.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name hello_world --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=564f436f26d96294 -C extra-filename=-e36dc736d3c06705 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints=warn` (exit status: 0) [INFO] running `Command { std: "docker" "inspect" "4124b1d1d2b746aabc2ece93d147dfe031b4b859965a29bfa13bbd3bc3353ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4124b1d1d2b746aabc2ece93d147dfe031b4b859965a29bfa13bbd3bc3353ea2", kill_on_drop: false }` [INFO] [stdout] 4124b1d1d2b746aabc2ece93d147dfe031b4b859965a29bfa13bbd3bc3353ea2