[INFO] cloning repository https://github.com/AvniJashari/heapfib
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AvniJashari/heapfib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAvniJashari%2Fheapfib", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAvniJashari%2Fheapfib'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e0e06ff7c09c3d4e147cad4c558e12628fb0b5dd
[INFO] checking AvniJashari/heapfib against master#217cb73577ed6f30a2005dd75bab01d23ec4cd60 for pr-148939
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAvniJashari%2Fheapfib" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/AvniJashari/heapfib
[INFO] finished tweaking git repo https://github.com/AvniJashari/heapfib
[INFO] tweaked toml for git repo https://github.com/AvniJashari/heapfib written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AvniJashari/heapfib on toolchain 217cb73577ed6f30a2005dd75bab01d23ec4cd60
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+217cb73577ed6f30a2005dd75bab01d23ec4cd60" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AvniJashari/heapfib 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" "+217cb73577ed6f30a2005dd75bab01d23ec4cd60" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+217cb73577ed6f30a2005dd75bab01d23ec4cd60" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 88367b77cb97b35d44ca2143d8d97b40bc7d4d72a45764489e593ae3542c7793
[INFO] running `Command { std: "docker" "start" "-a" "88367b77cb97b35d44ca2143d8d97b40bc7d4d72a45764489e593ae3542c7793", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "88367b77cb97b35d44ca2143d8d97b40bc7d4d72a45764489e593ae3542c7793", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "88367b77cb97b35d44ca2143d8d97b40bc7d4d72a45764489e593ae3542c7793", kill_on_drop: false }`
[INFO] [stdout] 88367b77cb97b35d44ca2143d8d97b40bc7d4d72a45764489e593ae3542c7793
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+217cb73577ed6f30a2005dd75bab01d23ec4cd60" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ec8dc8cbd945beb4fc0162a69f12af5f482de478402f4f5bccaf00193e41947a
[INFO] running `Command { std: "docker" "start" "-a" "ec8dc8cbd945beb4fc0162a69f12af5f482de478402f4f5bccaf00193e41947a", kill_on_drop: false }`
[INFO] [stderr]     Checking heapfib v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:93:16
[INFO] [stdout]    |
[INFO] [stdout] 93 |             if (v_size == count) {break}
[INFO] [stdout]    |                ^               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 93 -             if (v_size == count) {break}
[INFO] [stdout] 93 +             if v_size == count {break}
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/main.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         todo!();
[INFO] [stdout]    |         ------- any code following this expression is unreachable
[INFO] [stdout] 64 |
[INFO] [stdout] 65 |         Some(node.val);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:102:38
[INFO] [stdout]     |
[INFO] [stdout] 102 |                 vec[i].children.push(vec[i+1]);
[INFO] [stdout]     |                                 ---- ^^^^^^^^ expected `Node<T>`, found `&Node<T>`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Node<_>`
[INFO] [stdout]             found reference `&Node<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/217cb73577ed6f30a2005dd75bab01d23ec4cd60/library/alloc/src/vec/mod.rs:2523:11
[INFO] [stdout] help: consider using clone here
[INFO] [stdout]     |
[INFO] [stdout] 102 |                 vec[i].children.push(vec[i+1].clone());
[INFO] [stdout]     |                                              ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:103:35
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 vec[i+1].parent = vec[i];
[INFO] [stdout]     |                 ---------------   ^^^^^^ expected `Option<Box<Node<T>>>`, found `&Node<T>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<Box<Node<T>>>`
[INFO] [stdout]             found reference `&Node<T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:106:40
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 vec[i+1].children.push(vec[i]);
[INFO] [stdout]     |                                   ---- ^^^^^^ expected `Node<T>`, found `&Node<T>`
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Node<_>`
[INFO] [stdout]             found reference `&Node<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/217cb73577ed6f30a2005dd75bab01d23ec4cd60/library/alloc/src/vec/mod.rs:2523:11
[INFO] [stdout] help: consider using clone here
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 vec[i+1].children.push(vec[i].clone());
[INFO] [stdout]     |                                              ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:107:33
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 vec[i].parent = vec[i+1];
[INFO] [stdout]     |                 -------------   ^^^^^^^^ expected `Option<Box<Node<T>>>`, found `&Node<T>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<Box<Node<T>>>`
[INFO] [stdout]             found reference `&Node<T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `el`
[INFO] [stdout]   --> src/main.rs:72:36
[INFO] [stdout]    |
[INFO] [stdout] 72 |     pub fn decrease_key(&mut self, el: T, new: T ) {
[INFO] [stdout]    |                                    ^^ help: if this is intentional, prefix it with an underscore: `_el`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new`
[INFO] [stdout]   --> src/main.rs:72:43
[INFO] [stdout]    |
[INFO] [stdout] 72 |     pub fn decrease_key(&mut self, el: T, new: T ) {
[INFO] [stdout]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_new`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `el`
[INFO] [stdout]   --> src/main.rs:76:30
[INFO] [stdout]    |
[INFO] [stdout] 76 |     pub fn delete(&mut self, el: T){
[INFO] [stdout]    |                              ^^ help: if this is intentional, prefix it with an underscore: `_el`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `vec_node` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:87:21
[INFO] [stdout]    |
[INFO] [stdout] 87 |                     vec_node.push(&mut self.heap[j]);
[INFO] [stdout]    |                     ^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut vec_node: Vec<&Node<T>> = Vec::new();
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.heap` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:87:40
[INFO] [stdout]    |
[INFO] [stdout] 87 |                     vec_node.push(&mut self.heap[j]);
[INFO] [stdout]    |                                        ^^^^^^^^^ `self` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be a mutable reference
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn heapify(&mut self) -> () {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:93:16
[INFO] [stdout]    |
[INFO] [stdout] 93 |             if (v_size == count) {break}
[INFO] [stdout]    |                ^               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 93 -             if (v_size == count) {break}
[INFO] [stdout] 93 +             if v_size == count {break}
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/main.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         todo!();
[INFO] [stdout]    |         ------- any code following this expression is unreachable
[INFO] [stdout] 64 |
[INFO] [stdout] 65 |         Some(node.val);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `heapfib` (bin "heapfib") due to 6 previous errors; 5 warnings emitted
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:102:38
[INFO] [stdout]     |
[INFO] [stdout] 102 |                 vec[i].children.push(vec[i+1]);
[INFO] [stdout]     |                                 ---- ^^^^^^^^ expected `Node<T>`, found `&Node<T>`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Node<_>`
[INFO] [stdout]             found reference `&Node<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/217cb73577ed6f30a2005dd75bab01d23ec4cd60/library/alloc/src/vec/mod.rs:2523:11
[INFO] [stdout] help: consider using clone here
[INFO] [stdout]     |
[INFO] [stdout] 102 |                 vec[i].children.push(vec[i+1].clone());
[INFO] [stdout]     |                                              ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:103:35
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 vec[i+1].parent = vec[i];
[INFO] [stdout]     |                 ---------------   ^^^^^^ expected `Option<Box<Node<T>>>`, found `&Node<T>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<Box<Node<T>>>`
[INFO] [stdout]             found reference `&Node<T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:106:40
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 vec[i+1].children.push(vec[i]);
[INFO] [stdout]     |                                   ---- ^^^^^^ expected `Node<T>`, found `&Node<T>`
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Node<_>`
[INFO] [stdout]             found reference `&Node<_>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/217cb73577ed6f30a2005dd75bab01d23ec4cd60/library/alloc/src/vec/mod.rs:2523:11
[INFO] [stdout] help: consider using clone here
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 vec[i+1].children.push(vec[i].clone());
[INFO] [stdout]     |                                              ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:107:33
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 vec[i].parent = vec[i+1];
[INFO] [stdout]     |                 -------------   ^^^^^^^^ expected `Option<Box<Node<T>>>`, found `&Node<T>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<Box<Node<T>>>`
[INFO] [stdout]             found reference `&Node<T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `el`
[INFO] [stdout]   --> src/main.rs:72:36
[INFO] [stdout]    |
[INFO] [stdout] 72 |     pub fn decrease_key(&mut self, el: T, new: T ) {
[INFO] [stdout]    |                                    ^^ help: if this is intentional, prefix it with an underscore: `_el`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new`
[INFO] [stdout]   --> src/main.rs:72:43
[INFO] [stdout]    |
[INFO] [stdout] 72 |     pub fn decrease_key(&mut self, el: T, new: T ) {
[INFO] [stdout]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_new`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `el`
[INFO] [stdout]   --> src/main.rs:76:30
[INFO] [stdout]    |
[INFO] [stdout] 76 |     pub fn delete(&mut self, el: T){
[INFO] [stdout]    |                              ^^ help: if this is intentional, prefix it with an underscore: `_el`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `vec_node` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:87:21
[INFO] [stdout]    |
[INFO] [stdout] 87 |                     vec_node.push(&mut self.heap[j]);
[INFO] [stdout]    |                     ^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut vec_node: Vec<&Node<T>> = Vec::new();
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `self.heap` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/main.rs:87:40
[INFO] [stdout]    |
[INFO] [stdout] 87 |                     vec_node.push(&mut self.heap[j]);
[INFO] [stdout]    |                                        ^^^^^^^^^ `self` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be a mutable reference
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn heapify(&mut self) -> () {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `heapfib` (bin "heapfib" test) due to 6 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "ec8dc8cbd945beb4fc0162a69f12af5f482de478402f4f5bccaf00193e41947a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec8dc8cbd945beb4fc0162a69f12af5f482de478402f4f5bccaf00193e41947a", kill_on_drop: false }`
[INFO] [stdout] ec8dc8cbd945beb4fc0162a69f12af5f482de478402f4f5bccaf00193e41947a
