@@ -8259,6 +8259,9 @@ ERROR(pack_iteration_where_clause_not_supported, none,
8259
8259
// MARK: Lifetime Dependence Syntax
8260
8260
// ------------------------------------------------------------------------------
8261
8261
8262
+ ERROR(use_lifetime_underscored, PointsToFirstBadToken,
8263
+ " Unsupported use of @lifetime, use @_lifetime to specify lifetime dependencies" , ())
8264
+
8262
8265
ERROR(lifetime_dependence_invalid_param_name, none,
8263
8266
" invalid parameter name specified %0" , (Identifier))
8264
8267
ERROR(lifetime_dependence_invalid_param_index, none,
@@ -8293,7 +8296,7 @@ ERROR(lifetime_dependence_immortal_alone, none,
8293
8296
" cannot specify any other dependence source along with immortal" , ())
8294
8297
ERROR(lifetime_dependence_invalid_inherit_escapable_type, none,
8295
8298
" cannot copy the lifetime of an Escapable type, use "
8296
- " '@lifetime (%1%0)' instead" ,
8299
+ " '@_lifetime (%1%0)' instead" ,
8297
8300
(StringRef, StringRef))
8298
8301
ERROR(lifetime_dependence_cannot_use_parsed_borrow_consuming, none,
8299
8302
" invalid use of %0 dependence with %1 ownership" ,
@@ -8324,11 +8327,11 @@ ERROR(lifetime_dependence_feature_required_inout, none,
8324
8327
(StringRef, Identifier))
8325
8328
8326
8329
ERROR(lifetime_dependence_cannot_infer_return, none,
8327
- " %0 with a ~Escapable result requires '@lifetime (...)'" , (StringRef))
8330
+ " %0 with a ~Escapable result requires '@_lifetime (...)'" , (StringRef))
8328
8331
ERROR(lifetime_dependence_cannot_infer_mutating, none,
8329
- " %0 with a ~Escapable 'self' requires '@lifetime (self: ...)'" , (StringRef))
8332
+ " %0 with a ~Escapable 'self' requires '@_lifetime (self: ...)'" , (StringRef))
8330
8333
ERROR(lifetime_dependence_cannot_infer_inout, none,
8331
- " %0 with a ~Escapable 'inout' parameter requires '@lifetime (%1: ...)'" ,
8334
+ " %0 with a ~Escapable 'inout' parameter requires '@_lifetime (%1: ...)'" ,
8332
8335
(StringRef, Identifier))
8333
8336
8334
8337
// ------------------------------------------------------------------------------
@@ -8339,15 +8342,15 @@ ERROR(lifetime_dependence_cannot_infer_return_no_param, none,
8339
8342
" %0 with a ~Escapable result needs a parameter to depend on" ,
8340
8343
(StringRef))
8341
8344
NOTE(lifetime_dependence_cannot_infer_return_immortal, none,
8342
- " '@lifetime (immortal)' can be used to indicate that values produced by "
8345
+ " '@_lifetime (immortal)' can be used to indicate that values produced by "
8343
8346
" this initializer have no lifetime dependencies" , ())
8344
8347
ERROR(lifetime_dependence_cannot_infer_bitwisecopyable, none,
8345
8348
" cannot infer lifetime dependence on %0 because '%1' is BitwiseCopyable, "
8346
- " specify '@lifetime (borrow self)'" ,
8349
+ " specify '@_lifetime (borrow self)'" ,
8347
8350
(StringRef, StringRef))
8348
8351
ERROR(lifetime_dependence_cannot_infer_kind, none,
8349
8352
" cannot infer the lifetime dependence scope on %0 with a ~Escapable "
8350
- " parameter, specify '@lifetime (borrow %1)' or '@lifetime (copy %1)'" ,
8353
+ " parameter, specify '@_lifetime (borrow %1)' or '@_lifetime (copy %1)'" ,
8351
8354
(StringRef, StringRef))
8352
8355
ERROR(lifetime_dependence_cannot_infer_scope_ownership, none,
8353
8356
" cannot borrow the lifetime of '%0', which has consuming ownership on %1" ,
0 commit comments