@@ -8265,6 +8265,9 @@ ERROR(pack_iteration_where_clause_not_supported, none,
82658265// MARK: Lifetime Dependence Syntax
82668266// ------------------------------------------------------------------------------
82678267
8268+ WARNING(use_lifetime_underscored, PointsToFirstBadToken,
8269+ " Unsupported use of @lifetime, use @_lifetime to specify lifetime dependencies" , ())
8270+
82688271ERROR(lifetime_dependence_invalid_param_name, none,
82698272 " invalid parameter name specified %0" , (Identifier))
82708273ERROR(lifetime_dependence_invalid_param_index, none,
@@ -8299,7 +8302,7 @@ ERROR(lifetime_dependence_immortal_alone, none,
82998302 " cannot specify any other dependence source along with immortal" , ())
83008303ERROR(lifetime_dependence_invalid_inherit_escapable_type, none,
83018304 " cannot copy the lifetime of an Escapable type, use "
8302- " '@lifetime (%1%0)' instead" ,
8305+ " '@_lifetime (%1%0)' instead" ,
83038306 (StringRef, StringRef))
83048307ERROR(lifetime_dependence_cannot_use_parsed_borrow_consuming, none,
83058308 " invalid use of %0 dependence with %1 ownership" ,
@@ -8330,11 +8333,11 @@ ERROR(lifetime_dependence_feature_required_inout, none,
83308333 (StringRef, Identifier))
83318334
83328335ERROR(lifetime_dependence_cannot_infer_return, none,
8333- " %0 with a ~Escapable result requires '@lifetime (...)'" , (StringRef))
8336+ " %0 with a ~Escapable result requires '@_lifetime (...)'" , (StringRef))
83348337ERROR(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))
83368339ERROR(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: ...)'" ,
83388341 (StringRef, Identifier))
83398342
83408343// ------------------------------------------------------------------------------
@@ -8345,15 +8348,15 @@ ERROR(lifetime_dependence_cannot_infer_return_no_param, none,
83458348 " %0 with a ~Escapable result needs a parameter to depend on" ,
83468349 (StringRef))
83478350NOTE(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 "
83498352 " this initializer have no lifetime dependencies" , ())
83508353ERROR(lifetime_dependence_cannot_infer_bitwisecopyable, none,
83518354 " cannot infer lifetime dependence on %0 because '%1' is BitwiseCopyable, "
8352- " specify '@lifetime (borrow self)'" ,
8355+ " specify '@_lifetime (borrow self)'" ,
83538356 (StringRef, StringRef))
83548357ERROR(lifetime_dependence_cannot_infer_kind, none,
83558358 " 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)'" ,
83578360 (StringRef, StringRef))
83588361ERROR(lifetime_dependence_cannot_infer_scope_ownership, none,
83598362 " cannot borrow the lifetime of '%0', which has consuming ownership on %1" ,
0 commit comments