Skip to content

Commit f966017

Browse files
committed
Review feedback
1 parent b3d8875 commit f966017

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/api-digester/stability-stdlib-abi-without-asserts.test

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Protocol CodingKey has added inherited protocol Sendable
6565
Protocol CodingKey has generic signature change from <Self : Swift.CustomDebugStringConvertible, Self : Swift.CustomStringConvertible> to <Self : Swift.CustomDebugStringConvertible, Self : Swift.CustomStringConvertible, Self : Swift.Sendable>
6666
Protocol Error has added inherited protocol Sendable
6767
Protocol Error has generic signature change from to <Self : Swift.Sendable>
68+
Constructor _SmallString.init(taggedCocoa:) has mangled name changing from 'Swift._SmallString.init(taggedCocoa: Swift.AnyObject) -> Swift._SmallString' to 'Swift._SmallString.init(taggedCocoa: Swift.AnyObject) -> Swift.Optional<Swift._SmallString>'
69+
Constructor _SmallString.init(taggedCocoa:) has return type change from Swift._SmallString to Swift._SmallString?
6870
Enum Never has added a conformance to an existing protocol Identifiable
6971

7072
// These haven't actually been removed; they are simply marked unavailable.

test/stdlib/Inputs/NSSlowTaggedLocalizedString/NSSlowTaggedLocalizedString.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ - (id)copyWithZone:(id)unused {
7878
}
7979

8080
- (uint16_t)characterAtIndex:(NSUInteger)index {
81-
abort();
8281
if (index >= [self length]) {
83-
//throw the appropriate exception
8482
abort();
8583
}
8684
return (uint16_t)contents[index];
@@ -102,6 +100,7 @@ - (id) description {
102100
}
103101

104102
- (BOOL)getBytes:(void *)buffer maxLength:(uint64_t)max usedLength:(uint64_t *)used encoding:(uint64_t)encoding options:(uint64_t)options range:(NSRange)range remainingRange:(NSRange *)leftover {
103+
assert(encoding == kCFStringEncodingASCII || encoding == kCFStringEncodingUTF8);
105104
strncpy(buffer, contents, max);
106105
if (strlen(contents) > max) {
107106
leftover->location = max;

0 commit comments

Comments
 (0)