Skip to content

🍒 [5.10] Avoid issuing warning when user lib implements only ExecutorJob enqueue #68618

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

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Sep 19, 2023

Description: The latter example NIODefaultSerialEventLoopExecutor when the type is more available than the enqueue implementation provided via an extrension would issue a warning that that this enqueue(ExecutorJob) would not be used which is not true.

We need to filter out all "default impls" from the stdlib as we issue this warning.

We also put a note on the offending declaration that one can remove now, to ease getting rid of warnings when possible.

Risk: Low, harmless warning diagnostic removal only
Impact: Only on macOS where availability and extensions are involved AFAICS and according to @FranzBusch testing and NIO ci.

Review by: @hborla
Testing: CI testing, NIO to verify with toolchain
Original PR: #68617
Radar: rdar://115166475

The latter example NIODefaultSerialEventLoopExecutor when the type is
more available than the enqueue implementation provided via an
extrension would issue a warning that that this enqueue(ExecutorJob)
would not be used which is not true.

We need to filter out all "default impls" from the stdlib as we issue
this warning.

We also put a note on the offending declaration that one can remove now,
to ease getting rid of warnings when possible

Resolves rdar://115166475
@ktoso ktoso requested a review from a team as a code owner September 19, 2023 08:56
@ktoso ktoso changed the title Avoid issuing warning when user lib implements only ExecutorJob enqueue 🍒 [5.10] Avoid issuing warning when user lib implements only ExecutorJob enqueue Sep 19, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Sep 19, 2023

@swift-ci please test

@ktoso ktoso requested a review from hborla September 20, 2023 00:33
@ktoso ktoso merged commit 24f92b8 into swiftlang:release/5.10 Sep 20, 2023
@ktoso ktoso deleted the pick-improve-will-not-be-called-warning-nio-sample branch September 20, 2023 14:36
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