From a9967e32eb42287cd6217565a93cd7cc8bd656e5 Mon Sep 17 00:00:00 2001 From: Joseph Cursio Date: Thu, 5 Nov 2026 14:25:53 -0600 Subject: [PATCH] Check MutableSpan with checkPermutableContainer Also run the permutable container checker against the mutable span of a RigidArray, over the same layouts. MutableSpan is nonescapable, so this also runs the checker on a nonescapable container. Co-Authored-By: Claude Opus 5.5 --- Tests/BasicContainersTests/RigidArrayTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/BasicContainersTests/RigidArrayTests.swift b/Tests/BasicContainersTests/RigidArrayTests.swift index 0bf5933c..e9a73e93 100644 --- a/Tests/BasicContainersTests/RigidArrayTests.swift +++ b/Tests/BasicContainersTests/RigidArrayTests.swift @@ -106,6 +106,8 @@ class RigidArrayTests: CollectionTestCase { var items = tracker.rigidArray(layout: layout) let expected = (0 ..< layout.count).map { tracker.instance(for: $0) } checkPermutableContainer(&items, expectedContents: expected) + var span = items.mutableSpan + checkPermutableContainer(&span, expectedContents: expected) } } }