big-brain
big-brain copied to clipboard
docs.rs build failing for version 0.19.0
I was looking for the docs on the latest big-brain version 0.19.0
and noticed the build failed on docs.rs.
Build link: https://docs.rs/crate/big-brain/0.19.0/builds/1095409
Error:
# rustc version
rustc 1.77.0-nightly (25f8d01fd 2024-01-18)
# docs.rs version
docsrs 0.6.0 (7667f348 2024-01-17)
# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/big-brain-0.19.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/big-brain-0.19.0/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240118-1.77.0-nightly-25f8d01fd\", \"--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] 6b4581db6dd6718b86d83417b6be1d59c29393a2449847d389bade21481e4a6d
[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" "6b4581db6dd6718b86d83417b6be1d59c29393a2449847d389bade21481e4a6d", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: farming_sim, custom_measure, concurrent, sequence, thirst, one_off
[INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr] to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr] Checking bevy_transform v0.12.1
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bevy_transform-0.12.1/src/systems.rs:14:1
[INFO] [stderr] |
[INFO] [stderr] 14 | / pub fn sync_simple_transforms(
[INFO] [stderr] 15 | | mut query: ParamSet<(
[INFO] [stderr] 16 | | Query<
[INFO] [stderr] 17 | | (&Transform, &mut GlobalTransform),
[INFO] [stderr] | | - let's call the lifetime of this reference `'1`
[INFO] [stderr] ... |
[INFO] [stderr] 26 | | mut orphaned: RemovedComponents<Parent>,
[INFO] [stderr] 27 | | ) {
[INFO] [stderr] | |_^ requires that `'1` must outlive `'static`
[INFO] [stderr]
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bevy_transform-0.12.1/src/systems.rs:14:1
[INFO] [stderr] |
[INFO] [stderr] 14 | / pub fn sync_simple_transforms(
[INFO] [stderr] 15 | | mut query: ParamSet<(
[INFO] [stderr] 16 | | Query<
[INFO] [stderr] 17 | | (&Transform, &mut GlobalTransform),
[INFO] [stderr] | | - let's call the lifetime of this reference `'2`
[INFO] [stderr] ... |
[INFO] [stderr] 26 | | mut orphaned: RemovedComponents<Parent>,
[INFO] [stderr] 27 | | ) {
[INFO] [stderr] | |_^ requires that `'2` must outlive `'static`
[INFO] [stderr]
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bevy_transform-0.12.1/src/systems.rs:14:1
[INFO] [stderr] |
[INFO] [stderr] 14 | / pub fn sync_simple_transforms(
[INFO] [stderr] 15 | | mut query: ParamSet<(
[INFO] [stderr] | | --------- has type `ParamSet<'_, '_, (Query<'_, '_, (&transform::Transform, &mut global_transform::GlobalTransform), (Or<(Changed<transform::Transform>, Added<global_transform::GlobalTransform>)>, Without<Parent>, Without<Children>)>, Query<'_, '_, (bevy_ecs::change_detection::Ref<'3, transform::Transform>, &mut global_transform::GlobalTransform), (Without<Parent>, Without<Children>)>)>`
[INFO] [stderr] 16 | | Query<
[INFO] [stderr] 17 | | (&Transform, &mut GlobalTransform),
[INFO] [stderr] ... |
[INFO] [stderr] 26 | | mut orphaned: RemovedComponents<Parent>,
[INFO] [stderr] 27 | | ) {
[INFO] [stderr] | |_^ requires that `'3` must outlive `'static`
[INFO] [stderr]
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bevy_transform-0.12.1/src/systems.rs:14:1
[INFO] [stderr] |
[INFO] [stderr] 14 | / pub fn sync_simple_transforms(
[INFO] [stderr] 15 | | mut query: ParamSet<(
[INFO] [stderr] 16 | | Query<
[INFO] [stderr] 17 | | (&Transform, &mut GlobalTransform),
[INFO] [stderr] ... |
[INFO] [stderr] 24 | | Query<(Ref<Transform>, &mut GlobalTransform), (Without<Parent>, Without<Children>)>,
[INFO] [stderr] | | - let's call the lifetime of this reference `'4`
[INFO] [stderr] 25 | | )>,
[INFO] [stderr] 26 | | mut orphaned: RemovedComponents<Parent>,
[INFO] [stderr] 27 | | ) {
[INFO] [stderr] | |_^ requires that `'4` must outlive `'static`
[INFO] [stderr]
[INFO] [stderr] error: could not compile `bevy_transform` (lib) due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "6b4581db6dd6718b86d83417b6be1d59c29393a2449847d389bade21481e4a6d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6b4581db6dd6718b86d83417b6be1d59c29393a2449847d389bade21481e4a6d", kill_on_drop: false }`
[INFO] [stdout] 6b4581db6dd6718b86d83417b6be1d59c29393a2449847d389bade21481e4a6d
This seems to be a bug in bevy_transform?
ugh, the current docs for bevy_transform 0.12.1 built, probably with an older nightly compiler. I bet it's broken now under the latest nightly.
So even doc site is broken, it should work with bevy 0.12.1 without problem?
A related (?) excerpt from those logs that may be of concern: """ [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: farming_sim, custom_measure, concurrent, sequence, thirst, one_off """ see https://github.com/zkat/big-brain/issues/97 for details.
This failed with bevy_transform 0.12
but 0.13 is out now. Maybe bump and try again?
looks like we're all good now.