Skip to content

MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs#153570

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
RalfJung:assume-init-docs
Mar 16, 2026
Merged

MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs#153570
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
RalfJung:assume-init-docs

Conversation

@RalfJung
Copy link
Member

@RalfJung RalfJung commented Mar 8, 2026

Fixes #150689
r? @tgross35

@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 8, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 8, 2026

tgross35 is currently at their maximum review capacity.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung closed this Mar 8, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 8, 2026
@RalfJung RalfJung reopened this Mar 8, 2026
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 8, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 15, 2026

📌 Commit e82f693 has been approved by tgross35

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 Mar 15, 2026
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 15, 2026
MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs

Fixes rust-lang#150689
r? @tgross35
rust-bors bot pushed a commit that referenced this pull request Mar 15, 2026
Rollup of 6 pull requests

Successful merges:

 - #153639 (Remove `QueryInfo`.)
 - #153570 (MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs)
 - #153793 (Add overview documentation for `std::mem`.)
 - #153884 (test `classify-runtime-const` for `f16`)
 - #153922 (rustc_mir_build only depends on rustc_lint_defs, not rustc_lint)
 - #153928 (remove several redundant tests)
Zalathar added a commit to Zalathar/rust that referenced this pull request Mar 16, 2026
MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs

Fixes rust-lang#150689
r? @tgross35
rust-bors bot pushed a commit that referenced this pull request Mar 16, 2026
Rollup of 7 pull requests

Successful merges:

 - #153639 (Remove `QueryInfo`.)
 - #153570 (MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs)
 - #153793 (Add overview documentation for `std::mem`.)
 - #153922 (rustc_mir_build only depends on rustc_lint_defs, not rustc_lint)
 - #153923 (run_make_support: Print the command and output even if it succeeds)
 - #153925 (Provide better suggestions for inference errors on `.collect()?`)
 - #153928 (remove several redundant tests)
rust-bors bot pushed a commit that referenced this pull request Mar 16, 2026
Rollup of 8 pull requests

Successful merges:

 - #153639 (Remove `QueryInfo`.)
 - #153570 (MaybeUninit: mention common mistakes in assume_init docs; link to validity invariant docs)
 - #153724 (Show named lifetime in closure upvar diagnostics)
 - #153793 (Add overview documentation for `std::mem`.)
 - #153922 (rustc_mir_build only depends on rustc_lint_defs, not rustc_lint)
 - #153923 (run_make_support: Print the command and output even if it succeeds)
 - #153925 (Provide better suggestions for inference errors on `.collect()?`)
 - #153928 (remove several redundant tests)
@rust-bors rust-bors bot merged commit bd67182 into rust-lang:main Mar 16, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 16, 2026
@RalfJung RalfJung deleted the assume-init-docs branch March 18, 2026 07:07
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.

Docs for MaybeUninit::assume_init should indicate that reading uninit POD isn't sound

4 participants