Changes in preparation to make caps.Capability
stable
#22849
Merged
+199
−139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make caps a package with non-experimental Capability trait, add
caps.internal
.The following are still under
scala.caps
, while staying@experimental
:cap
-- now an object.CapSet
Contains
trait:given
s cannot be marked@experimental
, an experimentalContains
object was created instead, which containsthe
containsImpl
given.Deprecated aliasesremoved*
andCap
Mutable
,SharedCapability
andconsume
Exists
trait: ideally this should go intointernal
, but I could not get the non-bootstrapped compiler to compile afterwardsunsafe
objectThe following are moved under the experimental
scala.caps.internal
object:capsOf
rootCapability
,reachCapability
andreadOnlyCapability
refineOverride
untrackedCaptures
is moved intocaps.unsafe
.Add documentation for
Capability
and some other experimental annotationsTests are updated accordingly. Note that for some reason error messages are using the
scala.caps
prefix rather thancaps
.