@@ -48,15 +48,15 @@ public enum Alphabet : String {
4848
4949// CHECK-LABEL: sil [ossa] @$s4main14check_alphabetySiAA8AlphabetOF : $@convention(thin) (Alphabet) -> Int {
5050public func check_alphabet( _ state : Alphabet ) -> Int {
51- // FRAGILE: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
52- // RESILIENT: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
51+ // FRAGILE: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
52+ // RESILIENT: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
5353 return state == . E ? 1 : 0
5454}
5555
5656// CHECK-LABEL: sil [ossa] @$s4main9compareItySbAA8AlphabetO_ADtF : $@convention(thin) (Alphabet, Alphabet) -> Bool {
5757public func compareIt( _ state : Alphabet , _ rhs: Alphabet ) -> Bool {
58- // FRAGILE: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
59- // RESILIENT: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
58+ // FRAGILE: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
59+ // RESILIENT: witness_method $Alphabet, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
6060 return state == rhs
6161}
6262
@@ -67,14 +67,14 @@ public enum AlphabetInt : Int {
6767
6868// CHECK-LABEL: sil [ossa] @$s4main18check_alphabet_intySiAA11AlphabetIntOF : $@convention(thin) (AlphabetInt) -> Int {
6969public func check_alphabet_int( _ state : AlphabetInt ) -> Int {
70- // FRAGILE: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
71- // RESILIENT: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
70+ // FRAGILE: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
71+ // RESILIENT: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
7272 return state == . E ? 1 : 0
7373}
7474
7575// CHECK-LABEL: sil [ossa] @$s4main9compareItySbAA11AlphabetIntO_ADtF : $@convention(thin) (AlphabetInt, AlphabetInt) -> Bool {
7676public func compareIt( _ state : AlphabetInt , _ rhs: AlphabetInt ) -> Bool {
77- // FRAGILE: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
78- // RESILIENT: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool
77+ // FRAGILE: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
78+ // RESILIENT: witness_method $AlphabetInt, #Equatable."==" : <Self where Self : Equatable, Self : ~Copyable > (Self.Type) -> (borrowing Self, borrowing Self) -> Bool
7979 return state == rhs
8080}
0 commit comments