Use @inout result convention for mutate accessors

This commit is contained in:
Meghana Gupta
2025-10-14 15:05:25 -07:00
parent 25af94495c
commit a0c939bd3b
24 changed files with 128 additions and 42 deletions

View File

@@ -488,8 +488,8 @@ public enum ArgumentConvention : CustomStringConvertible {
self = .directUnowned
case .pack:
self = .packOut
case .guaranteed, .guaranteedAddress:
fatalError("Result conventions @guaranteed and @guaranteed_addr are always returned directly")
case .guaranteed, .guaranteedAddress, .inout:
fatalError("Result conventions @guaranteed, @guaranteed_addr and @inout are always returned directly")
}
}