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 warning in components/layout_2020
#31708
Conversation
Sorry, I didn't see this before I added my own pr. I resolved some of the broken references differently. See #31712. |
components/layout_2020/flow/line.rs
Outdated
@@ -32,7 +32,7 @@ use crate::style_ext::PaddingBorderMargin; | |||
use crate::ContainingBlock; | |||
|
|||
pub(super) struct LineMetrics { | |||
/// The block offset of the line start in the containing [`InlineFormattingContext`]. | |||
/// The block offset of the line start in the containing Inline Formatting Context. |
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.
I think you can just qualify the reference to InlineFormattingContext instead of removing the link.
@@ -59,7 +59,7 @@ pub(crate) enum NonReplacedFormattingContextContents { | |||
// Other layout modes go here | |||
} | |||
|
|||
/// The baselines of a layout or a [`BoxFragment`]. Some layout uses the first and some layout uses | |||
/// The baselines of a layout or [`Fragment::Box`] Some layout uses the first and some layout uses |
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.
Again, I think this just needs to be qualified. Fragment::Box
is an enum variant, but this is actually referring to the struct stored inside the enum variant BoxFragment
.
@mrobinson I think that third edit that @Aaryakhandelwal suggested seems to be accurate. She changed [ |
@mrobinson , Am I still supposed to make changes, as the next PR created by @Rhea-Eve already handles these both errors correctly. |
Let's land both PRs. I suggest just updating this PR to remove the first two changes. |
components/layout_2020
Yes, I will do that |
854c3ce
to
99560c2
Compare
Fixed the unresolved links present in components/layout_2020
./mach build -d
does not report any errors./mach test-tidy
does not report any errors