Skip to content

[do not merge] 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

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from

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
We previously had the `ex.label eq label` comparision, which is no longer the case,
with the (package) private label field.
…tuple match types

Currently it's tripping up the cc phase
Just imports for now, no quotes support for capturing types yet
We need to split the files here, because... ?
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