-
Couldn't load subscription status.
- Fork 3.5k
Fix opaqueness violation in Task.Supervisor #14656
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
lib/elixir/lib/task.ex
Outdated
| # exported only to avoid dialyzer opaqueness check in internal Task modules | ||
| @doc false | ||
| @spec build_alias(pid()) :: Task.ref() | ||
| def build_alias(pid) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def build_alias(pid) do | |
| def __alias__(pid) do |
So it is not accidentally imported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call! Perhaps I could keep the defp build_alias too to avoid messing with the optimizations?
|
Is this flake? 🤔 |
Run
Yes, I have been chasing it for a while now. |
Thx for checking! I decided to still go with the private function, so that we keep the consistency with |

Closes #14655
But we need to check the optimization in
__recv_opt_info__isn't broken, I'm not sure how.To be backported.