-
Notifications
You must be signed in to change notification settings - Fork 13.6k
add new rustdoc::hidden_intra_doc_links lint #144750
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
base: master
Are you sure you want to change the base?
add new rustdoc::hidden_intra_doc_links lint #144750
Conversation
rustbot has assigned @GuillaumeGomez. Use |
1b659dd
to
d59f4ae
Compare
This comment has been minimized.
This comment has been minimized.
d59f4ae
to
fa4eb64
Compare
This comment has been minimized.
This comment has been minimized.
fa4eb64
to
9be4ffa
Compare
Unknown labels: T-rustdoc-frontend |
current issue: reexports. an item is only truly "hidden" if there are no non-hidden paths to it. there doesn't seem to be any easy queries to find all the reexports of an item, so the only way to do this would be traversing the entire crate, like how one potential workaround that would get rid of false positives at the cost of way more false negatives would be to only emit the lint if we only emit the lint when linking from something that is not hidden anywhere in the path to something that is directly marked as hidden. i think the correct solution however is to rework how the the lint could also just be based on if an item is actually going to be documented, but then it doesn't work consistently in EDIT: we apparently collect the paths of things before stripping, so that doesn't work, but |
Unknown labels: S-waiting-on-author |
The job Click to see the possible cause of the failure (guessed by this bot)
|
fixes #144664
cc @GuillaumeGomez @kpreid