[INFO] cloning repository https://github.com/Emurgo/cddl-codegen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Emurgo/cddl-codegen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmurgo%2Fcddl-codegen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmurgo%2Fcddl-codegen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 228fd49675e17ab6d960bd8a721e5a64f7de7b1a [INFO] checking Emurgo/cddl-codegen against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmurgo%2Fcddl-codegen" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Emurgo/cddl-codegen 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] removed /workspace/builds/worker-2-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/Emurgo/cddl-codegen [INFO] finished tweaking git repo https://github.com/Emurgo/cddl-codegen [INFO] tweaked toml for git repo https://github.com/Emurgo/cddl-codegen written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Emurgo/cddl-codegen 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 12ba64895baa20f4d145640e735581fb3984a85cb23d26cba5e17b823e14294f [INFO] running `Command { std: "docker" "start" "-a" "12ba64895baa20f4d145640e735581fb3984a85cb23d26cba5e17b823e14294f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12ba64895baa20f4d145640e735581fb3984a85cb23d26cba5e17b823e14294f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12ba64895baa20f4d145640e735581fb3984a85cb23d26cba5e17b823e14294f", kill_on_drop: false }` [INFO] [stdout] 12ba64895baa20f4d145640e735581fb3984a85cb23d26cba5e17b823e14294f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 679ad18291019147273393464dd7fe6341d80f8065be479fbd9dee896f625043 [INFO] running `Command { std: "docker" "start" "-a" "679ad18291019147273393464dd7fe6341d80f8065be479fbd9dee896f625043", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking lexical-util v0.8.5 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking ucd-trie v0.1.6 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking pretty v0.11.3 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking lexical-write-integer v0.8.5 [INFO] [stderr] Checking lexical-parse-integer v0.8.6 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking lexical-write-float v0.8.5 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking lexical-parse-float v0.8.5 [INFO] [stderr] Checking textwrap v0.16.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking uriparse v0.6.4 [INFO] [stderr] Checking base64-url v1.4.13 [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" "679ad18291019147273393464dd7fe6341d80f8065be479fbd9dee896f625043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "679ad18291019147273393464dd7fe6341d80f8065be479fbd9dee896f625043", kill_on_drop: false }` [INFO] [stdout] 679ad18291019147273393464dd7fe6341d80f8065be479fbd9dee896f625043