@@ -8265,6 +8265,9 @@ ERROR(pack_iteration_where_clause_not_supported, none,
8265
8265
// MARK: Lifetime Dependence Syntax
8266
8266
// ------------------------------------------------------------------------------
8267
8267
8268
+ WARNING(use_lifetime_underscored, PointsToFirstBadToken,
8269
+ " Unsupported use of @lifetime, use @_lifetime to specify lifetime dependencies" , ())
8270
+
8268
8271
ERROR(lifetime_dependence_invalid_param_name, none,
8269
8272
" invalid parameter name specified %0" , (Identifier))
8270
8273
ERROR(lifetime_dependence_invalid_param_index, none,
@@ -8299,7 +8302,7 @@ ERROR(lifetime_dependence_immortal_alone, none,
8299
8302
" cannot specify any other dependence source along with immortal" , ())
8300
8303
ERROR(lifetime_dependence_invalid_inherit_escapable_type, none,
8301
8304
" cannot copy the lifetime of an Escapable type, use "
8302
- " '@lifetime (%1%0)' instead" ,
8305
+ " '@_lifetime (%1%0)' instead" ,
8303
8306
(StringRef, StringRef))
8304
8307
ERROR(lifetime_dependence_cannot_use_parsed_borrow_consuming, none,
8305
8308
" invalid use of %0 dependence with %1 ownership" ,
@@ -8330,11 +8333,11 @@ ERROR(lifetime_dependence_feature_required_inout, none,
8330
8333
(StringRef, Identifier))
8331
8334
8332
8335
ERROR(lifetime_dependence_cannot_infer_return, none,
8333
- " %0 with a ~Escapable result requires '@lifetime (...)'" , (StringRef))
8336
+ " %0 with a ~Escapable result requires '@_lifetime (...)'" , (StringRef))
8334
8337
ERROR(lifetime_dependence_cannot_infer_mutating, none,
8335
- " %0 with a ~Escapable 'self' requires '@lifetime (self: ...)'" , (StringRef))
8338
+ " %0 with a ~Escapable 'self' requires '@_lifetime (self: ...)'" , (StringRef))
8336
8339
ERROR(lifetime_dependence_cannot_infer_inout, none,
8337
- " %0 with a ~Escapable 'inout' parameter requires '@lifetime (%1: ...)'" ,
8340
+ " %0 with a ~Escapable 'inout' parameter requires '@_lifetime (%1: ...)'" ,
8338
8341
(StringRef, Identifier))
8339
8342
8340
8343
// ------------------------------------------------------------------------------
@@ -8345,15 +8348,15 @@ ERROR(lifetime_dependence_cannot_infer_return_no_param, none,
8345
8348
" %0 with a ~Escapable result needs a parameter to depend on" ,
8346
8349
(StringRef))
8347
8350
NOTE(lifetime_dependence_cannot_infer_return_immortal, none,
8348
- " '@lifetime (immortal)' can be used to indicate that values produced by "
8351
+ " '@_lifetime (immortal)' can be used to indicate that values produced by "
8349
8352
" this initializer have no lifetime dependencies" , ())
8350
8353
ERROR(lifetime_dependence_cannot_infer_bitwisecopyable, none,
8351
8354
" cannot infer lifetime dependence on %0 because '%1' is BitwiseCopyable, "
8352
- " specify '@lifetime (borrow self)'" ,
8355
+ " specify '@_lifetime (borrow self)'" ,
8353
8356
(StringRef, StringRef))
8354
8357
ERROR(lifetime_dependence_cannot_infer_kind, none,
8355
8358
" cannot infer the lifetime dependence scope on %0 with a ~Escapable "
8356
- " parameter, specify '@lifetime (borrow %1)' or '@lifetime (copy %1)'" ,
8359
+ " parameter, specify '@_lifetime (borrow %1)' or '@_lifetime (copy %1)'" ,
8357
8360
(StringRef, StringRef))
8358
8361
ERROR(lifetime_dependence_cannot_infer_scope_ownership, none,
8359
8362
" cannot borrow the lifetime of '%0', which has consuming ownership on %1" ,
0 commit comments