array::split_array*(): return arrays instead of slices#111829
Closed
Xiretza wants to merge 8 commits intorust-lang:masterfrom
Closed
array::split_array*(): return arrays instead of slices#111829Xiretza wants to merge 8 commits intorust-lang:masterfrom
Xiretza wants to merge 8 commits intorust-lang:masterfrom
Conversation
Collaborator
|
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Splitting a slice returns an Option, akin to get().
This turns invalid split indices into post-mono errors. In the future, these will return e.g. (&[T; M], &[T; N-M]) so that an invalid index becomes a type error.
This also turns post-mono errors due to invalid indices into type errors.
266f250 to
07929ca
Compare
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Member
Contributor
|
@Dylan-DPC I think this should be closed. The part that changes functions to accept an I think a partial stabilization like I propose in #90091 (comment) is a likely path forward, but this PR shouldn't be accepted as-is |
Contributor
Author
|
Yeah, closing this, it will need to be reimplemented according to #117561 once |
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.
This is an update to #90091, spun out of #109049, which
split_array_*()methods onarrayreturn arrays instead of slicesarray::split_array().It is blocked on support for
#![feature(generic_const_exprs)].The first four commits are from #109049.
@rustbot label +S-blocked