File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Tests/TestingMacrosTests/TestSupport Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,8 @@ extension Array where Element == PackageDescription.SwiftSetting {
288
288
// new-enough toolchain.
289
289
. enableExperimentalFeature( " AllowUnsafeAttribute " ) ,
290
290
291
+ . enableUpcomingFeature( " InferIsolatedConformances " ) ,
292
+
291
293
// When building as a package, the macro plugin always builds as an
292
294
// executable rather than a library.
293
295
. define( " SWT_NO_LIBRARY_MACRO_PLUGINS " ) ,
Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ extension Configuration.TestFilter.Kind {
514
514
515
515
/// A protocol representing a value which can be filtered using
516
516
/// ``Configuration/TestFilter-swift.struct``.
517
- private protocol _FilterableItem {
517
+ private protocol _FilterableItem: Sendable {
518
518
/// The test this item represents.
519
519
var test : Test { get }
520
520
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import SwiftSyntaxBuilder
19
19
import SwiftSyntaxMacros
20
20
import SwiftSyntaxMacroExpansion
21
21
22
- fileprivate let allMacros : [ String : any Macro . Type ] = [
22
+ fileprivate let allMacros : [ String : any ( Macro & Sendable ) . Type] = [
23
23
" expect " : ExpectMacro . self,
24
24
" require " : RequireMacro . self,
25
25
" requireAmbiguous " : AmbiguousRequireMacro . self, // different name needed only for unit testing
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ add_compile_options(
17
17
add_compile_options (
18
18
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-upcoming-feature -Xfrontend ExistentialAny>"
19
19
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-upcoming-feature -Xfrontend InternalImportsByDefault>"
20
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-upcoming-feature -Xfrontend MemberImportVisibility>" )
20
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-upcoming-feature -Xfrontend MemberImportVisibility>"
21
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-upcoming-feature -Xfrontend InferIsolatedConformances>" )
21
22
22
23
# Platform-specific definitions.
23
24
if (APPLE )
You can’t perform that action at this time.
0 commit comments