@@ -7870,37 +7870,31 @@ ERROR(lifetime_dependence_only_on_function_method_init_result, none,
78707870 " functions, methods, initializers" , ())
78717871ERROR(lifetime_dependence_invalid_return_type, none,
78727872 " lifetime dependence can only be specified on ~Escapable results" , ())
7873- ERROR(lifetime_dependence_cannot_infer_ambiguous_candidate, none,
7874- " cannot infer lifetime dependence, multiple ~Escapable or ~Copyable "
7875- " parameters with ownership modifiers, specify explicit lifetime "
7876- " dependence" , ())
7877- ERROR(lifetime_dependence_cannot_infer_no_candidates, none,
7878- " cannot infer lifetime dependence, no parameters with ownership "
7879- " modifiers present" , ())
7880- ERROR(lifetime_dependence_ctor_non_self_or_nil_return, none,
7881- " expected nil or self as return values in an initializer with "
7882- " lifetime dependent specifiers" , ())
7883- ERROR(lifetime_dependence_on_bitwise_copyable, none,
7884- " invalid lifetime dependence on bitwise copyable type" , ())
7885- ERROR(lifetime_dependence_cannot_infer_implicit_init, none,
7886- " cannot infer lifetime dependence on implicit initializer of ~Escapable"
7887- " type, define an initializer with explicit lifetime dependence"
7888- " specifiers" , ())
7889- ERROR(lifetime_dependence_cannot_be_applied_to_tuple_elt, none,
7890- " lifetime dependence specifiers cannot be applied to tuple elements" , ())
7891-
7892- // ===----------------------------------------------------------------------===//
7893- // MARK: Transferring
7894- // ===----------------------------------------------------------------------===//
7895-
7896- ERROR(transferring_unsupported_param_specifier, none,
7897- " '%0' cannot be applied to a 'transferring' parameter" , (StringRef))
7898-
7899- ERROR(transferring_only_on_parameters_and_results, none,
7900- " 'transferring' may only be used on parameters and results" , ())
7901- ERROR(transferring_cannot_be_applied_to_tuple_elt, none,
7902- " 'transferring' cannot be applied to tuple elements" , ())
7903-
7873+ ERROR(lifetime_dependence_cannot_infer_ambiguous_candidate, none,
7874+ " cannot infer lifetime dependence %0, multiple parameters qualifiy as a candidate" , (StringRef))
7875+ ERROR(lifetime_dependence_cannot_infer_no_candidates, none,
7876+ " cannot infer lifetime dependence %0, no parameters found that are "
7877+ " ~Escapable or Escapable with a borrowing ownership" , (StringRef))
7878+ ERROR(lifetime_dependence_ctor_non_self_or_nil_return, none,
7879+ " expected nil or self as return values in an initializer with "
7880+ " lifetime dependent specifiers" ,
7881+ ())
7882+ ERROR(lifetime_dependence_on_bitwise_copyable, none,
7883+ " invalid lifetime dependence on bitwise copyable type" , ())
7884+ ERROR(lifetime_dependence_cannot_be_applied_to_tuple_elt, none,
7885+ " lifetime dependence specifiers cannot be applied to tuple elements" , ())
7886+
7887+ // ===----------------------------------------------------------------------===//
7888+ // MARK: Transferring
7889+ // ===----------------------------------------------------------------------===//
7890+
7891+ ERROR(transferring_unsupported_param_specifier, none,
7892+ " '%0' cannot be applied to a 'transferring' parameter" , (StringRef))
7893+
7894+ ERROR(transferring_only_on_parameters_and_results, none,
7895+ " 'transferring' may only be used on parameters and results" , ())
7896+ ERROR(transferring_cannot_be_applied_to_tuple_elt, none,
7897+ " 'transferring' cannot be applied to tuple elements" , ())
79047898
79057899#define UNDEFINE_DIAGNOSTIC_MACROS
79067900#include " DefineDiagnosticMacros.h"
0 commit comments