Skip to content

std: misc fixes#14154

Closed
jacobly0 wants to merge 3 commits intoziglang:masterfrom
jacobly0:a-thing
Closed

std: misc fixes#14154
jacobly0 wants to merge 3 commits intoziglang:masterfrom
jacobly0:a-thing

Conversation

@jacobly0
Copy link
Member

@jacobly0 jacobly0 commented Jan 2, 2023

This is for fixing the things I notice while doing a thing.

By factoring out the comptime parts of this computation, vectors are no
longer useful in this function.
/// If a new entry needs to be stored, this function asserts there
/// is enough capacity to store it.
pub fn getOrPutAssumeCapacityAdapted(self: *Self, key: anytype, ctx: anytype) GetOrPutResult {
return self.unmanaged.getOrPutAssumeCapacityAdapted(self.allocator, key, ctx);
Copy link
Member

Choose a reason for hiding this comment

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

This slipped presumably because we didn't touch this bit in any test, correct? Perhaps it'd be good to add a smoke test to avoid this kind of regression in the future?

@andrewrk
Copy link
Member

Ready to merge?

@andrewrk
Copy link
Member

Closing abandoned draft

@andrewrk andrewrk closed this Feb 13, 2023
@jacobly0 jacobly0 deleted the a-thing branch February 21, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants