Skip to content

Remove the new diagnostic added in #302. #352

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

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Apr 15, 2024

In #302, we added a compile-time diagnostic (warning) for expressions like:

#expect(try await foo())

Because we figured that the lack of expression expansion for effectful expressions might be confusing. However, we've found that the diagnostic is significantly noisier than we'd like and the cons outweigh the pros. Hence, this PR removes that diagnostic.

Resolves rdar://126393932.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

In #302, we added a compile-time diagnostic (warning) for expressions like:

```swift
```

Because we figured that the lack of expression expansion for effectful
expressions might be confusing. However, we've found that the diagnostic is
significantly noisier than we'd like and the cons outweigh the pros. Hence, this
PR removes that diagnostic.

Resolves rdar://126393932.
@grynspan grynspan added the bug 🪲 Something isn't working label Apr 15, 2024
@grynspan grynspan self-assigned this Apr 15, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan merged commit 12b0fd9 into main Apr 15, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/126393932-revert-warning branch April 15, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants