File tree Expand file tree Collapse file tree 4 files changed +1
-12
lines changed
compiler/src/dotty/tools/dotc
library/src/scala/annotation
tests/run-custom-args/tasty-inspector Expand file tree Collapse file tree 4 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1025,7 +1025,6 @@ class Definitions {
1025
1025
@ tu lazy val RequiresCapabilityAnnot : ClassSymbol = requiredClass(" scala.annotation.internal.requiresCapability" )
1026
1026
@ tu lazy val RetainsAnnot : ClassSymbol = requiredClass(" scala.annotation.retains" )
1027
1027
@ tu lazy val RetainsByNameAnnot : ClassSymbol = requiredClass(" scala.annotation.retainsByName" )
1028
- @ tu lazy val RetainsUniversalAnnot : ClassSymbol = requiredClass(" scala.annotation.retainsUniversal" )
1029
1028
1030
1029
@ tu lazy val JavaRepeatableAnnot : ClassSymbol = requiredClass(" java.lang.annotation.Repeatable" )
1031
1030
Original file line number Diff line number Diff line change @@ -2669,16 +2669,10 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
2669
2669
end typedPackageDef
2670
2670
2671
2671
def typedAnnotated (tree : untpd.Annotated , pt : Type )(using Context ): Tree = {
2672
- var annot1 = typedExpr(tree.annot, defn.AnnotationClass .typeRef)
2672
+ val annot1 = typedExpr(tree.annot, defn.AnnotationClass .typeRef)
2673
2673
val annotCls = Annotations .annotClass(annot1)
2674
2674
if annotCls == defn.NowarnAnnot then
2675
2675
registerNowarn(annot1, tree)
2676
- else if annotCls == defn.RetainsUniversalAnnot then
2677
- annot1 = typedExpr(
2678
- untpd.New (
2679
- untpd.TypeTree (defn.RetainsAnnot .typeRef),
2680
- (untpd.ref(defn.captureRoot) :: Nil ) :: Nil ).withSpan(tree.annot.span),
2681
- defn.AnnotationClass .typeRef)
2682
2676
val arg1 = typed(tree.arg, pt)
2683
2677
if (ctx.mode is Mode .Type ) {
2684
2678
val cls = annot1.symbol.maybeOwner
Original file line number Diff line number Diff line change @@ -13,6 +13,3 @@ package scala.annotation
13
13
*/
14
14
@ experimental
15
15
class retains (xs : Any * ) extends annotation.StaticAnnotation
16
-
17
- @ experimental
18
- class retainsUniversal extends annotation.StaticAnnotation
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ val experimentalDefinitionInLibrary = Set(
51
51
" scala.annotation.internal.WithPureFuns" ,
52
52
" scala.annotation.internal.requiresCapability" ,
53
53
" scala.annotation.retains" ,
54
- " scala.annotation.retainsUniversal" ,
55
54
" scala.annotation.retainsByName" ,
56
55
" scala.caps" ,
57
56
" scala.caps$" ,
You can’t perform that action at this time.
0 commit comments