Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the _failEarlyRangeCheck methods as no-ops #2161

Merged
merged 8 commits into from
Jun 13, 2022

Conversation

stepan-ulyanin
Copy link
Contributor

Implements all versions of the _failEarlyRangeCheck(_:bounds:) Collection methods as no-ops.

Motivation:

#1827 specifies the missing Collection customization points that we would like to customize.

It seems that the _failEarlyRangeCheck(_:bounds:) should be implemented as no-ops.

Modifications:

Adds three methods to the CircularBuffer conforming to Collection

Result:

The default implementations of the _failEarlyRangeCheck methods are going to be customized to be no-ops in the CircularBuffer struct.

@Lukasa Lukasa enabled auto-merge (squash) June 13, 2022 12:56
@Lukasa Lukasa merged commit c0911e1 into apple:main Jun 13, 2022
@dnadoba dnadoba added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants