Skip to content

Add regression test for #105735 #113759

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

Conversation

GuillaumeGomez
Copy link
Member

Fixes #105735.

The work on re-export is now mostly finished (some bugs might remain, but I think I went through most of them already). Adding more regression tests is a good idea though.

r? @notriddle

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jul 16, 2023
// @has 'foo/index.html'
// @has - '//*[@class="item-name"]/a[@class="struct"]' 'AtomicU8'
// @has - '//*[@class="item-name"]/a[@class="constant"]' 'AtomicU8'
// @has - '//*[@id="reexport.AtomicU8"]/code' 'pub use crate::thing::AtomicU8;'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the result that we don't want?

@GuillaumeGomez
Copy link
Member Author

Oh I see. I thought it was the expected results reexports should be inlined in this case indeed. Closing and will reopen with appropriate fix.

@GuillaumeGomez GuillaumeGomez deleted the tests/rustdoc/issue-105735-fix branch July 16, 2023 16:59
@notriddle
Copy link
Contributor

The point is that reexports should either be inlined, or they should be shown, but not both. The test case says there are three items: the use item, the inlined struct, and the inlined constant. If the inlined items are going to show up, then the use item itself should go away. If the use item is going to show up, then the two items should not be inlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in rustdoc of re-export involving namespace overlap
3 participants