@@ -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
@@ -4179,30 +4177,24 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4179
4177
def error (msg : String , pos : Position ): Unit
4180
4178
4181
4179
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4182
- @ experimental
4183
4180
def errorAndAbort (msg : String ): Nothing
4184
4181
4185
4182
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4186
- @ experimental
4187
4183
def errorAndAbort (msg : String , expr : Expr [Any ]): Nothing
4188
4184
4189
4185
/** Report an error message at the given position and throw a StopMacroExpansion */
4190
- @ experimental
4191
4186
def errorAndAbort (msg : String , pos : Position ): Nothing
4192
4187
4193
4188
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4194
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4195
- // @deprecated("Use errorAndAbort", "3.1.0")
4189
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4196
4190
def throwError (msg : String ): Nothing
4197
4191
4198
4192
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4199
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4200
- // @deprecated("Use errorAndAbort", "3.1.0")
4193
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4201
4194
def throwError (msg : String , expr : Expr [Any ]): Nothing
4202
4195
4203
4196
/** Report an error message at the given position and throw a StopMacroExpansion */
4204
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4205
- // @deprecated("Use errorAndAbort", "3.1.0")
4197
+ @ deprecated(" Use errorAndAbort" , " 3.1.0" )
4206
4198
def throwError (msg : String , pos : Position ): Nothing
4207
4199
4208
4200
/** Report a warning at the position of the macro expansion */
0 commit comments