[INFO] cloning repository https://github.com/fhbzyc/rust_practise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fhbzyc/rust_practise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffhbzyc%2Frust_practise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffhbzyc%2Frust_practise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0323d88e7714e28d9c612610e0a8129b08019218 [INFO] checking fhbzyc/rust_practise against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffhbzyc%2Frust_practise" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fhbzyc/rust_practise on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fhbzyc/rust_practise [INFO] finished tweaking git repo https://github.com/fhbzyc/rust_practise [INFO] tweaked toml for git repo https://github.com/fhbzyc/rust_practise written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/fhbzyc/rust_practise already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f240767f65898ff678e5cac7f1b131776444d47337086153c12190b27a862fc [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" "1f240767f65898ff678e5cac7f1b131776444d47337086153c12190b27a862fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f240767f65898ff678e5cac7f1b131776444d47337086153c12190b27a862fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f240767f65898ff678e5cac7f1b131776444d47337086153c12190b27a862fc", kill_on_drop: false }` [INFO] [stdout] 1f240767f65898ff678e5cac7f1b131776444d47337086153c12190b27a862fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e08c675a60888051fd8e8084ae7dc146052881bc05e6acc8cf02097d913ee41 [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" "2e08c675a60888051fd8e8084ae7dc146052881bc05e6acc8cf02097d913ee41", kill_on_drop: false }` [INFO] [stderr] Checking server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/thread_pool/thread_pool.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | type Job = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `thread` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | thread: thread::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/thread_pool/thread_pool.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | type Job = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `thread` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | thread: thread::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `cmp` [INFO] [stdout] --> src/tree/blance_tree.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | cmp::max( [INFO] [stdout] | ^^^ use of undeclared crate or module `cmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | type TreeNode = Rc>>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Weak` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | type ParentNode = Weak>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | type ParentNode = Weak>>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/tree/blance_tree.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | Rc::new(RefCell::new(node)) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/tree/blance_tree.rs:110:34 [INFO] [stdout] | [INFO] [stdout] 110 | let parent = Weak::upgrade(&node).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | root: Option>>>, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | fn select_node(node: Rc>>, key: i64) -> Option> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `blance_tree` [INFO] [stdout] --> src/main.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | let mut tree = blance_tree::new(0); [INFO] [stdout] | ^^^ not found in `blance_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/tree/blance_tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `resp` is never read [INFO] [stdout] --> src/bin/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut resp = ""; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0392]: parameter `T` is never used [INFO] [stdout] --> src/tree/blance_tree.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | struct BlanceTree { [INFO] [stdout] | ^ unused parameter [INFO] [stdout] | [INFO] [stdout] = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0392, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0392`. [INFO] [stdout] [INFO] [stderr] error: could not compile `server` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `cmp` [INFO] [stdout] --> src/tree/blance_tree.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | cmp::max( [INFO] [stdout] | ^^^ use of undeclared crate or module `cmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | type TreeNode = Rc>>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Weak` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | type ParentNode = Weak>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | type ParentNode = Weak>>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/tree/blance_tree.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | Rc::new(RefCell::new(node)) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/tree/blance_tree.rs:110:34 [INFO] [stdout] | [INFO] [stdout] 110 | let parent = Weak::upgrade(&node).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | root: Option>>>, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/tree/blance_tree.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | fn select_node(node: Rc>>, key: i64) -> Option> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `blance_tree` [INFO] [stdout] --> src/main.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | let mut tree = blance_tree::new(0); [INFO] [stdout] | ^^^ not found in `blance_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/tree/blance_tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `resp` is never read [INFO] [stdout] --> src/bin/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut resp = ""; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0392]: parameter `T` is never used [INFO] [stdout] --> src/tree/blance_tree.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | struct BlanceTree { [INFO] [stdout] | ^ unused parameter [INFO] [stdout] | [INFO] [stdout] = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0392, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0392`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "2e08c675a60888051fd8e8084ae7dc146052881bc05e6acc8cf02097d913ee41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e08c675a60888051fd8e8084ae7dc146052881bc05e6acc8cf02097d913ee41", kill_on_drop: false }` [INFO] [stdout] 2e08c675a60888051fd8e8084ae7dc146052881bc05e6acc8cf02097d913ee41