[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 master#94b72d6bebbddb5d17860914c4544f37365e988c for pr-122789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatthewJohnHeath%2FArrayTree" "/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/MatthewJohnHeath/ArrayTree 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/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-3-tc1/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" "+94b72d6bebbddb5d17860914c4544f37365e988c" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 784b60b533657ebf0a3dd17ff589daceb7666e17d79020c6cba7a9558edde618 [INFO] running `Command { std: "docker" "start" "-a" "784b60b533657ebf0a3dd17ff589daceb7666e17d79020c6cba7a9558edde618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "784b60b533657ebf0a3dd17ff589daceb7666e17d79020c6cba7a9558edde618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "784b60b533657ebf0a3dd17ff589daceb7666e17d79020c6cba7a9558edde618", kill_on_drop: false }` [INFO] [stdout] 784b60b533657ebf0a3dd17ff589daceb7666e17d79020c6cba7a9558edde618 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ad17c3a4ed485afa5879f31bb24ef4fb382a86f2b6343e512d3db7237ab5707 [INFO] running `Command { std: "docker" "start" "-a" "9ad17c3a4ed485afa5879f31bb24ef4fb382a86f2b6343e512d3db7237ab5707", kill_on_drop: false }` [INFO] [stderr] Checking tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Red` and `Black` are never constructed [INFO] [stdout] --> src/arraytree.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | enum NodeColour{Red, Black} [INFO] [stdout] | ---------- ^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `NodeColour` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `NextInList` are never constructed [INFO] [stdout] --> src/arraytree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum RBTreeArrayElement{ [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Node{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | NextInList( usize) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RBTreeArrayElement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RBTreeNode` is never constructed [INFO] [stdout] --> src/arraytree.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct RBTreeNode<'a, ContentType, const N:usize>{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResult` is never used [INFO] [stdout] --> src/arraytree.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | enum SearchResult<'a, ContentType>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Black` are never constructed [INFO] [stdout] --> src/arraytree.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | enum NodeColour{Red, Black} [INFO] [stdout] | ---------- ^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `NodeColour` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `left_child`, `right_child`, `parent`, `value`, `colour`, and `successor` are never used [INFO] [stdout] --> src/arraytree.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl<'a, ContentType, const N:usize> RBTreeNode<'a, ContentType, N> { [INFO] [stdout] | --------------------------------------------------------------------- methods in this implementation [INFO] [stdout] 52 | fn left_child(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn right_child(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn parent(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn value(&self) -> Option<&ContentType>{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn colour(&self) -> Option{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn successor(&self)-> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `root` and `add` are never used [INFO] [stdout] --> src/arraytree.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl ArrayTree< ContentType, N>{ [INFO] [stdout] | ------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn root(&self)->RBTreeNode{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn add(& mut self, val: ContentType ){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `NextInList` are never constructed [INFO] [stdout] --> src/arraytree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum RBTreeArrayElement{ [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Node{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | NextInList( usize) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RBTreeArrayElement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RBTreeNode` is never constructed [INFO] [stdout] --> src/arraytree.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct RBTreeNode<'a, ContentType, const N:usize>{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchResult` is never used [INFO] [stdout] --> src/arraytree.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | enum SearchResult<'a, ContentType>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `left_child`, `right_child`, `parent`, `value`, `colour`, and `successor` are never used [INFO] [stdout] --> src/arraytree.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl<'a, ContentType, const N:usize> RBTreeNode<'a, ContentType, N> { [INFO] [stdout] | --------------------------------------------------------------------- methods in this implementation [INFO] [stdout] 52 | fn left_child(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn right_child(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn parent(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn value(&self) -> Option<&ContentType>{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn colour(&self) -> Option{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn successor(&self)-> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `root` and `add` are never used [INFO] [stdout] --> src/arraytree.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl ArrayTree< ContentType, N>{ [INFO] [stdout] | ------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn root(&self)->RBTreeNode{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn add(& mut self, val: ContentType ){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `array_tree` is imported redundantly [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tree; [INFO] [stdout] | ^^^^^^^^^^ the item `array_tree` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `array_tree` is imported redundantly [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tree; [INFO] [stdout] | ^^^^^^^^^^ the item `array_tree` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let tree = array_tree::libb::ArrayTree::::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let tree = array_tree::libb::ArrayTree::::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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.10s [INFO] running `Command { std: "docker" "inspect" "9ad17c3a4ed485afa5879f31bb24ef4fb382a86f2b6343e512d3db7237ab5707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ad17c3a4ed485afa5879f31bb24ef4fb382a86f2b6343e512d3db7237ab5707", kill_on_drop: false }` [INFO] [stdout] 9ad17c3a4ed485afa5879f31bb24ef4fb382a86f2b6343e512d3db7237ab5707 [INFO] checking MatthewJohnHeath/ArrayTree against try#cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc for pr-122789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatthewJohnHeath%2FArrayTree" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MatthewJohnHeath/ArrayTree 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/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-3-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" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 42ff269e035c27a5a8082f9254a916a5281249716e3dce5e568adb9d1ee19151 [INFO] running `Command { std: "docker" "start" "-a" "42ff269e035c27a5a8082f9254a916a5281249716e3dce5e568adb9d1ee19151", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42ff269e035c27a5a8082f9254a916a5281249716e3dce5e568adb9d1ee19151", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42ff269e035c27a5a8082f9254a916a5281249716e3dce5e568adb9d1ee19151", kill_on_drop: false }` [INFO] [stdout] 42ff269e035c27a5a8082f9254a916a5281249716e3dce5e568adb9d1ee19151 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 671a8df732dac6f5a6ddd201bf8b9acf3449ccef9523ab23799f71b0c2c5b63a [INFO] running `Command { std: "docker" "start" "-a" "671a8df732dac6f5a6ddd201bf8b9acf3449ccef9523ab23799f71b0c2c5b63a", 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] 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: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: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: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: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: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: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: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: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] 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: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: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: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: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: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] 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: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [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 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tree` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "671a8df732dac6f5a6ddd201bf8b9acf3449ccef9523ab23799f71b0c2c5b63a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "671a8df732dac6f5a6ddd201bf8b9acf3449ccef9523ab23799f71b0c2c5b63a", kill_on_drop: false }` [INFO] [stdout] 671a8df732dac6f5a6ddd201bf8b9acf3449ccef9523ab23799f71b0c2c5b63a