Skip to content

[move-only] Emit a clearer message around deinits. #64289

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

Conversation

gottesmm
Copy link
Contributor

Specifically:

  1. Fix the error message so that when we say you can't have a deinit that a deinit can be on a noncopyable type along side a class or an actor.

  2. Even though we already error on @objc enums and say they cannot be noncopyable, we did not emit an error on the deinit saying that @objc enums cannot have a deinit. I put in a nice to have error just to make it even clearer.

rdar://105855978
rdar://106566054

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm force-pushed the pr-bad04a239d63b44e8fd169d5bf8f2cd1baf19542 branch from 74d6259 to f83c85a Compare March 10, 2023 23:18
@gottesmm gottesmm requested a review from AnthonyLatsis as a code owner March 10, 2023 23:18
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm force-pushed the pr-bad04a239d63b44e8fd169d5bf8f2cd1baf19542 branch from f83c85a to eddcf67 Compare March 11, 2023 00:14
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@ahoppen ahoppen removed their request for review March 11, 2023 00:47
@gottesmm gottesmm force-pushed the pr-bad04a239d63b44e8fd169d5bf8f2cd1baf19542 branch from eddcf67 to 44c30aa Compare March 12, 2023 21:03
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

Specifically:

1. Fix the error message so that when we say you can't have a deinit that a
deinit can be on a noncopyable type along side a class or an actor.

2. Even though we already error on @objc enums and say they cannot be
noncopyable, we did not emit an error on the deinit saying that @objc enums
cannot have a deinit. I put in a nice to have error just to make it even
clearer.

rdar://105855978
rdar://106566054
@gottesmm gottesmm force-pushed the pr-bad04a239d63b44e8fd169d5bf8f2cd1baf19542 branch from 44c30aa to 40449a6 Compare March 12, 2023 21:47
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm merged commit aae9483 into swiftlang:main Mar 13, 2023
@gottesmm gottesmm deleted the pr-bad04a239d63b44e8fd169d5bf8f2cd1baf19542 branch March 13, 2023 03:42
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.

1 participant