[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#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah-Kennedy%2Fdata_structures" "/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/Noah-Kennedy/data_structures on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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-3-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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4507f60870738853dd6c56e9bb096ca7f3a88791e8926e834b275c1bb9cdcd22 [INFO] running `Command { std: "docker" "start" "-a" "4507f60870738853dd6c56e9bb096ca7f3a88791e8926e834b275c1bb9cdcd22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4507f60870738853dd6c56e9bb096ca7f3a88791e8926e834b275c1bb9cdcd22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4507f60870738853dd6c56e9bb096ca7f3a88791e8926e834b275c1bb9cdcd22", kill_on_drop: false }` [INFO] [stdout] 4507f60870738853dd6c56e9bb096ca7f3a88791e8926e834b275c1bb9cdcd22 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e7b303e4bac7f533202006afd2cb5dd67228647a83575583c346323c6c217e [INFO] running `Command { std: "docker" "start" "-a" "54e7b303e4bac7f533202006afd2cb5dd67228647a83575583c346323c6c217e", 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] 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] 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] 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] 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 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `data_structures` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "54e7b303e4bac7f533202006afd2cb5dd67228647a83575583c346323c6c217e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e7b303e4bac7f533202006afd2cb5dd67228647a83575583c346323c6c217e", kill_on_drop: false }` [INFO] [stdout] 54e7b303e4bac7f533202006afd2cb5dd67228647a83575583c346323c6c217e