-
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
rustdoc: do not show primitives and keywords as private #95530
Conversation
Some changes occurred in cc @camelid |
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -12,6 +12,7 @@ | |||
// @has foo/index.html '//a/@href' '../foo/index.html' | |||
// @!has foo/foo/index.html | |||
// @!has-dir foo/foo | |||
// @!has foo/index.html '//span' '🔒' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: You could make this test more robust by specifying that 🔒
should not appear anywhere in the whole page. I think you can do that by using /
as the path (selecting the root element), because the string match part uses substring matching.
Also it occurs to me that we will have to be careful to update these negative tests if/when we switch the emoji to an SVG icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
13: Non-absolute XPath is not supported due to implementation issues
// @!has foo/index.html '/' '🔒'
Looks good to me, with the one testing comment above. r=me once you've addressed that or decided against it. |
@bors r=jsha |
📌 Commit 2983698 has been approved by |
…, r=jsha rustdoc: do not show primitives and keywords as private Fixes this: ![image](https://user-images.githubusercontent.com/1593513/161102430-f1f0301e-3e7f-453f-9c0a-bc87a12b893d.png)
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#95032 (Clean up, categorize and sort unstable features in std.) - rust-lang#95260 (Better suggestions for `Fn`-family trait selection errors) - rust-lang#95293 (suggest wrapping single-expr blocks in square brackets) - rust-lang#95344 (Make `impl Debug for rustdoc::clean::Item` easier to read) - rust-lang#95388 (interpret: make isize::MAX the limit for dynamic value sizes) - rust-lang#95530 (rustdoc: do not show primitives and keywords as private) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes this: