@@ -433,15 +433,22 @@ ERROR(wrong_linkage_for_serialized_function,none,
433433 " function has wrong linkage to be called from %0" , (StringRef))
434434NOTE(performance_called_from,none,
435435 " called from here" , ())
436- ERROR(manualownership_copy,none,
437- " explicit 'copy' required here; please report this vague diagnostic as a bug" , ())
438- ERROR(manualownership_copy_happened,none,
436+
437+ // ManualOwnership diagnostics
438+ GROUPED_WARNING(manualownership_copy,SemanticCopies,DefaultIgnore,
439+ " implicit 'copy' happens here; please report this vague diagnostic as a bug" , ())
440+ GROUPED_WARNING(manualownership_copy_happened,SemanticCopies,DefaultIgnore,
439441 " accessing %0 may produce a copy; write 'copy' to acknowledge or 'consume' to elide" , (Identifier))
440- ERROR (manualownership_copy_demanded,none ,
442+ GROUPED_WARNING (manualownership_copy_demanded,SemanticCopies,DefaultIgnore ,
441443 " independent copy of %0 is required here; write 'copy' to acknowledge or 'consume' to elide" , (Identifier))
442- ERROR (manualownership_copy_captured,none ,
444+ GROUPED_WARNING (manualownership_copy_captured,SemanticCopies,DefaultIgnore ,
443445 " closure capture of '%0' requires independent copy of it; write [%0 = copy %0] in the closure's capture list to acknowledge" , (StringRef))
444446
447+ GROUPED_WARNING(manualownership_exclusivity,DynamicExclusivity,DefaultIgnore,
448+ " exclusive access here will be checked at runtime; please report this vague diagnostic as a bug" , ())
449+ GROUPED_WARNING(manualownership_exclusivity_named,DynamicExclusivity,DefaultIgnore,
450+ " accessing %0 here may incur runtime exclusivity check%1" , (Identifier, StringRef))
451+
445452// 'transparent' diagnostics
446453ERROR(circular_transparent,none,
447454 " inlining 'transparent' functions forms circular loop" , ())
0 commit comments