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

add a missing subscript(bounds:) implementation #1893

Merged
merged 1 commit into from Jul 10, 2021

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Jul 9, 2021

An older version of the standard library supplied a bogus implementation by error.
Calling that would have been a crashing bug.

Motivation:

Fix #1892,
which was triggered by apple/swift#38161,
which is a fix for https://bugs.swift.org/browse/SR-14848.

Modifications:

Add the missing subscript(bounds:) implementation. It should always have been there.

Result:

Package should build with the July 8 2021 snapshot of Swift.

- an older version of the standard library supplied a bogus implementation
  by error. Calling *that* would have been a crashing bug.
@swift-server-bot
Copy link

Can one of the admins verify this patch?

11 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement!

@Lukasa
Copy link
Contributor

Lukasa commented Jul 9, 2021

@swift-nio-bot add to allowlist

@glessard
Copy link
Contributor Author

glessard commented Jul 9, 2021

An improvement that is deprecated-on-arrival. 🤷🏽

@glessard
Copy link
Contributor Author

glessard commented Jul 9, 2021

This also triggered a failure in the compatibility suite (sorry for failing to notice).

@Lukasa
Copy link
Contributor

Lukasa commented Jul 10, 2021

I believe that the Swift team are in charge of updating that.

@Lukasa Lukasa merged commit 69f1f2d into apple:main Jul 10, 2021
@glessard glessard deleted the gl-range-subscript branch July 10, 2021 13:35
@Lukasa Lukasa 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 4, 2021
baarde added a commit to baarde/swift-nio that referenced this pull request Aug 26, 2021
Motivation:

This is a backport of apple#1893 for SwiftNIO1.

Modifications:

Add an implementation of subscript(_ bounds:) to StaticString.

Result:

* StaticString can be sliced without crashing, though in O(n) time.
* The package should build with the July 8 2021 snapshot of Swift.
Lukasa pushed a commit that referenced this pull request Sep 2, 2021
…1947)

Motivation:

This is a backport of #1893 for SwiftNIO1.

Modifications:

Add an implementation of subscript(_ bounds:) to StaticString.

Result:

* StaticString can be sliced without crashing, though in O(n) time.
* The package should build with the July 8 2021 snapshot of Swift.
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
3 participants