-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
See https://docs.rs/crate/pprof/latest/builds/2161605.
# rustc version
rustc 1.89.0-nightly (2805e1dc4 2025-05-26)# docs.rs version
docsrs 0.6.0 (2a68f209 2025-05-26)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/pprof-0.15.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/pprof-0.15.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250526-1.89.0-nightly-2805e1dc4\", \"--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" "--config" "build.rustdocflags=[\"-Zmetrics-dir=/opt/rustwide/target/metrics\"]", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 1b9d3e01d8790773a2c3c35e33c38ebae731ec55ccee9a4afbb63c46f58a9ad2
[INFO] running `Command { std: "docker" "start" "-a" "1b9d3e01d8790773a2c3c35e33c38ebae731ec55ccee9a4afbb63c46f58a9ad2", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: backtrace_while_sampling, criterion, flamegraph, multithread, multithread_flamegraph, post_processor, prime_number, profile_proto_with_prost, profile_proto_with_protobuf_codec
[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] Documenting pprof v0.15.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0252]: the name `TraceImpl` is defined multiple times
[INFO] [stderr] --> src/backtrace/mod.rs:105:9
[INFO] [stderr] |
[INFO] [stderr] 91 | pub use frame_pointer::Trace as TraceImpl;
[INFO] [stderr] | --------------------------------- previous import of the type `TraceImpl` here
[INFO] [stderr] ...
[INFO] [stderr] 105 | pub use framehop_unwinder::Trace as TraceImpl;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `TraceImpl` reimported here
[INFO] [stderr] |
[INFO] [stderr] = note: `TraceImpl` must be defined only once in the type namespace of this module
[INFO] [stderr] help: you can use `as` to change the binding name of the import
[INFO] [stderr] |
[INFO] [stderr] 105 | pub use framehop_unwinder::Trace as OtherTraceImpl;
[INFO] [stderr] | +++++
[INFO] [stderr]
[INFO] [stderr] For more information about this error, try `rustc --explain E0252`.
[INFO] [stderr] error: could not document `pprof`
[INFO] running `Command { std: "docker" "inspect" "1b9d3e01d8790773a2c3c35e33c38ebae731ec55ccee9a4afbb63c46f58a9ad2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b9d3e01d8790773a2c3c35e33c38ebae731ec55ccee9a4afbb63c46f58a9ad2", kill_on_drop: false }`
[INFO] [stdout] 1b9d3e01d8790773a2c3c35e33c38ebae731ec55ccee9a4afbb63c46f58a9ad2
This is because docs.rs is building with --all-features and
Lines 85 to 94 in 01cff82
| #[cfg(all( | |
| any( | |
| target_arch = "x86_64", | |
| target_arch = "aarch64", | |
| target_arch = "riscv64", | |
| target_arch = "loongarch64" | |
| ), | |
| feature = "frame-pointer" | |
| ))] | |
| pub use frame_pointer::Trace as TraceImpl; |
Lines 103 to 108 in 01cff82
| #[cfg(all( | |
| any(target_arch = "x86_64", target_arch = "aarch64",), | |
| any(target_os = "linux", target_os = "macos",), | |
| feature = "framehop-unwinder" | |
| ))] | |
| pub use framehop_unwinder::Trace as TraceImpl; |