You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In these specific conditions (workspace with a proc-macro, building for a specific target with optimizations) cargo doc fails with an error that doesn't make any sense.
> cargo doc
error: document output filename collision
The lib `b`in package `b v0.1.0 (doc-collision-minimal/b)` has the same name as the lib `b`in package `b v0.1.0 (doc-collision-minimal/b)`.
Only one may be documented at once since they output to the same path.
Consider documenting only one, renaming one, or marking one with `doc = false`in Cargo.toml.
Tried on the latest nightly 1.85.0-nightly (917bfa784 2024-12-26) and the current stable 1.83.0 (5ffbef321 2024-10-29)
Steps
Workspace with 2 crates: a and b.
a depends on b, which is a proc-macro.
Compile with optimizations enabled (any opt-level except 0)
Specify an explicit target (e.g. x86_64-unknown-linux-musl)
Problem
In these specific conditions (workspace with a proc-macro, building for a specific target with optimizations)
cargo doc
fails with an error that doesn't make any sense.Tried on the latest nightly
1.85.0-nightly (917bfa784 2024-12-26)
and the current stable1.83.0 (5ffbef321 2024-10-29)
Steps
a
andb
.a
depends onb
, which is aproc-macro
.opt-level
except0
)x86_64-unknown-linux-musl
)Possible Solution(s)
No response
Notes
Minimal reproducible example
Version
The text was updated successfully, but these errors were encountered: