[INFO] cloning repository https://github.com/yxxx5/leetcode_rusrt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yxxx5/leetcode_rusrt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31eca0197ae14438fed9f6280b93bbc4ecc26e9b [INFO] documenting yxxx5/leetcode_rusrt against beta-2022-05-20 for beta-1.62-rustdoc-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yxxx5/leetcode_rusrt on toolchain beta-2022-05-20 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-05-20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yxxx5/leetcode_rusrt [INFO] finished tweaking git repo https://github.com/yxxx5/leetcode_rusrt [INFO] tweaked toml for git repo https://github.com/yxxx5/leetcode_rusrt written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/yxxx5/leetcode_rusrt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-05-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd307fdc2627cb25d6ed200bff3c775f8e825590ec6d22a86c255874328b472f [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" "fd307fdc2627cb25d6ed200bff3c775f8e825590ec6d22a86c255874328b472f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd307fdc2627cb25d6ed200bff3c775f8e825590ec6d22a86c255874328b472f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd307fdc2627cb25d6ed200bff3c775f8e825590ec6d22a86c255874328b472f", kill_on_drop: false }` [INFO] [stdout] fd307fdc2627cb25d6ed200bff3c775f8e825590ec6d22a86c255874328b472f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-05-20" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc3abba83c4480b4ec2736b03b3efb94da3b25ec1184c09ef8590b33a3e1ddd0 [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" "cc3abba83c4480b4ec2736b03b3efb94da3b25ec1184c09ef8590b33a3e1ddd0", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling leetcode_test v0.1.2 [INFO] [stderr] Checking leetcode_prelude v0.2.3 [INFO] [stderr] Documenting leetcode_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (i < 10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (i < 10) { [INFO] [stdout] 6 + if i < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | if (len == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if (len == 1) { [INFO] [stdout] 18 + if len == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/majority_element/mod.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cnt:i32 = 0;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | if (cnt == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (cnt == 0) { [INFO] [stdout] 9 + if cnt == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | if (res == x) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - if (res == x) { [INFO] [stdout] 13 + if res == x { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | if (nums1[i1] == nums2[i2]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (nums1[i1] == nums2[i2]) { [INFO] [stdout] 19 + if nums1[i1] == nums2[i2] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/my_sqrt/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | while (left < right) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - while (left < right) { [INFO] [stdout] 14 + while left < right { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/smallest_range_i/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | if (max - k <= min + k) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (max - k <= min + k) { [INFO] [stdout] 12 + if max - k <= min + k { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shortest_distance_to_a_character/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | if (i as i32 == *j) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (i as i32 == *j) { [INFO] [stdout] 19 + if i as i32 == *j { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/binary_gap/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | if (m > res) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if (m > res) { [INFO] [stdout] 10 + if m > res { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/fixed_point/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (j == i as i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (j == i as i32) { [INFO] [stdout] 6 + if j == i as i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.66s [INFO] running `Command { std: "docker" "inspect" "cc3abba83c4480b4ec2736b03b3efb94da3b25ec1184c09ef8590b33a3e1ddd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc3abba83c4480b4ec2736b03b3efb94da3b25ec1184c09ef8590b33a3e1ddd0", kill_on_drop: false }` [INFO] [stdout] cc3abba83c4480b4ec2736b03b3efb94da3b25ec1184c09ef8590b33a3e1ddd0