Skip to content

Commit 887fece

Browse files
committed
Gruesome workaround for crasher in MutableSlice tests
1 parent 9b21e23 commit 887fece

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/private/StdlibCollectionUnittest/CheckMutableCollectionType.swift.gyb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ self.test("\(testNamePrefix).subscript(_: Range)/Set/semantics") {
276276
// Call setter implicitly through an inout mutation.
277277
var c = makeWrappedCollection(test.collection)
278278

279-
_mapInPlace(&c[test.bounds(in: c)]) {
279+
var s = c[test.bounds(in: c)]
280+
_mapInPlace(&s) {
280281
wrapValue(OpaqueValue(extractValue($0).value + 90000))
281282
}
282283

0 commit comments

Comments
 (0)