Skip to content

Implement <OnceCell,OnceLock>::new_init - #160881

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
malezjaa:implement_new_init
Aug 11, 2026
Merged

Implement <OnceCell,OnceLock>::new_init#160881
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
malezjaa:implement_new_init

Conversation

@malezjaa

@malezjaa malezjaa commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Tracking issues: #159859 #159860

I'm not sure If I was supposed to add any other tests apart from the doc tests.

@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 Aug 10, 2026
@rustbot

rustbot commented Aug 10, 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: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, nia-e

@clarfonthey

Copy link
Copy Markdown
Contributor

Looks good to me. You have good taste in test cases.

@bors r+ rollup

@rust-bors

rust-bors Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 34b02c6 has been approved by clarfonthey

It is now in the queue for this repository.

@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 Aug 11, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 11, 2026
Rollup of 6 pull requests

Successful merges:

 - #160872 (Add back homu-ignore markers around the PR template)
 - #160432 (core: generalize `BorrowedCursor::ensure_init`)
 - #160843 (Overhaul `rustc_query_impl`)
 - #160865 (use `static` instead of `const` for derive(Debug))
 - #160866 (Update books)
 - #160881 (Implement <OnceCell,OnceLock>::new_init)
@rust-bors
rust-bors Bot merged commit 80fdf73 into rust-lang:main Aug 11, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 11, 2026
rust-timer added a commit that referenced this pull request Aug 11, 2026
Rollup merge of #160881 - malezjaa:implement_new_init, r=clarfonthey

Implement <OnceCell,OnceLock>::new_init

Tracking issues: #159859 #159860

I'm not sure If I was supposed to add any other tests apart from the doc tests.
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.

3 participants