[INFO] cloning repository https://github.com/TiTiCannotProgramme/cyclic_structure_gen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TiTiCannotProgramme/cyclic_structure_gen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiTiCannotProgramme%2Fcyclic_structure_gen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiTiCannotProgramme%2Fcyclic_structure_gen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 239b7831360868948897e645d4bf232ef5a6ec20 [INFO] checking TiTiCannotProgramme/cyclic_structure_gen against master#40daf23eeb711dadf140b2536e67e3ff4c999196 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiTiCannotProgramme%2Fcyclic_structure_gen" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TiTiCannotProgramme/cyclic_structure_gen on toolchain 40daf23eeb711dadf140b2536e67e3ff4c999196 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TiTiCannotProgramme/cyclic_structure_gen [INFO] finished tweaking git repo https://github.com/TiTiCannotProgramme/cyclic_structure_gen [INFO] tweaked toml for git repo https://github.com/TiTiCannotProgramme/cyclic_structure_gen written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TiTiCannotProgramme/cyclic_structure_gen 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" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pretty v0.11.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f78980a2e958e0e95d4c2c5f70524bcc2eb52da1e684e32f3eca40c4e366372 [INFO] running `Command { std: "docker" "start" "-a" "5f78980a2e958e0e95d4c2c5f70524bcc2eb52da1e684e32f3eca40c4e366372", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f78980a2e958e0e95d4c2c5f70524bcc2eb52da1e684e32f3eca40c4e366372", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f78980a2e958e0e95d4c2c5f70524bcc2eb52da1e684e32f3eca40c4e366372", kill_on_drop: false }` [INFO] [stdout] 5f78980a2e958e0e95d4c2c5f70524bcc2eb52da1e684e32f3eca40c4e366372 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cc5200c76f18fa33821325b9dece8d2064696dae7eaf642208a0436d93adf09 [INFO] running `Command { std: "docker" "start" "-a" "5cc5200c76f18fa33821325b9dece8d2064696dae7eaf642208a0436d93adf09", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking pretty v0.11.3 [INFO] [stderr] Checking cyclic_structure_gen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `WeakNodePtr` [INFO] [stdout] --> src/bst/avl_tree.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bst::avl_node::{Node, NodePtr, WeakNodePtr}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/bst/avl_node.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 7 | pub parent: WeakNodePtr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WeakNodePtr` [INFO] [stdout] --> src/bst/avl_tree.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bst::avl_node::{Node, NodePtr, WeakNodePtr}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/bst/avl_node.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn same_structure_to(&self, node_ptr: &NodePtr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn set_height(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_value(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_left_child(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn get_right_child(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn is_left_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn is_right_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn has_both_children(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn has_no_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn has_only_left_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn has_only_right_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AvlTree` is never constructed [INFO] [stdout] --> src/bst/avl_tree.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AvlTree { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AvlTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bst/avl_tree.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl AvlTree { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> AvlTree { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn insert(&mut self, node: Node) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn find_leaf_node_for_insertion( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn update_balance(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn rebalance(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn left_rotate(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn right_rotate(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn search_tree_by_value(&self, value: isize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn get_minimum_child(node_ptr: NodePtr) -> NodePtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn get_maximum_child(node_ptr: NodePtr) -> NodePtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn delete_root(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn delete_node_with_children(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn delete_node(&mut self, node_ptr: NodePtr) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | fn set_new_child(parent: &NodePtr, old_child: NodePtr, new_child: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_node_to_vec` is never used [INFO] [stdout] --> src/bst/avl_tree.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn convert_node_to_vec(node_ptr: NodePtr) -> VecDeque { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_free_from_values` is never used [INFO] [stdout] --> src/bst/avl_tree.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn build_free_from_values(values_list: Vec) -> AvlTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_free_from_index_and_values` is never used [INFO] [stdout] --> src/bst/avl_tree.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn build_free_from_index_and_values( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bst/avl_tree_test.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut tree = setup_tree3(); [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/bst/avl_tree_test.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut tree = setup_tree4(); [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/bst/avl_tree_test.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let mut tree = build_free_from_values(vec![30, 20, 10]); [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/bst/avl_tree_test.rs:331:13 [INFO] [stdout] | [INFO] [stdout] 331 | let mut tree = build_free_from_values(vec![15, 10, 20, 30, 40]); [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/bst/avl_tree_test.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | let mut tree = build_free_from_values(vec![30, 40, 50]); [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/bst/avl_tree_test.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut tree = setup_tree6(); [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/bst/avl_tree_test.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let mut tree = setup_tree6(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_value` and `is_right_child` are never used [INFO] [stdout] --> src/bst/avl_node.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_value(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn is_right_child(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_free_from_index_and_values` is never used [INFO] [stdout] --> src/bst/avl_tree.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn build_free_from_index_and_values( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "5cc5200c76f18fa33821325b9dece8d2064696dae7eaf642208a0436d93adf09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cc5200c76f18fa33821325b9dece8d2064696dae7eaf642208a0436d93adf09", kill_on_drop: false }` [INFO] [stdout] 5cc5200c76f18fa33821325b9dece8d2064696dae7eaf642208a0436d93adf09