Build #1525458 2024-11-12T11:13:27.190894+00:00
# rustc version
rustc 1.84.0-nightly (81eef2d36 2024-11-11)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/starship-alt-0.33.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/starship-alt-0.33.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241111-1.84.0-nightly-81eef2d36\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] b87b030f1f1b89c59b0df51ebba5d1a98dcb98eb4327ee6504eb69d21576f23f
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "b87b030f1f1b89c59b0df51ebba5d1a98dcb98eb4327ee6504eb69d21576f23f", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr] Checking hyper v0.13.10
[INFO] [stderr] Checking libgit2-sys v0.10.0
[INFO] [stderr] Checking battery v0.7.8
[INFO] [stderr] Checking os_info v1.3.3
[INFO] [stderr] Checking nom v5.1.3
[INFO] [stderr] Checking sysinfo v0.10.5
[INFO] [stderr] Checking git2 v0.11.0
[INFO] [stderr] error[E0597]: `version_regex` does not live long enough
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/os_info-1.3.3/src/linux/file_release.rs:36:13
[INFO] [stderr] |
[INFO] [stderr] 34 | let version_regex = Regex::new(release_info.version_regex).unwrap();
[INFO] [stderr] | ------------- binding `version_regex` declared here
[INFO] [stderr] 35 |
[INFO] [stderr] 36 | version_regex
[INFO] [stderr] | -^^^^^^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | _____________borrowed value does not live long enough
[INFO] [stderr] | |
[INFO] [stderr] 37 | | .captures_iter(&file_content)
[INFO] [stderr] | |_____________________________________________- a temporary with access to the borrow is created here ...
[INFO] [stderr] ...
[INFO] [stderr] 41 | } else {
[INFO] [stderr] | -
[INFO] [stderr] | |
[INFO] [stderr] | `version_regex` dropped here while still borrowed
[INFO] [stderr] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `regex::CaptureMatches<'_, '_>`
[INFO] [stderr] |
[INFO] [stderr] = note: the temporary is part of an expression at the end of a block;
[INFO] [stderr] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped
[INFO] [stderr] 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] [stderr] |
[INFO] [stderr] 36 ~ let x = version_regex
[INFO] [stderr] 37 | .captures_iter(&file_content)
[INFO] [stderr] 38 | .next()
[INFO] [stderr] 39 | .and_then(|c| c.get(1))
[INFO] [stderr] 40 ~ .map(|v| v.as_str().trim_end().to_owned()); x
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] For more information about this error, try `rustc --explain E0597`.
[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" "b87b030f1f1b89c59b0df51ebba5d1a98dcb98eb4327ee6504eb69d21576f23f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b87b030f1f1b89c59b0df51ebba5d1a98dcb98eb4327ee6504eb69d21576f23f", kill_on_drop: false }`
[INFO] [stdout] b87b030f1f1b89c59b0df51ebba5d1a98dcb98eb4327ee6504eb69d21576f23f