@@ -7795,47 +7795,55 @@ ERROR(pack_iteration_where_clause_not_supported, none,
7795
7795
" 'where' clause in pack iteration is not supported" , ())
7796
7796
7797
7797
7798
- // ------------------------------------------------------------------------------
7799
- // MARK: Lifetime Dependence Diagnostics
7800
- // ------------------------------------------------------------------------------
7801
-
7802
- ERROR(lifetime_dependence_invalid_param_name, none,
7803
- " invalid parameter name specified %0" , (Identifier))
7804
- ERROR(lifetime_dependence_invalid_param_index, none,
7805
- " invalid parameter index specified %0" , (unsigned ))
7806
- ERROR(lifetime_dependence_invalid_self, none,
7807
- " invalid lifetime dependence specifier, self is valid in non-static "
7808
- " methods only" , ())
7809
- ERROR(lifetime_dependence_duplicate_param_id, none,
7810
- " duplicate lifetime dependence specifier" , ())
7811
- ERROR(lifetime_dependence_cannot_use_kind, none,
7812
- " invalid use of %0 lifetime dependence for %1 ownership" ,
7813
- (StringRef, StringRef))
7814
- ERROR(lifetime_dependence_only_on_function_method_init_result, none,
7815
- " lifetime dependence specifiers may only be used on result of "
7816
- " functions, methods, initializers" ,
7817
- ())
7818
- ERROR(lifetime_dependence_invalid_return_type, none,
7819
- " lifetime dependence can only be specified on ~Escapable results" , ())
7820
- ERROR(lifetime_dependence_missing_ownership_modifier, none,
7821
- " lifetime dependence can only be specified on parameters with ownership "
7822
- " modifiers (borrowing, consuming, inout)" , ())
7823
- ERROR(lifetime_dependence_cannot_infer_wo_ownership_modifier_on_method, none,
7824
- " cannot infer lifetime dependence, specify ownership modifier for the "
7825
- " method" ,
7826
- ())
7827
- ERROR(lifetime_dependence_cannot_infer_wo_ambiguous_candidate, none,
7828
- " cannot infer lifetime dependence, multiple ~Escapable or ~Copyable "
7829
- " parameters with ownership modifiers, specify explicit lifetime "
7830
- " dependence" ,
7831
- ())
7832
- ERROR(lifetime_dependence_cannot_infer_no_candidates, none,
7833
- " cannot infer lifetime dependence, no ~Escapable or ~Copyable "
7834
- " parameters with ownership modifiers present" ,
7835
- ())
7836
- ERROR(lifetime_dependence_ctor_non_self_or_nil_return, none,
7837
- " expected nil or self as return values in an initializer with "
7838
- " lifetime dependent specifiers" ,
7839
- ())
7798
+ // ------------------------------------------------------------------------------
7799
+ // MARK: Lifetime Dependence Diagnostics
7800
+ // ------------------------------------------------------------------------------
7801
+
7802
+ ERROR(lifetime_dependence_invalid_param_name, none,
7803
+ " invalid parameter name specified %0" , (Identifier))
7804
+ ERROR(lifetime_dependence_invalid_param_index, none,
7805
+ " invalid parameter index specified %0" , (unsigned ))
7806
+ ERROR(lifetime_dependence_invalid_self, none,
7807
+ " invalid lifetime dependence specifier, self is valid in non-static "
7808
+ " methods only" , ())
7809
+ ERROR(lifetime_dependence_duplicate_param_id, none,
7810
+ " duplicate lifetime dependence specifier" , ())
7811
+ ERROR(lifetime_dependence_cannot_use_kind, none,
7812
+ " invalid use of %0 lifetime dependence for %1 ownership" ,
7813
+ (StringRef, StringRef))
7814
+ ERROR(lifetime_dependence_only_on_function_method_init_result, none,
7815
+ " lifetime dependence specifiers may only be used on result of "
7816
+ " functions, methods, initializers" ,
7817
+ ())
7818
+ ERROR(lifetime_dependence_invalid_return_type, none,
7819
+ " lifetime dependence can only be specified on ~Escapable results" , ())
7820
+ ERROR(lifetime_dependence_missing_ownership_modifier, none,
7821
+ " lifetime dependence can only be specified on parameters with ownership "
7822
+ " modifiers (borrowing, consuming, inout)" , ())
7823
+ ERROR(lifetime_dependence_cannot_infer_wo_ownership_modifier_on_method, none,
7824
+ " cannot infer lifetime dependence, specify ownership modifier for the "
7825
+ " method" ,
7826
+ ())
7827
+ ERROR(lifetime_dependence_cannot_infer_wo_ambiguous_candidate, none,
7828
+ " cannot infer lifetime dependence, multiple ~Escapable or ~Copyable "
7829
+ " parameters with ownership modifiers, specify explicit lifetime "
7830
+ " dependence" ,
7831
+ ())
7832
+ ERROR(lifetime_dependence_cannot_infer_no_candidates, none,
7833
+ " cannot infer lifetime dependence, no ~Escapable or ~Copyable "
7834
+ " parameters with ownership modifiers present" ,
7835
+ ())
7836
+ ERROR(lifetime_dependence_ctor_non_self_or_nil_return, none,
7837
+ " expected nil or self as return values in an initializer with "
7838
+ " lifetime dependent specifiers" ,
7839
+ ())
7840
+
7841
+ // ===----------------------------------------------------------------------===//
7842
+ // MARK: Transferring
7843
+ // ===----------------------------------------------------------------------===//
7844
+
7845
+ ERROR(transferring_unsupported_param_specifier, none,
7846
+ " '%0' cannot be applied to a 'transferring' parameter" , (StringRef))
7847
+
7840
7848
#define UNDEFINE_DIAGNOSTIC_MACROS
7841
7849
#include " DefineDiagnosticMacros.h"
0 commit comments