Skip to content
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

Move to intra-doc links for library/core/src/alloc/{layout, global, mod}.rs #75783

Merged
merged 3 commits into from
Aug 22, 2020

Conversation

denisvasilik
Copy link
Contributor

Helps with #75080. The files already contained intra-doc links, so there are only minor changes.

@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc

Known issues:

  • [handle_alloc_error]: Link from core to alloc could not be resolved.
  • [slice]: slice is a primitive type, but could not be resolved; had to use [crate::slice] instead.

@rustbot rustbot added A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Aug 21, 2020
@rust-highfive
Copy link
Collaborator

r? @kennytm

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 21, 2020
@@ -145,7 +145,7 @@ impl Layout {
///
/// - If `T` is `Sized`, this function is always safe to call.
/// - If the unsized tail of `T` is:
/// - a [slice], then the length of the slice tail must be an intialized
/// - a [`crate::slice`], then the length of the slice tail must be an intialized
Copy link
Member

Choose a reason for hiding this comment

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

This links to the module, not the primitive. Slices can't currently be linked to with intra-doc links: #63351, so you need to revert to the original link.

Suggested change
/// - a [`crate::slice`], then the length of the slice tail must be an intialized
/// - a [`crate::slice`], then the length of the slice tail must be an initialized

@jyn514
Copy link
Member

jyn514 commented Aug 21, 2020

r? @jyn514

@rust-highfive rust-highfive assigned jyn514 and unassigned kennytm Aug 21, 2020
@jyn514
Copy link
Member

jyn514 commented Aug 22, 2020

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 22, 2020

📌 Commit 2500b6d has been approved by jyn514

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 22, 2020
@bors
Copy link
Contributor

bors commented Aug 22, 2020

⌛ Testing commit 2500b6d with merge 527a685...

@bors
Copy link
Contributor

bors commented Aug 22, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: jyn514
Pushing 527a685 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 22, 2020
@bors bors merged commit 527a685 into rust-lang:master Aug 22, 2020
@jyn514 jyn514 removed the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Aug 25, 2020
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants