-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo doc
fails on found duplicate lang item 'panic_impl'
dependency issue (no_std
)
#107918
Comments
cargo doc
fails on `found duplicate lang item
panic_impl`` dependency issue (
no_std`)cargo doc
fails on found duplicate lang item 'panic_impl'
dependency issue (no_std
)
Possibly similar cause: #68427 |
Seems like this happens even with |
I can't reproduce the bug locally. Do you still have the issue? |
Interesting - it looks like it was broken on
|
Agreed, wanna add one? Otherwise I plan to do it in the next hours. |
I'm not too familiar with the test patterns for rustdoc, so I'll just leave it to you if you don't mind |
No problem! |
…-107918, r=notriddle Add regression test for rust-lang#107918 Fixes rust-lang#107918. r? `@notriddle`
…-107918, r=notriddle Add regression test for rust-lang#107918 Fixes rust-lang#107918. r? `@notriddle`
…-107918, r=notriddle Add regression test for rust-lang#107918 Fixes rust-lang#107918. r? ``@notriddle``
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#107062 (Do some cleanup of doc/index.md) - rust-lang#107890 (Lint against `Iterator::map` receiving a callable that returns `()`) - rust-lang#108431 (Add regression test for rust-lang#107918) - rust-lang#108432 (test: drop unused deps) - rust-lang#108436 (make "proc macro panicked" translatable) - rust-lang#108444 (docs/test: add UI test and docs for `E0476`) - rust-lang#108449 (Do not lint ineffective unstable trait impl for unresolved trait) - rust-lang#108456 (Complete migrating `ast_passes` to derive diagnostics) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
It seems like
cargo doc
fails is there is a dependency that has apanic_impl
and a binary that defines it as well, even if the dependency is never imported.I ran into this issue when I had >1 no_std bin per crate, where one binary had a custom panic_impl and another used that from a dependency. Minimal reproduction:
crate1 % tree . ├── Cargo.lock ├── Cargo.toml └── src └── main.rs
The following works:
But this fails (also when specifying target)
rustc --version --verbose
:@rustbot label +T-rustdoc
The text was updated successfully, but these errors were encountered: