[INFO] cloning repository https://github.com/rncwind/whydoesntmycodework [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rncwind/whydoesntmycodework" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frncwind%2Fwhydoesntmycodework", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frncwind%2Fwhydoesntmycodework'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9296b7ca920a218c677d7f01f3a41b75dd64b68b [INFO] checking rncwind/whydoesntmycodework against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frncwind%2Fwhydoesntmycodework" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rncwind/whydoesntmycodework 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/rncwind/whydoesntmycodework [INFO] finished tweaking git repo https://github.com/rncwind/whydoesntmycodework [INFO] tweaked toml for git repo https://github.com/rncwind/whydoesntmycodework written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rncwind/whydoesntmycodework 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 14cac6e9530042711d12bf1560581bb210905c594c4bf8888a875233ccebf0ae [INFO] running `Command { std: "docker" "start" "-a" "14cac6e9530042711d12bf1560581bb210905c594c4bf8888a875233ccebf0ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14cac6e9530042711d12bf1560581bb210905c594c4bf8888a875233ccebf0ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14cac6e9530042711d12bf1560581bb210905c594c4bf8888a875233ccebf0ae", kill_on_drop: false }` [INFO] [stdout] 14cac6e9530042711d12bf1560581bb210905c594c4bf8888a875233ccebf0ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 76e4e09f36208bc6e1b5b60f27aee01898bfb0235f00e4def5e950cfed4eac72 [INFO] running `Command { std: "docker" "start" "-a" "76e4e09f36208bc6e1b5b60f27aee01898bfb0235f00e4def5e950cfed4eac72", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling serde v1.0.166 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Compiling tokio v1.27.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling openssl v0.10.50 [INFO] [stderr] Compiling rustix v0.37.11 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking linux-raw-sys v0.3.1 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling syn v2.0.23 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling openssl-sys v0.9.85 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Checking cpufeatures v0.2.6 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling pretty v0.11.3 [INFO] [stderr] Compiling serde_json v1.0.100 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking mio v0.8.6 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] 1660 | | Doc::Fail => &Doc::Fail, [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1663 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | --------------------------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1663 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1663 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1667 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | ------------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1667 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1667 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1673 | | ))) => &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | _____________________- [INFO] [stdout] 1674 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1675 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1676 | || ))), [INFO] [stdout] | ||_______________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1673 | | ))) => &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | ________________________________________- [INFO] [stdout] 1674 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1675 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1676 | || ))), [INFO] [stdout] | ||_____________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1675 | | RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1674 | | RefDoc(&Doc::Hardline), [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1679 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | __________________- [INFO] [stdout] 1680 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1681 | || RefDoc(&Doc::Nil), [INFO] [stdout] 1682 | || ))) [INFO] [stdout] | ||___________________- temporary value created here [INFO] [stdout] 1683 | | } [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1679 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | _____________________________________- [INFO] [stdout] 1680 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1681 | || RefDoc(&Doc::Nil), [INFO] [stdout] 1682 | || ))) [INFO] [stdout] | ||_________________- temporary value created here [INFO] [stdout] 1683 | | } [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1681 | | RefDoc(&Doc::Nil), [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.11.3/src/lib.rs:1656:9 [INFO] [stdout] | [INFO] [stdout] 1656 | / RefDoc(match doc { [INFO] [stdout] 1657 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1658 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1659 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1680 | | RefDoc(&Doc::Hardline), [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1684 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1685 | | }) [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 `pretty` (lib) due to 17 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "76e4e09f36208bc6e1b5b60f27aee01898bfb0235f00e4def5e950cfed4eac72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76e4e09f36208bc6e1b5b60f27aee01898bfb0235f00e4def5e950cfed4eac72", kill_on_drop: false }` [INFO] [stdout] 76e4e09f36208bc6e1b5b60f27aee01898bfb0235f00e4def5e950cfed4eac72