-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE when documenting clap
3.2.23 (still)
#108334
Comments
This ICE seems to be related to intra-doc link resolution, not standard name resolution. My bad 😅 @rustbot modify labels +A-intra-doc-links -A-resolve |
Minimum reproduction code: // foo_1.rs
pub trait Bar {}
// lib.rs
mod foo_1;
/// Hello [`Bar`]. // crash
pub use foo_1::Bar; |
The issue is in rustdoc, it passes a wrong parent module ( |
The resolution exists in rustc tables, it's just attached to |
It looks like |
@petrochenkov Thanks for the information! Wanna send the fix? Otherwise I plan to do it in the next days. |
Fixed in #109266. |
rustdoc: Correctly merge import's and its target's docs in one more case Fixes rust-lang#108334. Fixes rust-lang#108378. Fixes rust-lang#108658.
This looks similar to #108065, but this wasn't fixed by #108129
Code
src/main.rs
Cargo.toml
$ cargo +nightly doc
Meta
rustc --version --verbose
:rustdoc -Vv
:Error output
Backtrace
@rustbot modify labels +A-resolve
The text was updated successfully, but these errors were encountered: