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

[stdlib] Fix current warnings in the core stdlib (Duration, Optional) #73505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lorentey
Copy link
Member

@lorentey lorentey commented May 8, 2024

  • Duration: fix "variable was never mutated" warnings.
  • Optional: migrate from _borrowing to borrowing spelling in pattern matches

@lorentey lorentey requested a review from a team as a code owner May 8, 2024 02:05
@lorentey
Copy link
Member Author

lorentey commented May 8, 2024

@swift-ci test

@@ -232,7 +232,7 @@ extension Optional where Wrapped: ~Copyable {
) throws(E) -> U? {
#if $NoncopyableGenerics
switch self {
case .some(_borrowing y):
case .some(borrowing y):
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this syntax is not happening with the recently accepted proposal if you want to have to update this again in a future patch.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

2 participants