-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Invalid inexistent link persists in non-documented item #113311
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
Comments
@rustbot label +T-rustdoc |
I'm a bit confused about the problem here: so the current code doesn't have this problem but if you update it, it does have this problem? |
Yes. Current code doesn't lead to any ICE, and reproduction code is meant to demonstrate the issue. |
Ok I think I got it. So currently, a module without documentation still has an intra-doc link on it, which is supposed to be impossible. Did I get it right? |
That's correct. |
Ok perfect, thanks! So the code is: mod m {
pub enum ValueEnum {}
}
mod m2 {
/// [`ValueEnum`]
pub use crate::m::ValueEnum;
}
pub use m2::ValueEnum; I suppose the inlining of docs is doing something wrong here. Also cc @petrochenkov |
Just took a look. So in So it's not the |
Steps to reproduce
x test tests\rustdoc-ui\issues\issue-109282-import-inline-merge.rs
You will see that module
m
has a link[`EnumValue`]
whilem
does not have any document.Relates to
redundant_explicit_links
#113167no resolutions for a doc link
#108378Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: