[INFO] updating cached repository https://github.com/EliseJane/linked-lists [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e5579342cc41717f494106c3bcbf16f1d0c6ece [INFO] checking EliseJane/linked-lists/3e5579342cc41717f494106c3bcbf16f1d0c6ece against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEliseJane%2Flinked-lists" "/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/EliseJane/linked-lists 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/EliseJane/linked-lists [INFO] finished tweaking git repo https://github.com/EliseJane/linked-lists [INFO] tweaked toml for git repo https://github.com/EliseJane/linked-lists written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/EliseJane/linked-lists 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] 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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f4056c94d8c74a0c9d5ad58c0aefa01c82b9c53189a2182dd3ecc7027822a95 [INFO] running `Command { std: "docker" "start" "-a" "7f4056c94d8c74a0c9d5ad58c0aefa01c82b9c53189a2182dd3ecc7027822a95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f4056c94d8c74a0c9d5ad58c0aefa01c82b9c53189a2182dd3ecc7027822a95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f4056c94d8c74a0c9d5ad58c0aefa01c82b9c53189a2182dd3ecc7027822a95", kill_on_drop: false }` [INFO] [stdout] 7f4056c94d8c74a0c9d5ad58c0aefa01c82b9c53189a2182dd3ecc7027822a95 [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=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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1e314678403e61671f5c0e4eadb26a191b3b6ecffcb5513f8a6f9634ddd05d4 [INFO] running `Command { std: "docker" "start" "-a" "c1e314678403e61671f5c0e4eadb26a191b3b6ecffcb5513f8a6f9634ddd05d4", kill_on_drop: false }` [INFO] [stderr] Checking lists v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: borrow expressions cannot be annotated with lifetimes [INFO] [stdout] --> src/second.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | &'a *node [INFO] [stdout] | ^---^^^^^ [INFO] [stdout] | | [INFO] [stdout] | annotated with lifetime here [INFO] [stdout] | [INFO] [stdout] help: remove the lifetime annotation [INFO] [stdout] | [INFO] [stdout] 30 - &'a *node [INFO] [stdout] 30 + &*node [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: borrow expressions cannot be annotated with lifetimes [INFO] [stdout] --> src/second.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | &'a *node [INFO] [stdout] | ^---^^^^^ [INFO] [stdout] | | [INFO] [stdout] | annotated with lifetime here [INFO] [stdout] | [INFO] [stdout] help: remove the lifetime annotation [INFO] [stdout] | [INFO] [stdout] 30 - &'a *node [INFO] [stdout] 30 + &*node [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `>` [INFO] [stdout] --> src/second.rs:82:48 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a, T> Iterator for Iter<'a, T> { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] 81 | type Item = &'a T; [INFO] [stdout] 82 | fn next(&'a mut self) -> Option> { [INFO] [stdout] | ^ expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] ... [INFO] [stdout] 88 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `>` [INFO] [stdout] --> src/second.rs:82:48 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a, T> Iterator for Iter<'a, T> { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] 81 | type Item = &'a T; [INFO] [stdout] 82 | fn next(&'a mut self) -> Option> { [INFO] [stdout] | ^ expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] ... [INFO] [stdout] 88 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `next` [INFO] [stdout] --> src/second.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a, T> Iterator for Iter<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `next` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn next(&mut self) -> Option<::Item> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `next` [INFO] [stdout] --> src/second.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a, T> Iterator for Iter<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `next` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn next(&mut self) -> Option<::Item> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return reference to local data `*node` [INFO] [stdout] --> src/second.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | &'a *node [INFO] [stdout] | ^^^^^^^^^ returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` which is behind a shared reference [INFO] [stdout] --> src/second.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | next: self.head.map(|node| { [INFO] [stdout] | ___________________^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | | move occurs because `self.head` has type `Option>>`, which does not implement the `Copy` trait [INFO] [stdout] 30 | | &'a *node [INFO] [stdout] 31 | | }) [INFO] [stdout] | |______________- `self.head` moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves `self.head` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:1102:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `second::Node: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 29 | next: >> as Clone>::clone(&self.head).map(|node| { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lists` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return reference to local data `*node` [INFO] [stdout] --> src/second.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | &'a *node [INFO] [stdout] | ^^^^^^^^^ returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.head` which is behind a shared reference [INFO] [stdout] --> src/second.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | next: self.head.map(|node| { [INFO] [stdout] | ___________________^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | | move occurs because `self.head` has type `Option>>`, which does not implement the `Copy` trait [INFO] [stdout] 30 | | &'a *node [INFO] [stdout] 31 | | }) [INFO] [stdout] | |______________- `self.head` moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves `self.head` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:1102:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `second::Node: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 29 | next: >> as Clone>::clone(&self.head).map(|node| { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lists` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "c1e314678403e61671f5c0e4eadb26a191b3b6ecffcb5513f8a6f9634ddd05d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1e314678403e61671f5c0e4eadb26a191b3b6ecffcb5513f8a6f9634ddd05d4", kill_on_drop: false }` [INFO] [stdout] c1e314678403e61671f5c0e4eadb26a191b3b6ecffcb5513f8a6f9634ddd05d4