Skip to content

feat: improve Cell doc#153633

Open
Its-Just-Nans wants to merge 1 commit intorust-lang:mainfrom
Its-Just-Nans:improve-cell-doc
Open

feat: improve Cell doc#153633
Its-Just-Nans wants to merge 1 commit intorust-lang:mainfrom
Its-Just-Nans:improve-cell-doc

Conversation

@Its-Just-Nans
Copy link
Copy Markdown

Add LazyCell<T, F> to the list in the documentation of Cell

@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 Mar 10, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 10, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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: @scottmcm, libs
  • @scottmcm, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, scottmcm

//! a single-threaded way—they do not implement [`Sync`]. (If you need to do aliasing and
//! mutation among multiple threads, [`Mutex<T>`], [`RwLock<T>`], [`OnceLock<T>`] or [`atomic`]
//! types are the correct data structures to do so).
//! presence of aliasing. [`Cell<T>`], [`RefCell<T>`], [`OnceCell<T>`], and [`LazyCell<T, F>`]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not the only such list (e.g., just below it is repeated again). I think right now all the cell types in std::cell fit this definition, and they're listed out with details below. My guess is that more may be added in the future. I think we should remove the attempt to list all types and instead reference the list below and in std::sync for the multithread case.

Can you try to reword to fit that?

@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 Mar 22, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 22, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

3 participants