[INFO] cloning repository https://github.com/jbaum98/sharing-list [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jbaum98/sharing-list" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjbaum98%2Fsharing-list", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjbaum98%2Fsharing-list'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fabbdbb28d743229a8c528436efdea3543589400 [INFO] checking jbaum98/sharing-list against master#94b72d6bebbddb5d17860914c4544f37365e988c for pr-122789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjbaum98%2Fsharing-list" "/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/jbaum98/sharing-list on toolchain 94b72d6bebbddb5d17860914c4544f37365e988c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jbaum98/sharing-list [INFO] finished tweaking git repo https://github.com/jbaum98/sharing-list [INFO] tweaked toml for git repo https://github.com/jbaum98/sharing-list written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jbaum98/sharing-list 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" "+94b72d6bebbddb5d17860914c4544f37365e988c" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32d28ff1849b73e9579639254440eadb504a81e9163664931c8b80f9fcc588a6 [INFO] running `Command { std: "docker" "start" "-a" "32d28ff1849b73e9579639254440eadb504a81e9163664931c8b80f9fcc588a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32d28ff1849b73e9579639254440eadb504a81e9163664931c8b80f9fcc588a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32d28ff1849b73e9579639254440eadb504a81e9163664931c8b80f9fcc588a6", kill_on_drop: false }` [INFO] [stdout] 32d28ff1849b73e9579639254440eadb504a81e9163664931c8b80f9fcc588a6 [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46b05514783e1352918b358dbf7d566d87fade99d6a5f08e5df4538ace629516 [INFO] running `Command { std: "docker" "start" "-a" "46b05514783e1352918b358dbf7d566d87fade99d6a5f08e5df4538ace629516", kill_on_drop: false }` [INFO] [stderr] Checking cowish v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/cowish.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/cowish.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] running `Command { std: "docker" "inspect" "46b05514783e1352918b358dbf7d566d87fade99d6a5f08e5df4538ace629516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b05514783e1352918b358dbf7d566d87fade99d6a5f08e5df4538ace629516", kill_on_drop: false }` [INFO] [stdout] 46b05514783e1352918b358dbf7d566d87fade99d6a5f08e5df4538ace629516 [INFO] checking jbaum98/sharing-list against try#cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc for pr-122789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjbaum98%2Fsharing-list" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jbaum98/sharing-list on toolchain cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jbaum98/sharing-list [INFO] finished tweaking git repo https://github.com/jbaum98/sharing-list [INFO] tweaked toml for git repo https://github.com/jbaum98/sharing-list written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jbaum98/sharing-list 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" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f108286a659ba3a1b2f9fe539af0148c5ec8138cc42a6aff85f6467a0017fed [INFO] running `Command { std: "docker" "start" "-a" "6f108286a659ba3a1b2f9fe539af0148c5ec8138cc42a6aff85f6467a0017fed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f108286a659ba3a1b2f9fe539af0148c5ec8138cc42a6aff85f6467a0017fed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f108286a659ba3a1b2f9fe539af0148c5ec8138cc42a6aff85f6467a0017fed", kill_on_drop: false }` [INFO] [stdout] 6f108286a659ba3a1b2f9fe539af0148c5ec8138cc42a6aff85f6467a0017fed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de9166df2a3acf61faea676c5fead3ff3b23e1f3cb6680859ff7963b97cb6ce8 [INFO] running `Command { std: "docker" "start" "-a" "de9166df2a3acf61faea676c5fead3ff3b23e1f3cb6680859ff7963b97cb6ce8", kill_on_drop: false }` [INFO] [stderr] Checking cowish v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/cowish.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/cowish.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc/library/std/src/prelude/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/list.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / match self { [INFO] [stdout] 18 | | List::Empty => &List::Empty, [INFO] [stdout] | | ----------- temporary value created here [INFO] [stdout] 19 | | List::Cons(_, tl) => tl.borrow(), [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/list.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / match self { [INFO] [stdout] 18 | | List::Empty => &List::Empty, [INFO] [stdout] | | ----------- temporary value created here [INFO] [stdout] 19 | | List::Cons(_, tl) => tl.borrow(), [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cowish` (bin "cowish") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `cowish` (bin "cowish" test) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "de9166df2a3acf61faea676c5fead3ff3b23e1f3cb6680859ff7963b97cb6ce8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de9166df2a3acf61faea676c5fead3ff3b23e1f3cb6680859ff7963b97cb6ce8", kill_on_drop: false }` [INFO] [stdout] de9166df2a3acf61faea676c5fead3ff3b23e1f3cb6680859ff7963b97cb6ce8