You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/SILGen/noimplicitcopy_attr_arg_generic_users_banned.swift
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,24 +10,24 @@ struct MyStruct {
10
10
// these are part of MyStruct.
11
11
//
12
12
// TODO: Make error specific for move only on struct/enum.
13
-
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
13
+
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
14
14
}
15
15
}
16
16
17
17
structMyGenericStruct<T>{
18
-
func foo(@_noImplicitCopy _ t:T){ // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
18
+
func foo(@_noImplicitCopy _ t:T){ // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
19
19
}
20
20
}
21
21
22
-
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
22
+
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
23
23
}
24
24
25
25
classMyClass{
26
-
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
26
+
func foo<T>(@_noImplicitCopy _ t:T){ // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
27
27
}
28
28
}
29
29
30
30
classMyGenericClass<T>{
31
-
func foo(@_noImplicitCopy _ t:T){ // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
31
+
func foo(@_noImplicitCopy _ t:T){ // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
take(a.u1) // expected-fragile-error{{cannot partially consume 'a' of non-frozen usableFromInline type 'Agg_Internal_UFI' within a function annotated @_alwaysEmitIntoClient}}
37
+
take(a.u1) // expected-fragile-error{{cannot partially consume 'a' of non-frozen usableFromInline type 'Agg_Internal_UFI' within a function annotated '@_alwaysEmitIntoClient'}}
38
38
// expected-resilient-error@-1{{field 'a.u1' was consumed but not reinitialized; the field must be reinitialized during the access}}
39
39
// expected-resilient-note@-2{{consumed here}}
40
-
take(a.u2) // expected-fragile-error{{cannot partially consume 'a' of non-frozen usableFromInline type 'Agg_Internal_UFI' within a function annotated @_alwaysEmitIntoClient}}
40
+
take(a.u2) // expected-fragile-error{{cannot partially consume 'a' of non-frozen usableFromInline type 'Agg_Internal_UFI' within a function annotated '@_alwaysEmitIntoClient'}}
41
41
// expected-resilient-error@-1{{field 'a.u2' was consumed but not reinitialized; the field must be reinitialized during the access}}
Copy file name to clipboardExpand all lines: test/SILOptimizer/moveonly_checker_addressonly_fail.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ struct GenericAggregate<T> {
8
8
}
9
9
10
10
func test1<T>(_ x:T){
11
-
@_noImplicitCopyletx2= x // expected-error {{@_noImplicitCopy can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
11
+
@_noImplicitCopyletx2= x // expected-error {{'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things}}
12
12
13
13
// These fail b/c we use an unchecked_addr_cast to convert addresses from
14
14
// @moveOnly to non-@moveOnly. We should change moveonly_to_copyable to
0 commit comments