@@ -54,8 +54,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
54
54
* Emits an error and throws if the expression does not represent a value or possibly contains side effects.
55
55
* Otherwise returns the value.
56
56
*/
57
- // TODO: deprecate in 3.1.0 and remove @experimental from valueOrAbort
58
- // @deprecated("Use valueOrThrow", "3.1.0")
57
+ @ deprecated(" Use valueOrAbort" , " 3.1.0" )
59
58
def valueOrError (using FromExpr [T ]): T =
60
59
val fromExpr = summon[FromExpr [T ]]
61
60
def reportError =
@@ -69,7 +68,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
69
68
* Emits an error and aborts if the expression does not represent a value or possibly contains side effects.
70
69
* Otherwise returns the value.
71
70
*/
72
- @ experimental
73
71
def valueOrAbort (using FromExpr [T ]): T
74
72
75
73
end extension
@@ -4192,30 +4190,24 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4192
4190
def error (msg : String , pos : Position ): Unit
4193
4191
4194
4192
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4195
- @ experimental
4196
4193
def errorAndAbort (msg : String ): Nothing
4197
4194
4198
4195
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4199
- @ experimental
4200
4196
def errorAndAbort (msg : String , expr : Expr [Any ]): Nothing
4201
4197
4202
4198
/** Report an error message at the given position and throw a StopMacroExpansion */
4203
- @ experimental
4204
4199
def errorAndAbort (msg : String , pos : Position ): Nothing
4205
4200
4206
4201
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4207
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4208
- // @deprecated("Use errorAndAbort", "3.1.0")
4202
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4209
4203
def throwError (msg : String ): Nothing
4210
4204
4211
4205
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4212
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4213
- // @deprecated("Use errorAndAbort", "3.1.0")
4206
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4214
4207
def throwError (msg : String , expr : Expr [Any ]): Nothing
4215
4208
4216
4209
/** Report an error message at the given position and throw a StopMacroExpansion */
4217
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4218
- // @deprecated("Use errorAndAbort", "3.1.0")
4210
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4219
4211
def throwError (msg : String , pos : Position ): Nothing
4220
4212
4221
4213
/** Report a warning at the position of the macro expansion */
0 commit comments