mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85097 from meg-gupta/withdiagpr
Update borrow accessor diagnostics and synthesis
This commit is contained in:
@@ -1798,9 +1798,16 @@ ERROR(mutating_invalid_classes,none, "%0 is not valid on %kindonly1s in "
|
||||
ERROR(functions_mutating_and_not,none,
|
||||
"method must not be declared both %0 and %1",
|
||||
(SelfAccessKind, SelfAccessKind))
|
||||
|
||||
ERROR(static_functions_not_mutating,none,
|
||||
"static functions must not be declared mutating", ())
|
||||
|
||||
ERROR(consuming_invalid_borrow_mutate_accessor, none,
|
||||
"%0 cannot be declared consuming", (StringRef))
|
||||
|
||||
ERROR(ownership_modifier_unsupported_borrow_mutate_accessor, none,
|
||||
"%0 ownership modifier is not yet supported on %1", (StringRef, StringRef))
|
||||
|
||||
ERROR(readwriter_mutatingness_differs_from_reader_or_writer_mutatingness,none,
|
||||
"%0 cannot be %1 when "
|
||||
"%select{both the %3 is %4 and the %5 is not %6|either the %3 is not %4 or the %5 is %6|the %3 is not %4|the %5 is %6}2",
|
||||
|
||||
Reference in New Issue
Block a user