Skip to content

Remove ignore-unsafe tidy check in alloc/linklist - #163952

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
yilin0518:fix_tidy_linklist
Oct 26, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
yilin0518:fix_tidy_linklist

Conversation

@yilin0518

@yilin0518 yilin0518 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

View all comments

This PR remove all ignore-tidy-undocumented-unsafe in alloc/src/collections/linked_list.rs. All unsafe call-sites are checked. Besides, this PR adds missing document comments for two unsafe functions(although they are private).

If there exists anything need to be modified, I will update this PR.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 7, 2026
@rustbot

rustbot commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

r? @clarfonthey

rustbot has assigned @clarfonthey.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey

@bushrat011899 bushrat011899 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor nit with the formatting of one particular bit of documentation. This actual safety documentation looks good to me, but I'll leave it to another reviewer to confirm.

View changes since this review

Comment thread library/alloc/src/collections/linked_list.rs
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 8, 2026
@rustbot

rustbot commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot

This comment has been minimized.

@yilin0518

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 19, 2026

@bushrat011899 bushrat011899 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Taking another look at this, I believe the safety documentation doesn't quite cover the full breadth of requirements. There might be more as well, but these are what I picked up.

View changes since this review

Comment thread library/alloc/src/collections/linked_list.rs Outdated
Comment thread library/alloc/src/collections/linked_list.rs Outdated
Comment thread library/alloc/src/collections/linked_list.rs Outdated
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 19, 2026
Comment thread library/alloc/src/collections/linked_list.rs Outdated
@yilin0518
yilin0518 force-pushed the fix_tidy_linklist branch 2 times, most recently from ac8c13e to a381a72 Compare October 21, 2026 03:21
@yilin0518

Copy link
Copy Markdown
Contributor Author

@bushrat011899 thank you very much. I read these codes again and be sure that I was wrong about the index. I update the definition-site doc and the call-site comment. Could you please take another look at it?

@yilin0518

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 25, 2026
@clarfonthey

Copy link
Copy Markdown
Contributor

r? bushrat011899 since I trust your review here and you can just merge once you're happy with it.

@rustbot rustbot assigned bushrat011899 and unassigned clarfonthey Oct 25, 2026

@bushrat011899 bushrat011899 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you so much for all the work you're putting into these docs. I have one last trio of very tiny changes, and then I feel comfortable approving this PR. Since this is exclusively documentation changes I do consider this low-risk, and even potentially incomplete safety documentation is more useful that nothing at all.

View changes since this review

Comment thread library/alloc/src/collections/linked_list.rs
Comment thread library/alloc/src/collections/linked_list.rs
Comment thread library/alloc/src/collections/linked_list.rs
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 26, 2026
@rustbot

rustbot commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@yilin0518

Copy link
Copy Markdown
Contributor Author

@rustbot ready. I have fixed this PR and add the ownership requirement, besides add the deleted blank line. @bushrat011899 thank you for your review!

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 26, 2026

@bushrat011899 bushrat011899 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for all your work on this!

@bors r?

View changes since this review

@rust-bors

rust-bors Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Unknown command "r?". Run @bors help or go to https://bors.rust-lang.org/help to see available commands.

@rustbot

This comment was marked as outdated.

@rustbot

This comment was marked as outdated.

@rustbot

This comment was marked as outdated.

@rustbot

This comment was marked as outdated.

@bushrat011899

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1da334e has been approved by bushrat011899

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

@rust-bors rust-bors Bot 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 Oct 26, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Oct 26, 2026
…hrat011899

Remove ignore-unsafe tidy check in alloc/linklist

This PR remove all `ignore-tidy-undocumented-unsafe` in `alloc/src/collections/linked_list.rs`. All unsafe call-sites are checked. Besides, this PR adds missing document comments for two unsafe functions(although they are private).

If there exists anything need to be modified, I will update this PR.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 26, 2026
…hrat011899

Remove ignore-unsafe tidy check in alloc/linklist

This PR remove all `ignore-tidy-undocumented-unsafe` in `alloc/src/collections/linked_list.rs`. All unsafe call-sites are checked. Besides, this PR adds missing document comments for two unsafe functions(although they are private).

If there exists anything need to be modified, I will update this PR.
rust-bors Bot pushed a commit that referenced this pull request Oct 26, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #164790 (Split `LintLevelsBuilder::add` into `add_ast` and `add_hir`)
 - #163952 (Remove ignore-unsafe tidy check in alloc/linklist)
 - #164691 (Minor lints and performance improvements for LLDB visualizers)
 - #164925 (Cleanup `rustdoc-html` tests)
 - #164941 (Update actions/setup-python action to v7.1.0)
@rust-bors
rust-bors Bot merged commit 16728a1 into rust-lang:main Oct 26, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 26, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 26, 2026
Rollup merge of #163952 - yilin0518:fix_tidy_linklist, r=bushrat011899

Remove ignore-unsafe tidy check in alloc/linklist

This PR remove all `ignore-tidy-undocumented-unsafe` in `alloc/src/collections/linked_list.rs`. All unsafe call-sites are checked. Besides, this PR adds missing document comments for two unsafe functions(although they are private).

If there exists anything need to be modified, I will update this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants