File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ extension Maybe: Copyable {}
67
67
extension Maybe : Show where Value: Show & ~ Copyable {
68
68
public borrowing func show( ) -> String {
69
69
switch self {
70
- case let . just( borrowing elm) :
70
+ case let . just( elm) :
71
71
return elm. show ( )
72
72
case . nothing:
73
73
return " <nothing> "
@@ -78,9 +78,9 @@ extension Maybe: Show where Value: Show & ~Copyable {
78
78
extension Maybe : Eq where Value: Eq , Value: ~ Copyable {
79
79
public static func == ( _ a: borrowing Self , _ b: borrowing Self ) -> Bool {
80
80
switch a {
81
- case let . just( borrowing a1 ) :
81
+ case let . just( a1) :
82
82
switch b {
83
- case let . just( borrowing b1 ) :
83
+ case let . just( b1) :
84
84
return a1 == b1
85
85
case . nothing:
86
86
return false
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
3
3
// RUN: %target-build-swift \
4
+ // RUN: -emit-module \
4
5
// RUN: -emit-module-path %t \
5
6
// RUN: -enable-library-evolution \
6
7
// RUN: -module-name Swiftskell \
7
8
// RUN: -parse-as-library \
8
- // RUN: %S/../Inputs/Swiftskell.swift -c -o %t/Swiftskell.o \
9
+ // RUN: %S/../Inputs/Swiftskell.swift \
10
+ // RUN: -enable-experimental-feature SuppressedAssociatedTypes \
9
11
// RUN: -enable-experimental-feature NonescapableTypes
10
12
11
- // RUN: %target-build-swift -o %t/a.out % s -I %t %t/Swiftskell.o
13
+ // RUN: %target-build-swift % s -I %t -o %t/a.out
12
14
// RUN: %target-codesign %t/a.out
13
15
// RUN: %target-run %t/a.out | %FileCheck %s
14
16
You can’t perform that action at this time.
0 commit comments