-
Notifications
You must be signed in to change notification settings - Fork 13k
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: Fix issues with cross-crate inlined associated items #46384
Conversation
* Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
r? @frewsxcv (rust_highfive has picked a reviewer for you, use r? to override) |
// @has - '//*[@id="associatedconstant.PublicConst"]' 'pub const PublicConst: u8' | ||
// @has - '//*[@class="docblock"]' 'PublicConst: u8 = 123' | ||
// @has - '//*[@class="docblock"]' 'docs for PublicConst' | ||
// @!has - 'private_method' |
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.
Does this form of @!has
test work? I would assume that this form was looking for an XPath, not a text string.
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.
This form isn't looking for an XPath
Line 51 in 0a2e9ad
* `@has PATH PATTERN` and `@matches PATH PATTERN` checks for |
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.
Huh, nice. I guess i'm not used to seeing that form.
@bors r+ Thanks! |
📌 Commit b444843 has been approved by |
…etMisdreavus rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
…etMisdreavus rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
…etMisdreavus rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
…etMisdreavus rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
☀️ Test successful - status-appveyor, status-travis |
This unifies the code that handles associated items from impls and traits.