[INFO] fetching crate nnsdao_sdk_basic 0.1.2... [INFO] checking nnsdao_sdk_basic-0.1.2 against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] extracting crate nnsdao_sdk_basic 0.1.2 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate nnsdao_sdk_basic 0.1.2 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 crates.io crate nnsdao_sdk_basic 0.1.2 [INFO] finished tweaking crates.io crate nnsdao_sdk_basic 0.1.2 [INFO] tweaked toml for crates.io crate nnsdao_sdk_basic 0.1.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 119 packages to latest compatible versions [INFO] [stderr] Adding candid v0.7.18 (available: v0.10.14) [INFO] [stderr] Adding ic-cdk v0.5.7 (available: v0.18.3) [INFO] [stderr] Adding ic-cdk-macros v0.5.7 (available: v0.18.3) [INFO] [stderr] Adding ic-types v0.4.2 (available: v0.7.0) [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] eb2672fbe1763eb8bddac24bcf96f1bd68136e7f7222de6ee227bbdb9313b8da [INFO] running `Command { std: "docker" "start" "-a" "eb2672fbe1763eb8bddac24bcf96f1bd68136e7f7222de6ee227bbdb9313b8da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb2672fbe1763eb8bddac24bcf96f1bd68136e7f7222de6ee227bbdb9313b8da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb2672fbe1763eb8bddac24bcf96f1bd68136e7f7222de6ee227bbdb9313b8da", kill_on_drop: false }` [INFO] [stdout] eb2672fbe1763eb8bddac24bcf96f1bd68136e7f7222de6ee227bbdb9313b8da [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] 9ff73f82da45aa21b9037eb043d08b8891f435be560cb7ba68c0cc019c523b4b [INFO] running `Command { std: "docker" "start" "-a" "9ff73f82da45aa21b9037eb043d08b8891f435be560cb7ba68c0cc019c523b4b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pretty-0.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] 1321 | | Doc::Fail => &Doc::Fail, [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1324 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ----------------------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1324 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1324 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::BorrowedText(" "))) [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1328 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)) [INFO] [stdout] | | --------------------------------------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1328 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)) [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1328 | | &Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)) [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1332 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | __________________- [INFO] [stdout] 1333 | || RefDoc(&Doc::Line), [INFO] [stdout] 1334 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1335 | || ))) [INFO] [stdout] | ||___________________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1332 | | &Doc::Group(RefDoc(&Doc::FlatAlt( [INFO] [stdout] | | _____________________________________- [INFO] [stdout] 1333 | || RefDoc(&Doc::Line), [INFO] [stdout] 1334 | || RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] 1335 | || ))) [INFO] [stdout] | ||_________________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1334 | | RefDoc(&Doc::BorrowedText(" ")), [INFO] [stdout] | | ---------------------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1333 | | RefDoc(&Doc::Line), [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1339 | | &Doc::Group(RefDoc(&Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)))) [INFO] [stdout] | | ------------------------------------------------------------------------ temporary value created here [INFO] [stdout] 1340 | | } [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1339 | | &Doc::Group(RefDoc(&Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)))) [INFO] [stdout] | | --------------------------------------------------- temporary value created here [INFO] [stdout] 1340 | | } [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1339 | | &Doc::Group(RefDoc(&Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)))) [INFO] [stdout] | | -------- temporary value created here [INFO] [stdout] 1340 | | } [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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.10.0/src/lib.rs:1317:9 [INFO] [stdout] | [INFO] [stdout] 1317 | / RefDoc(match doc { [INFO] [stdout] 1318 | | // Return 'static references for common variants to avoid some allocations [INFO] [stdout] 1319 | | Doc::Nil => &Doc::Nil, [INFO] [stdout] 1320 | | Doc::Line => &Doc::Line, [INFO] [stdout] ... | [INFO] [stdout] 1339 | | &Doc::Group(RefDoc(&Doc::FlatAlt(RefDoc(&Doc::Line), RefDoc(&Doc::Nil)))) [INFO] [stdout] | | --------- temporary value created here [INFO] [stdout] 1340 | | } [INFO] [stdout] 1341 | | _ => self.docs.alloc(doc), [INFO] [stdout] 1342 | | }) [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] Compiling leb128 v0.2.5 [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" "9ff73f82da45aa21b9037eb043d08b8891f435be560cb7ba68c0cc019c523b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff73f82da45aa21b9037eb043d08b8891f435be560cb7ba68c0cc019c523b4b", kill_on_drop: false }` [INFO] [stdout] 9ff73f82da45aa21b9037eb043d08b8891f435be560cb7ba68c0cc019c523b4b