[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 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah-Kennedy%2Fdata_structures" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Noah-Kennedy/data_structures on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-1/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: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a325f15917f5007cf03ffd42031e18ebcd5d861593c54858cf518bdde2a9c73 [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" "5a325f15917f5007cf03ffd42031e18ebcd5d861593c54858cf518bdde2a9c73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a325f15917f5007cf03ffd42031e18ebcd5d861593c54858cf518bdde2a9c73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a325f15917f5007cf03ffd42031e18ebcd5d861593c54858cf518bdde2a9c73", kill_on_drop: false }` [INFO] [stdout] 5a325f15917f5007cf03ffd42031e18ebcd5d861593c54858cf518bdde2a9c73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05fd63f7a9e284b32357bee61991eddaf3becc5a1727efa4a470940b3be58a9f [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" "05fd63f7a9e284b32357bee61991eddaf3becc5a1727efa4a470940b3be58a9f", kill_on_drop: false }` [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: 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: `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: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] 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: `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: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[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] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | move occurs because `self.head` has type `&mut Option>`, which does not implement the `Copy` trait [INFO] [stdout] | help: consider borrowing here: `&self.head` [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] 22 | let new_node = ListNode { [INFO] [stdout] | ____________________________________- [INFO] [stdout] 23 | | next: & mut None, [INFO] [stdout] | | ^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 24 | | value: element [INFO] [stdout] 25 | | }; [INFO] [stdout] | |_____________________- assignment requires that borrow lasts for `'a` [INFO] [stdout] 26 | self.head = &mut Some(new_node); [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] 24 | value: element [INFO] [stdout] | ^^^^^^^ value moved here, in previous iteration of loop [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 which is freed while still in use [INFO] [stdout] | assignment requires that borrow lasts for `'a` [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] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | move occurs because `self.head` has type `&mut Option>`, which does not implement the `Copy` trait [INFO] [stdout] | help: consider borrowing here: `&self.head` [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] 22 | let new_node = ListNode { [INFO] [stdout] | ____________________________________- [INFO] [stdout] 23 | | next: & mut None, [INFO] [stdout] | | ^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 24 | | value: element [INFO] [stdout] 25 | | }; [INFO] [stdout] | |_____________________- assignment requires that borrow lasts for `'a` [INFO] [stdout] 26 | self.head = &mut Some(new_node); [INFO] [stdout] 27 | }, [INFO] [stdout] | - temporary value is freed at the end of this statement [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] 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] 24 | value: element [INFO] [stdout] | ^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [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 which is freed while still in use [INFO] [stdout] | assignment requires that borrow lasts for `'a` [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] [stderr] error: could not compile `data_structures` [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "05fd63f7a9e284b32357bee61991eddaf3becc5a1727efa4a470940b3be58a9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05fd63f7a9e284b32357bee61991eddaf3becc5a1727efa4a470940b3be58a9f", kill_on_drop: false }` [INFO] [stdout] 05fd63f7a9e284b32357bee61991eddaf3becc5a1727efa4a470940b3be58a9f