Repository navigation
Replace into_raw_parts/from_raw_parts with into_parts/from_parts - #821
Merged
Merged
Conversation
GauravPawar101
force-pushed
the
rawsmallvec
branch
from
October 30, 2026 09:02
de8269e to
a22e906
Compare
alejandro-vaz
requested changes
Oct 30, 2026
This comment was marked as low quality.
This comment was marked as low quality.
GauravPawar101
force-pushed
the
rawsmallvec
branch
from
October 30, 2026 12:57
a22e906 to
e653f95
Compare
alejandro-vaz
requested changes
Oct 30, 2026
Signed-off-by: Gauravpawar101 <Gauravpawar2522@gmail.com>
Signed-off-by: Gauravpawar101 <Gauravpawar2522@gmail.com>
GauravPawar101
force-pushed
the
rawsmallvec
branch
from
October 30, 2026 13:30
b20bc54 to
4d08b63
Compare
alejandro-vaz
requested changes
Oct 30, 2026
alejandro-vaz
left a comment
Member
There was a problem hiding this comment.
great, this first part looks really good
now deprecate the four methods like we did on src/macro.rs pointing towards their From conversions that don't yet exist but that I'll add on my PR
Collaborator
Author
|
provide message |
Collaborator
Author
|
bro, when is that PR going to merge |
Member
try to deduce it more or less, if you're not sure leave it empty, I'll make sure they are all fine on v2-rc
after this one because my PR depends on this PR merging. I now have UB because of how the old parts stuff worked |
Member
|
failing CI |
Collaborator
Author
|
greeen |
alejandro-vaz
approved these changes
Oct 30, 2026
alejandro-vaz
left a comment
Member
There was a problem hiding this comment.
thanks @GauravPawar101
I'll expand this
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.
Closes #817
Changes
into_parts/from_partstaking and returning(RawSmallVec, LocatedLength), which describe both inline and spilled vectors.into_parts_with_allocator/from_parts_with_allocatoralso carry the allocator.from_parts*areunsafe, with the invariants documented (the tag matches the active union member, the elements are initialized, a spilled buffer has capacity aboveINLINEand came from the given allocator).internals(the_with_allocatorvariants also needallocator-api).into_raw_parts/from_raw_parts.into_iternow usesinto_parts_with_allocator, removing anunsafeblock.