forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR partially reverts the 1.31 deprecation of casting to `unmanaged`. Prior to the deprecation, any managed class object could be casted to an `unmanaged` instance without affecting the lifetime of the original object. The cast was only allowed for `borrowed` to `unmanaged`, but implicit conversion allowed casting `owned` or `shared` to `unmanaged`. After this PR, users can only cast explicit `borrowed` objects to `unmanaged`. This allows users to escape the lifetime checker. This PR also reverts some of the changes chapel-lang#22404 made to the packaged modules and tests. Testing - [x] paratest w/wo comm - [x] built and checked docs Note to reviewer: since the cast to `unmanaged` has been deprecated for 3 releases, this PR adding a new error message moved straight to making it an error rather than a deprecation warning that will become an error in the future. [Reviewed by @lydia-duncan] closes chapel-lang#23731
- Loading branch information
Showing
53 changed files
with
688 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.