[INFO] cloning repository https://github.com/shivenigma/data-structures-algorithms [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shivenigma/data-structures-algorithms" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshivenigma%2Fdata-structures-algorithms", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshivenigma%2Fdata-structures-algorithms'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e6745b9085f7c4f0411d4bb7d0dc7ca50cef79d [INFO] checking shivenigma/data-structures-algorithms against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshivenigma%2Fdata-structures-algorithms" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shivenigma/data-structures-algorithms on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shivenigma/data-structures-algorithms [INFO] finished tweaking git repo https://github.com/shivenigma/data-structures-algorithms [INFO] tweaked toml for git repo https://github.com/shivenigma/data-structures-algorithms written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shivenigma/data-structures-algorithms 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e876d4d07c5b3b31668e6d86c0c72f9c1f7efe7e28e0da8c1582f350d960094 [INFO] running `Command { std: "docker" "start" "-a" "2e876d4d07c5b3b31668e6d86c0c72f9c1f7efe7e28e0da8c1582f350d960094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e876d4d07c5b3b31668e6d86c0c72f9c1f7efe7e28e0da8c1582f350d960094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e876d4d07c5b3b31668e6d86c0c72f9c1f7efe7e28e0da8c1582f350d960094", kill_on_drop: false }` [INFO] [stdout] 2e876d4d07c5b3b31668e6d86c0c72f9c1f7efe7e28e0da8c1582f350d960094 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7347ee0f9d49c3abd458b2209cf867481d190b4b8782479a168dcade62fda7e [INFO] running `Command { std: "docker" "start" "-a" "f7347ee0f9d49c3abd458b2209cf867481d190b4b8782479a168dcade62fda7e", kill_on_drop: false }` [INFO] [stderr] Checking data-structures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ds/singly_linked_list.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | next: Some(Box::new(next)) [INFO] [stdout] | -------- ^^^^ expected `Node`, found `Option>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Node<_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/alloc/src/boxed.rs:257:12 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option>` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 24 | next: Some(Box::new(next.expect("REASON"))) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` as enum variant `Some` which is behind a shared reference [INFO] [stdout] --> src/ds/singly_linked_list.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | match self.head { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | Some(x) => return false, [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `x` has type `Node`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 51 | match &self.head { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `data-structures` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ds/singly_linked_list.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | next: Some(Box::new(next)) [INFO] [stdout] | -------- ^^^^ expected `Node`, found `Option>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Node<_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/alloc/src/boxed.rs:257:12 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option>` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 24 | next: Some(Box::new(next.expect("REASON"))) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` as enum variant `Some` which is behind a shared reference [INFO] [stdout] --> src/ds/singly_linked_list.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | match self.head { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | Some(x) => return false, [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `x` has type `Node`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 51 | match &self.head { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `list` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/ds/singly_linked_list.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | list.push_front(3); [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 63 | let mut list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `list` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/ds/singly_linked_list.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | ^^^^ not mutable [INFO] [stdout] 77 | list.push_front(7); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] 78 | assert_eq!(list.pop_front(), 7); [INFO] [stdout] 79 | list.push_front(6); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 76 | let mut list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `list` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/ds/singly_linked_list.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | list.push_front(3); [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 84 | let mut list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `list` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/ds/singly_linked_list.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | ^^^^ not mutable [INFO] [stdout] 96 | list.push_front(3); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 99 | list.push_front(5); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 95 | let mut list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `list` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/ds/singly_linked_list.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | ^^^^ not mutable [INFO] [stdout] 124 | list.push_front(3); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 128 | list.push_front(3); [INFO] [stdout] | ---- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 123 | let mut list: SinglyLinkedList = SinglyLinkedList::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `data-structures` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "f7347ee0f9d49c3abd458b2209cf867481d190b4b8782479a168dcade62fda7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7347ee0f9d49c3abd458b2209cf867481d190b4b8782479a168dcade62fda7e", kill_on_drop: false }` [INFO] [stdout] f7347ee0f9d49c3abd458b2209cf867481d190b4b8782479a168dcade62fda7e