[INFO] cloning repository https://github.com/MatthewJohnHeath/ArrayTree [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MatthewJohnHeath/ArrayTree" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatthewJohnHeath%2FArrayTree", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatthewJohnHeath%2FArrayTree'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c7ef1dc85cb607a064c0f9b703ab599477a9726 [INFO] checking MatthewJohnHeath/ArrayTree against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatthewJohnHeath%2FArrayTree" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MatthewJohnHeath/ArrayTree on toolchain 901e6d56697c79b2e80df6a487b2318ec6f57ee3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MatthewJohnHeath/ArrayTree [INFO] finished tweaking git repo https://github.com/MatthewJohnHeath/ArrayTree [INFO] tweaked toml for git repo https://github.com/MatthewJohnHeath/ArrayTree written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MatthewJohnHeath/ArrayTree 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" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65a190c1333b26023ec5db00cd7c18c37c7f218aa8b85eae403915d0b33dd66a [INFO] running `Command { std: "docker" "start" "-a" "65a190c1333b26023ec5db00cd7c18c37c7f218aa8b85eae403915d0b33dd66a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65a190c1333b26023ec5db00cd7c18c37c7f218aa8b85eae403915d0b33dd66a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65a190c1333b26023ec5db00cd7c18c37c7f218aa8b85eae403915d0b33dd66a", kill_on_drop: false }` [INFO] [stdout] 65a190c1333b26023ec5db00cd7c18c37c7f218aa8b85eae403915d0b33dd66a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6c78c6649fa284506d0a3d1caa5be3041a594d388b214910dd5ed85d98ded47 [INFO] running `Command { std: "docker" "start" "-a" "d6c78c6649fa284506d0a3d1caa5be3041a594d388b214910dd5ed85d98ded47", kill_on_drop: false }` [INFO] [stderr] Checking tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/arraytree.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 61 | }; [INFO] [stdout] 62 | Self{element, nodes: self.nodes} [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/arraytree.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 57 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 62 | Self{element, nodes: self.nodes} [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/arraytree.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 74 | }; [INFO] [stdout] 75 | Self{element, nodes: self.nodes} [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/arraytree.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 70 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 75 | Self{element, nodes: self.nodes} [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/arraytree.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 86 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 87 | }; [INFO] [stdout] 88 | Self{element, nodes: self.nodes} [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/arraytree.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 83 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 88 | Self{element, nodes: self.nodes} [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/arraytree.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 113 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 114 | }; [INFO] [stdout] 115 | Self{element, nodes: self.nodes} [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/arraytree.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 110 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 115 | Self{element, nodes: self.nodes} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/arraytree.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 61 | }; [INFO] [stdout] 62 | Self{element, nodes: self.nodes} [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/arraytree.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 57 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 62 | Self{element, nodes: self.nodes} [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/arraytree.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 74 | }; [INFO] [stdout] 75 | Self{element, nodes: self.nodes} [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/arraytree.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 70 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 75 | Self{element, nodes: self.nodes} [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/arraytree.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 86 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 87 | }; [INFO] [stdout] 88 | Self{element, nodes: self.nodes} [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/arraytree.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 83 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 88 | Self{element, nodes: self.nodes} [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/arraytree.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 113 | else{&RBTreeArrayElement::Empty} [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] 114 | }; [INFO] [stdout] 115 | Self{element, nodes: self.nodes} [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/arraytree.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 110 | None => &RBTreeArrayElement::Empty [INFO] [stdout] | ------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 115 | Self{element, nodes: self.nodes} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tree` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tree` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "d6c78c6649fa284506d0a3d1caa5be3041a594d388b214910dd5ed85d98ded47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6c78c6649fa284506d0a3d1caa5be3041a594d388b214910dd5ed85d98ded47", kill_on_drop: false }` [INFO] [stdout] d6c78c6649fa284506d0a3d1caa5be3041a594d388b214910dd5ed85d98ded47