[INFO] cloning repository https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMunyawera-Fils%2FLottery_game_RUST_ICP", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMunyawera-Fils%2FLottery_game_RUST_ICP'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 34d8e68be899aaa29007cec7dc209dbc644a75b3 [INFO] checking Munyawera-Fils/Lottery_game_RUST_ICP against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMunyawera-Fils%2FLottery_game_RUST_ICP" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 43% (1356/3127) Updating files: 44% (1376/3127) Updating files: 45% (1408/3127) Updating files: 46% (1439/3127) Updating files: 46% (1454/3127) Updating files: 47% (1470/3127) Updating files: 48% (1501/3127) Updating files: 48% (1503/3127) Updating files: 49% (1533/3127) Updating files: 50% (1564/3127) Updating files: 51% (1595/3127) Updating files: 51% (1622/3127) Updating files: 52% (1627/3127) Updating files: 53% (1658/3127) Updating files: 54% (1689/3127) Updating files: 55% (1720/3127) Updating files: 56% (1752/3127) Updating files: 57% (1783/3127) Updating files: 58% (1814/3127) Updating files: 59% (1845/3127) Updating files: 60% (1877/3127) Updating files: 61% (1908/3127) Updating files: 62% (1939/3127) Updating files: 63% (1971/3127) Updating files: 64% (2002/3127) Updating files: 65% (2033/3127) Updating files: 66% (2064/3127) Updating files: 67% (2096/3127) Updating files: 68% (2127/3127) Updating files: 69% (2158/3127) Updating files: 70% (2189/3127) Updating files: 71% (2221/3127) Updating files: 72% (2252/3127) Updating files: 73% (2283/3127) Updating files: 74% (2314/3127) Updating files: 75% (2346/3127) Updating files: 76% (2377/3127) Updating files: 77% (2408/3127) Updating files: 78% (2440/3127) Updating files: 79% (2471/3127) Updating files: 80% (2502/3127) Updating files: 80% (2513/3127) Updating files: 81% (2533/3127) Updating files: 82% (2565/3127) Updating files: 83% (2596/3127) Updating files: 84% (2627/3127) Updating files: 85% (2658/3127) Updating files: 86% (2690/3127) Updating files: 87% (2721/3127) Updating files: 88% (2752/3127) Updating files: 89% (2784/3127) Updating files: 90% (2815/3127) Updating files: 91% (2846/3127) Updating files: 92% (2877/3127) Updating files: 93% (2909/3127) Updating files: 94% (2940/3127) Updating files: 95% (2971/3127) Updating files: 96% (3002/3127) Updating files: 97% (3034/3127) Updating files: 97% (3058/3127) Updating files: 98% (3065/3127) Updating files: 99% (3096/3127) Updating files: 100% (3127/3127) Updating files: 100% (3127/3127), done. [INFO] validating manifest of git repo https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP 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/Munyawera-Fils/Lottery_game_RUST_ICP [INFO] finished tweaking git repo https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP [INFO] tweaked toml for git repo https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Munyawera-Fils/Lottery_game_RUST_ICP 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] fd5a80cf9490d3f61c66505cba8321db7e6299268ed986436c8bdfc288eeba6c [INFO] running `Command { std: "docker" "start" "-a" "fd5a80cf9490d3f61c66505cba8321db7e6299268ed986436c8bdfc288eeba6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd5a80cf9490d3f61c66505cba8321db7e6299268ed986436c8bdfc288eeba6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd5a80cf9490d3f61c66505cba8321db7e6299268ed986436c8bdfc288eeba6c", kill_on_drop: false }` [INFO] [stdout] fd5a80cf9490d3f61c66505cba8321db7e6299268ed986436c8bdfc288eeba6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 6eea6874d4549538885ce48d4c54e355d74ecc6535050ea8426ae91b2ccfc97d [INFO] running `Command { std: "docker" "start" "-a" "6eea6874d4549538885ce48d4c54e355d74ecc6535050ea8426ae91b2ccfc97d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling rustversion v1.0.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] 1683 | | Doc::Fail => &Doc::Fail, [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1686 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | --------------------------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1686 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1686 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1690 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | ------------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1690 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1690 | | &Doc::FlatAlt(RefDoc(&Doc::Hardline), RefDoc(&Doc::Nil)) [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1696 | | ))) => &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | _____________________- [INFO] [stdout] 1697 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1698 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1699 | || ))), [INFO] [stdout] | ||_______________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1696 | | ))) => &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | ________________________________________- [INFO] [stdout] 1697 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1698 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1699 | || ))), [INFO] [stdout] | ||_____________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1698 | | RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1697 | | RefDoc(&Doc::Hardline), [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1702 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | __________________- [INFO] [stdout] 1703 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1704 | || RefDoc(&Doc::Nil), [INFO] [stdout] 1705 | || ))) [INFO] [stdout] | ||___________________- temporary value created here [INFO] [stdout] 1706 | | } [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1702 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | _____________________________________- [INFO] [stdout] 1703 | || RefDoc(&Doc::Hardline), [INFO] [stdout] 1704 | || RefDoc(&Doc::Nil), [INFO] [stdout] 1705 | || ))) [INFO] [stdout] | ||_________________- temporary value created here [INFO] [stdout] 1706 | | } [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1704 | | RefDoc(&Doc::Nil), [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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.12.3/src/lib.rs:1679:9 [INFO] [stdout] | [INFO] [stdout] 1679 | / RefDoc(match doc { [INFO] [stdout] 1680 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1681 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1682 | | Doc::Hardline => &Doc::Hardline, [INFO] [stdout] ... | [INFO] [stdout] 1703 | | RefDoc(&Doc::Hardline), [INFO] [stdout] | | ------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1707 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1708 | | }) [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" "6eea6874d4549538885ce48d4c54e355d74ecc6535050ea8426ae91b2ccfc97d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eea6874d4549538885ce48d4c54e355d74ecc6535050ea8426ae91b2ccfc97d", kill_on_drop: false }` [INFO] [stdout] 6eea6874d4549538885ce48d4c54e355d74ecc6535050ea8426ae91b2ccfc97d