Skip to content

[Result migration] Don't return options for StringArray iterators#1266

Merged
ehuss merged 1 commit into
rust-lang:mainfrom
DanielEScherzer:string-array-iter
Jun 12, 2026
Merged

[Result migration] Don't return options for StringArray iterators#1266
ehuss merged 1 commit into
rust-lang:mainfrom
DanielEScherzer:string-array-iter

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Contributor

Instead, treat a None as indicative of a bug in the code, and panic with a clear message that something went wrong.

Also update the documentation of StringArray::iter() to reflect the correct iterated type.

Fixes #1263

Instead, treat a `None` as indicative of a bug in the code, and panic with a
clear message that something went wrong.

Also update the documentation of `StringArray::iter()` to reflect the correct
iterated type.

Fixes rust-lang#1263
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label May 26, 2026
@ehuss ehuss added the semver-breaking-change A SemVer breaking change that will require a new SemVer-incompatible version number bump. label May 29, 2026

@ehuss ehuss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I appreciate it!

I was going to wait on semver breaking changes, but since #1274 was merged I suppose we can go ahead and cycle another version bump.

View changes since this review

@ehuss ehuss added this pull request to the merge queue Jun 12, 2026
Merged via the queue into rust-lang:main with commit 5dc1fed Jun 12, 2026
7 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting on review label Jun 12, 2026
@DanielEScherzer DanielEScherzer deleted the string-array-iter branch June 12, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-breaking-change A SemVer breaking change that will require a new SemVer-incompatible version number bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New StringArray Iterator API should not include Option

3 participants