[INFO] cloning repository https://github.com/123dou/learnRust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/123dou/learnRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123dou%2FlearnRust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123dou%2FlearnRust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 89a5ddae8f0221a712a009f42b3d874d4c044eda
[INFO] testing 123dou/learnRust against beta-2020-10-09 for beta-1.48-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F123dou%2FlearnRust" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/123dou/learnRust on toolchain beta-2020-10-09
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-10-09" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/123dou/learnRust
[INFO] finished tweaking git repo https://github.com/123dou/learnRust
[INFO] tweaked toml for git repo https://github.com/123dou/learnRust written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/123dou/learnRust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-10-09" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-10-09" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 79e54d1535db0926931998e5f0cb3e5e9231ec9927cc5d81725a6975c6aeb14e
[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" "79e54d1535db0926931998e5f0cb3e5e9231ec9927cc5d81725a6975c6aeb14e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "79e54d1535db0926931998e5f0cb3e5e9231ec9927cc5d81725a6975c6aeb14e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "79e54d1535db0926931998e5f0cb3e5e9231ec9927cc5d81725a6975c6aeb14e", kill_on_drop: false }`
[INFO] [stdout] 79e54d1535db0926931998e5f0cb3e5e9231ec9927cc5d81725a6975c6aeb14e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-10-09" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 98a9a7d8ed5086fe1d8f02cf2e19158875178cfbe2f16d01ead3f6e12e93e894
[INFO] running `Command { std: "docker" "start" "-a" "98a9a7d8ed5086fe1d8f02cf2e19158875178cfbe2f16d01ead3f6e12e93e894", kill_on_drop: false }`
[INFO] [stderr]    Compiling leetcodeQuestions v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand`
[INFO] [stdout]  --> src/sort/sort.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rand::prelude::*;
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `rand`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand`
[INFO] [stdout]  --> src/sort/sort_test.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::prelude::*;
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `rand`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope
[INFO] [stdout]    --> src/sort/sort.rs:225:19
[INFO] [stdout]     |
[INFO] [stdout] 225 |     let mut rng = thread_rng();
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ThreadRng` in this scope
[INFO] [stdout]    --> src/sort/sort.rs:229:68
[INFO] [stdout]     |
[INFO] [stdout] 229 | fn quick_sort2(arr: &mut Vec<i32>, lo: usize, hi: usize, rng: &mut ThreadRng) {
[INFO] [stdout]     |                                                                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ThreadRng` in this scope
[INFO] [stdout]    --> src/sort/sort.rs:242:64
[INFO] [stdout]     |
[INFO] [stdout] 242 | fn partion(arr: &mut Vec<i32>, lo: usize, hi: usize, rng: &mut ThreadRng) -> usize {
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope
[INFO] [stdout]    --> src/sort/sort_test.rs:192:19
[INFO] [stdout]     |
[INFO] [stdout] 192 |     let mut rng = thread_rng();
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::swap`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/move_zeroes.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::mem::swap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/plus_one.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::path::Prefix::Verbatim;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::*`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/string_to_integer_atoi.rs:81:5
[INFO] [stdout]    |
[INFO] [stdout] 81 | use std::*;
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::panic::resume_unwind`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/string_to_integer_atoi.rs:82:5
[INFO] [stdout]    |
[INFO] [stdout] 82 | use std::panic::resume_unwind;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/contains_duplicate.rs:40:24
[INFO] [stdout]    |
[INFO] [stdout] 40 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]    |                        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::swap`
[INFO] [stdout]   --> src/leetcode/editor/cn/array/rotate_array.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | use std::mem::swap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::Ordering::Less`
[INFO] [stdout]  --> src/sort/sort.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::Ordering::Less;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process::id`
[INFO] [stdout]  --> src/sort/sort.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::process::id;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::fmt::Alignment::Left`
[INFO] [stdout]  --> src/sort/sort_test.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core::fmt::Alignment::Left;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `thread`, `time`
[INFO] [stdout]  --> src/sort/sort_test.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::{thread, time};
[INFO] [stdout]   |           ^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::SystemTime`
[INFO] [stdout]  --> src/sort/sort_test.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::time::SystemTime;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::sort::sort`
[INFO] [stdout]  --> src/sort/sort_test.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::sort::sort;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `shuffle` found for struct `Vec<i32>` in the current scope
[INFO] [stdout]    --> src/sort/sort_test.rs:194:9
[INFO] [stdout]     |
[INFO] [stdout] 194 |     arr.shuffle(&mut rng);
[INFO] [stdout]     |         ^^^^^^^ method not found in `Vec<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/leetcode/editor/cn/tree/symmetric_tree.rs:66:5
[INFO] [stdout]    |
[INFO] [stdout] 66 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/leetcode/editor/cn/tree/validate_binary_search_tree.rs:75:5
[INFO] [stdout]    |
[INFO] [stdout] 75 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 14 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcodeQuestions`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "98a9a7d8ed5086fe1d8f02cf2e19158875178cfbe2f16d01ead3f6e12e93e894", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "98a9a7d8ed5086fe1d8f02cf2e19158875178cfbe2f16d01ead3f6e12e93e894", kill_on_drop: false }`
[INFO] [stdout] 98a9a7d8ed5086fe1d8f02cf2e19158875178cfbe2f16d01ead3f6e12e93e894
