Merged
Conversation
Collaborator
This comment has been minimized.
This comment has been minimized.
6665631 to
124c70e
Compare
This comment has been minimized.
This comment has been minimized.
124c70e to
39493cb
Compare
clarfonthey
reviewed
Nov 23, 2025
| // 2. Fills the remaining gap in `v` if the longer run gets consumed first. | ||
|
|
||
| let buf = MaybeUninit::slice_as_mut_ptr(scratch); | ||
| let buf = scratch.as_mut_ptr().cast::<T>(); |
Contributor
There was a problem hiding this comment.
Probably should be using the cast_init method that was added to replace this instead of a generic cast.
clarfonthey
reviewed
Nov 23, 2025
|
|
||
| let v_base = v.as_ptr(); | ||
| let scratch_base = MaybeUninit::slice_as_mut_ptr(scratch); | ||
| let scratch_base = scratch.as_mut_ptr() as *mut T; |
39493cb to
8cdcaa6
Compare
This comment has been minimized.
This comment has been minimized.
Collaborator
|
☔ The latest upstream changes (presumably #149368) made this pull request unmergeable. Please resolve the merge conflicts. |
8cdcaa6 to
d67f99a
Compare
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. |
clarfonthey
approved these changes
Nov 27, 2025
Member
|
Great, thank you. |
Collaborator
bors
added a commit
that referenced
this pull request
Dec 1, 2025
stabilize maybe_uninit_slice Tracking issue: #63569 Closes: #63569 FCP completed: #63569 (comment) Removes: ```rs pub const fn slice_as_ptr(this: &[MaybeUninit<T>]) -> *const T; pub const fn slice_as_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T; ```
Collaborator
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Collaborator
|
💔 Test failed - checks-actions |
Contributor
Author
|
@bors retry |
Collaborator
|
@bend-n: 🔑 Insufficient privileges: not in try users |
Member
|
@bors retry |
bors
added a commit
that referenced
this pull request
Dec 1, 2025
Rollup of 9 pull requests Successful merges: - #148690 (Implement `clamp_magnitude` method for primitive floats & signed integers) - #149102 (stabilize maybe_uninit_slice) - #149269 (cmse: do not calculate the layout of a type with infer types) - #149299 (Fudge infer vars in the cause code of `Obligation` intentionally) - #149344 (Don't suggest unwrap for Result in const) - #149358 (fix(parse): Limit frontmatter fences to 255 dashes ) - #149445 (make assoc fn inherit const stability from inherent `const impl` blocks) - #149479 (Fix indent in E0591.md) - #149496 (Fix #148889: Add label rib when visiting delegation body) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
that referenced
this pull request
Dec 1, 2025
Rollup merge of #149102 - bend-n:maybe_uninit_slice, r=joboet stabilize maybe_uninit_slice Tracking issue: #63569 Closes: #63569 FCP completed: #63569 (comment) Removes: ```rs pub const fn slice_as_ptr(this: &[MaybeUninit<T>]) -> *const T; pub const fn slice_as_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T; ```
github-actions bot
pushed a commit
to rust-lang/rust-analyzer
that referenced
this pull request
Dec 15, 2025
Rollup of 9 pull requests Successful merges: - rust-lang/rust#148690 (Implement `clamp_magnitude` method for primitive floats & signed integers) - rust-lang/rust#149102 (stabilize maybe_uninit_slice) - rust-lang/rust#149269 (cmse: do not calculate the layout of a type with infer types) - rust-lang/rust#149299 (Fudge infer vars in the cause code of `Obligation` intentionally) - rust-lang/rust#149344 (Don't suggest unwrap for Result in const) - rust-lang/rust#149358 (fix(parse): Limit frontmatter fences to 255 dashes ) - rust-lang/rust#149445 (make assoc fn inherit const stability from inherent `const impl` blocks) - rust-lang/rust#149479 (Fix indent in E0591.md) - rust-lang/rust#149496 (Fix rust-lang/rust#148889: Add label rib when visiting delegation body) r? `@ghost` `@rustbot` modify labels: rollup
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Jan 20, 2026
stabilize maybe_uninit_slice Tracking issue: rust-lang#63569 Closes: rust-lang#63569 FCP completed: rust-lang#63569 (comment) Removes: ```rs pub const fn slice_as_ptr(this: &[MaybeUninit<T>]) -> *const T; pub const fn slice_as_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T; ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue: #63569
Closes: #63569
FCP completed: #63569 (comment)
Removes: