-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix invalid missing documentation lint reporting for re-exports #109176
Fix invalid missing documentation lint reporting for re-exports #109176
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Just discovered some weird re-exports when running in test mode in |
Is there any history behind these changes? What issues do they fix? Is this about documentation being lost on reexport items from other crates? |
Sorry, I forgot to link the issue... I'll update the first comment too. The issue: #108570 |
I've just found #108570 too. So it's not about dropped docs, but about making the |
If you have suggestions on how to prevent this duplication (which I'm not super happy about either...), I'd gladly hear it. 😉 |
In the meantime let's do a perf run. |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit a2ac0ff with merge e1a6761a2474c0d7d9183f20b15fa5426cc2c301... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (e1a6761a2474c0d7d9183f20b15fa5426cc2c301): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Warning ⚠: The following benchmark(s) failed to build:
Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
That's quite the regression. I need to check how to improve this situation. |
I suggest not spending time on attempts to improve the current approach. The |
Sounds good to me, thanks! Closing then. |
@GuillaumeGomez
I thought I had some understanding, but then #107000 and related PRs changed the rules again. |
It's not documented anywhere but it really should. I'll try to update the rustdoc book today so the rules of re-exports and |
Fixes #108570.
The problem was that, if an item is re-exported, we don't check if it's actually displayed into the documentation. To do so, I changed the check this way:
Like that, if an item is re-exported, it'll just be checked on the re-export directly.
Not sure who should be set as reviewer here so I'll just ping @notriddle and wait for bors to assign someone.