'crate-type = ["proc-macro"]' causes 'error: proc-macro crate not dylib' and ICE when documenting downstream crates #52625
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Reproduction
Minimal reproduction requires two crates. Here's a script to generate them:
Bash script
Output
Stack trace is probably easy to guess and not very interesting, but here you go:
Stack trace
Description
Basically,
crate-type = ["proc-macro"]
is a thing that mostly appears to work, even though all documentation says to useproc-macro = true
. However, using it causes issues when documenting downstream crates, most notably the above.See also rust-lang/cargo#5310.
The text was updated successfully, but these errors were encountered: