[INFO] cloning repository https://github.com/Noah-Kennedy/data_structures [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Noah-Kennedy/data_structures" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah-Kennedy%2Fdata_structures", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah-Kennedy%2Fdata_structures'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a649cc7d69a397d7ac7bd381f94acfd30cfe198e [INFO] checking Noah-Kennedy/data_structures/a649cc7d69a397d7ac7bd381f94acfd30cfe198e against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah-Kennedy%2Fdata_structures" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Noah-Kennedy/data_structures on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Noah-Kennedy/data_structures [INFO] finished tweaking git repo https://github.com/Noah-Kennedy/data_structures [INFO] tweaked toml for git repo https://github.com/Noah-Kennedy/data_structures written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Noah-Kennedy/data_structures 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06ca8b92c65f604626829e924f4c551ff79928458fe48de7081fe324f28d1e18 [INFO] running `Command { std: "docker" "start" "-a" "06ca8b92c65f604626829e924f4c551ff79928458fe48de7081fe324f28d1e18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06ca8b92c65f604626829e924f4c551ff79928458fe48de7081fe324f28d1e18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06ca8b92c65f604626829e924f4c551ff79928458fe48de7081fe324f28d1e18", kill_on_drop: false }` [INFO] [stdout] 06ca8b92c65f604626829e924f4c551ff79928458fe48de7081fe324f28d1e18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64ba79d1fc34e6b4245803db44ac67b70117caf2494f8a8019ce2f676ec7a326 [INFO] running `Command { std: "docker" "start" "-a" "64ba79d1fc34e6b4245803db44ac67b70117caf2494f8a8019ce2f676ec7a326", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking data_structures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lists/linked_list.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | match iterator { [INFO] [stdout] 21 | | None => { [INFO] [stdout] 22 | | let new_node = ListNode { [INFO] [stdout] ... | [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 34 | [INFO] [stdout] 35 | true [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lists/linked_list.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | match iterator { [INFO] [stdout] 21 | | None => { [INFO] [stdout] 22 | | let new_node = ListNode { [INFO] [stdout] ... | [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 34 | [INFO] [stdout] 35 | true [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lists/linked_list.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let result = true; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | fn insert(&mut self, element: E, index: u64) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lists/linked_list.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let result = true; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | fn insert(&mut self, element: E, index: u64) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` which is behind a mutable reference [INFO] [stdout] --> src/lists/linked_list.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | let mut iterator = self.head; [INFO] [stdout] | ^^^^^^^^^ move occurs because `self.head` has type `&mut Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 17 | let mut iterator = &self.head; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` which is behind a mutable reference [INFO] [stdout] --> src/lists/linked_list.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | let mut iterator = self.head; [INFO] [stdout] | ^^^^^^^^^ move occurs because `self.head` has type `&mut Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 17 | let mut iterator = &self.head; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lists/linked_list.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 23 | next: & mut None, [INFO] [stdout] | ------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 27 | }, [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lists/linked_list.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 23 | next: & mut None, [INFO] [stdout] | ------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 27 | }, [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `element` [INFO] [stdout] --> src/lists/linked_list.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 13 | fn insert(&mut self, element: E, index: u64) -> bool { [INFO] [stdout] | ------- move occurs because `element` has type `E`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 19 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 24 | value: element [INFO] [stdout] | ^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: if `E` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lists/linked_list.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | value: element [INFO] [stdout] | ------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `element` [INFO] [stdout] --> src/lists/linked_list.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 13 | fn insert(&mut self, element: E, index: u64) -> bool { [INFO] [stdout] | ------- move occurs because `element` has type `E`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 19 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 24 | value: element [INFO] [stdout] | ^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: if `E` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lists/linked_list.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 24 | value: element [INFO] [stdout] | ------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lists/linked_list.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 26 | self.head = &mut Some(new_node); [INFO] [stdout] | -----------------^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | assignment requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | fn get(&self, index: u64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lists/linked_list.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, E> super::List<'a, E> for LinkedList<'a, E> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 26 | self.head = &mut Some(new_node); [INFO] [stdout] | -----------------^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | assignment requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn set(&mut self, index: u64, new_value: E) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_value` [INFO] [stdout] --> src/lists/linked_list.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | fn set(&mut self, index: u64, new_value: E) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | fn get(&self, index: u64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | fn remove(&mut self, index: u64) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn set(&mut self, index: u64, new_value: E) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_value` [INFO] [stdout] --> src/lists/linked_list.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | fn set(&mut self, index: u64, new_value: E) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lists/linked_list.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | fn remove(&mut self, index: u64) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures` (lib) due to 5 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `data_structures` (lib test) due to 5 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "64ba79d1fc34e6b4245803db44ac67b70117caf2494f8a8019ce2f676ec7a326", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64ba79d1fc34e6b4245803db44ac67b70117caf2494f8a8019ce2f676ec7a326", kill_on_drop: false }` [INFO] [stdout] 64ba79d1fc34e6b4245803db44ac67b70117caf2494f8a8019ce2f676ec7a326