[INFO] cloning repository https://github.com/ronniesong0809/rust-project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ronniesong0809/rust-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fronniesong0809%2Frust-project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fronniesong0809%2Frust-project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ee31c87b2c8713247bd7ef43174095cf9bc1ad3 [INFO] testing ronniesong0809/rust-project against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fronniesong0809%2Frust-project" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ronniesong0809/rust-project [INFO] finished tweaking git repo https://github.com/ronniesong0809/rust-project [INFO] tweaked toml for git repo https://github.com/ronniesong0809/rust-project written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ronniesong0809/rust-project on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 313 packages to latest compatible versions [INFO] [stderr] Adding bson v0.14.1 (available: v3.1.0) [INFO] [stderr] Adding mongodb v0.9.2 (available: v3.5.2) [INFO] [stderr] Adding reqwest v0.10.10 (available: v0.13.2) [INFO] [stderr] Adding select v0.4.3 (available: v0.6.1) [INFO] [stderr] Adding tokio v0.2.25 (available: v1.51.1) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded string_cache_codegen v0.4.4 [INFO] [stderr] Downloaded tokio-macros v0.2.6 [INFO] [stderr] Downloaded string_cache v0.7.5 [INFO] [stderr] Downloaded autocfg v0.1.8 [INFO] [stderr] Downloaded markup5ever v0.8.1 [INFO] [stderr] Downloaded md5 v0.6.1 [INFO] [stderr] Downloaded select v0.4.3 [INFO] [stderr] Downloaded pbkdf2 v0.3.0 [INFO] [stderr] Downloaded md-5 v0.8.0 [INFO] [stderr] Downloaded err-derive v0.2.4 [INFO] [stderr] Downloaded resolv-conf v0.7.6 [INFO] [stderr] Downloaded derivative v1.0.4 [INFO] [stderr] Downloaded bson v0.14.1 [INFO] [stderr] Downloaded typed-builder v0.3.0 [INFO] [stderr] Downloaded string_cache_shared v0.3.0 [INFO] [stderr] Downloaded rand v0.5.6 [INFO] [stderr] Downloaded webpki-roots v0.18.0 [INFO] [stderr] Downloaded mongodb v0.9.2 [INFO] [stderr] Downloaded html5ever v0.23.0 [INFO] [stderr] Downloaded rustls v0.16.0 [INFO] [stderr] Downloaded os_info v1.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10ac92c6335f878cddd39d840ac781d98d7415bc6c085f19218c8d802c7f701c [INFO] running `Command { std: "docker" "start" "-a" "10ac92c6335f878cddd39d840ac781d98d7415bc6c085f19218c8d802c7f701c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10ac92c6335f878cddd39d840ac781d98d7415bc6c085f19218c8d802c7f701c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10ac92c6335f878cddd39d840ac781d98d7415bc6c085f19218c8d802c7f701c", kill_on_drop: false }` [INFO] [stdout] 10ac92c6335f878cddd39d840ac781d98d7415bc6c085f19218c8d802c7f701c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e03b1802f0575ec2317ffb64598bffcc1acfe7b595a3a8a7de1b6d6d9471b671 [INFO] running `Command { std: "docker" "start" "-a" "e03b1802f0575ec2317ffb64598bffcc1acfe7b595a3a8a7de1b6d6d9471b671", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling os_info v1.3.3 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling resolv-conf v0.7.6 [INFO] [stderr] Compiling md5 v0.6.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling string_cache_codegen v0.4.4 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling rustls v0.16.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling csv-core v0.1.13 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling string_cache v0.7.5 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stdout] error[E0597]: `version_regex` does not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/os_info-1.3.3/src/linux/file_release.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 34 | let version_regex = Regex::new(release_info.version_regex).unwrap(); [INFO] [stdout] | ------------- binding `version_regex` declared here [INFO] [stdout] 35 | [INFO] [stdout] 36 | version_regex [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 37 | | .captures_iter(&file_content) [INFO] [stdout] | |_____________________________________________- a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 41 | } else { [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `version_regex` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `regex::CaptureMatches<'_, '_>` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 36 ~ let x = version_regex [INFO] [stdout] 37 | .captures_iter(&file_content) [INFO] [stdout] 38 | .next() [INFO] [stdout] 39 | .and_then(|c| c.get(1)) [INFO] [stdout] 40 ~ .map(|v| v.as_str().trim_end().to_owned()); x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `os_info` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "e03b1802f0575ec2317ffb64598bffcc1acfe7b595a3a8a7de1b6d6d9471b671", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03b1802f0575ec2317ffb64598bffcc1acfe7b595a3a8a7de1b6d6d9471b671", kill_on_drop: false }` [INFO] [stdout] e03b1802f0575ec2317ffb64598bffcc1acfe7b595a3a8a7de1b6d6d9471b671