-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[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
base: main
Are you sure you want to change the base?
Conversation
We previously had the `ex.label eq label` comparision, which is no longer the case, with the (package) private label field.
Mostly imports here
…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... ?
Relies on scala#23695 to land on next base version
9ff8e6c
to
13a2ea4
Compare
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.
@natsukagami can we please drop this file?
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.
+1
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.
+1
@@ -1149,6 +1149,7 @@ class Definitions { | |||
"reactor.util.annotation.NonNullApi" :: | |||
"io.reactivex.annotations.NonNull" :: Nil) | |||
|
|||
|
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.
Unnecessary change here
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.
This file seems to be accidentally included in the PR too.
List of changes
boundary
is now capture-checked, preventingLabel
from being leaked outside of its correspondingboundary
. Requires Makecaps.Capability
non-experimental #23507.Files missing capture checking
Tuple.scala
, waiting for Fix match type bounds checking problem #23695 to reach the next base versionMirror.scala
, which requires auto-generated Mirrors to be compatible with extending one of thecaps.Capability
subtraits. Currently the plan is to simply ban case classes.