@@ -8259,6 +8259,9 @@ ERROR(pack_iteration_where_clause_not_supported, none,
82598259// MARK: Lifetime Dependence Syntax
82608260// ------------------------------------------------------------------------------
82618261
8262+ ERROR(use_lifetime_underscored, PointsToFirstBadToken,
8263+ " Unsupported use of @lifetime, use @_lifetime to specify lifetime dependencies" , ())
8264+
82628265ERROR(lifetime_dependence_invalid_param_name, none,
82638266 " invalid parameter name specified %0" , (Identifier))
82648267ERROR(lifetime_dependence_invalid_param_index, none,
@@ -8293,7 +8296,7 @@ ERROR(lifetime_dependence_immortal_alone, none,
82938296 " cannot specify any other dependence source along with immortal" , ())
82948297ERROR(lifetime_dependence_invalid_inherit_escapable_type, none,
82958298 " cannot copy the lifetime of an Escapable type, use "
8296- " '@lifetime (%1%0)' instead" ,
8299+ " '@_lifetime (%1%0)' instead" ,
82978300 (StringRef, StringRef))
82988301ERROR(lifetime_dependence_cannot_use_parsed_borrow_consuming, none,
82998302 " invalid use of %0 dependence with %1 ownership" ,
@@ -8324,11 +8327,11 @@ ERROR(lifetime_dependence_feature_required_inout, none,
83248327 (StringRef, Identifier))
83258328
83268329ERROR(lifetime_dependence_cannot_infer_return, none,
8327- " %0 with a ~Escapable result requires '@lifetime (...)'" , (StringRef))
8330+ " %0 with a ~Escapable result requires '@_lifetime (...)'" , (StringRef))
83288331ERROR(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))
83308333ERROR(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: ...)'" ,
83328335 (StringRef, Identifier))
83338336
83348337// ------------------------------------------------------------------------------
@@ -8339,15 +8342,15 @@ ERROR(lifetime_dependence_cannot_infer_return_no_param, none,
83398342 " %0 with a ~Escapable result needs a parameter to depend on" ,
83408343 (StringRef))
83418344NOTE(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 "
83438346 " this initializer have no lifetime dependencies" , ())
83448347ERROR(lifetime_dependence_cannot_infer_bitwisecopyable, none,
83458348 " cannot infer lifetime dependence on %0 because '%1' is BitwiseCopyable, "
8346- " specify '@lifetime (borrow self)'" ,
8349+ " specify '@_lifetime (borrow self)'" ,
83478350 (StringRef, StringRef))
83488351ERROR(lifetime_dependence_cannot_infer_kind, none,
83498352 " 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)'" ,
83518354 (StringRef, StringRef))
83528355ERROR(lifetime_dependence_cannot_infer_scope_ownership, none,
83538356 " cannot borrow the lifetime of '%0', which has consuming ownership on %1" ,
0 commit comments