Skip to content

Add capture checking annotation to Scala 3 Standard Library #23688

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 32 commits into from
Aug 16, 2025

Conversation

natsukagami
Copy link
Contributor

@natsukagami natsukagami commented Aug 7, 2025

List of changes

  • Capture checking enabled for all files except listed in the next section
  • boundary is now capture-checked, preventing Label from being leaked outside of its corresponding boundary. Requires Make caps.Capability non-experimental #23507.
  • `

Files missing capture checking

  • Tuple.scala, waiting for Fix match type bounds checking problem #23695 to reach the next base version
  • Mirror.scala, which requires auto-generated Mirrors to be compatible with extending one of the caps.Capability subtraits. Currently the plan is to simply ban case classes.

@natsukagami natsukagami changed the title Add capture checking annotation to Scala 3 Standard Library [do not merge] Add capture checking annotation to Scala 3 Standard Library Aug 7, 2025
@natsukagami natsukagami force-pushed the cc-no-emit branch 2 times, most recently from 9ff8e6c to 13a2ea4 Compare August 11, 2025 11:48
@natsukagami natsukagami marked this pull request as ready for review August 14, 2025 14:24
@natsukagami natsukagami requested a review from a team as a code owner August 14, 2025 14:24
@bracevac bracevac self-requested a review August 14, 2025 14:25
@hamzaremmal hamzaremmal changed the title [do not merge] Add capture checking annotation to Scala 3 Standard Library Add capture checking annotation to Scala 3 Standard Library Aug 15, 2025
@hamzaremmal hamzaremmal enabled auto-merge (squash) August 16, 2025 18:30
@hamzaremmal hamzaremmal merged commit aae5acb into scala:main Aug 16, 2025
49 checks passed
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.

4 participants