10
10
11
11
// Functions
12
12
extern "rust-intrinsic" fn f1 ( ) { } //~ ERROR intrinsics are subject to change
13
+ //~^ ERROR intrinsic must be in
13
14
extern "platform-intrinsic" fn f2 ( ) { } //~ ERROR platform intrinsics are experimental
15
+ //~^ ERROR intrinsic must be in
14
16
extern "vectorcall" fn f3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
15
17
extern "rust-call" fn f4 ( ) { } //~ ERROR rust-call ABI is subject to change
16
18
extern "msp430-interrupt" fn f5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
@@ -22,7 +24,9 @@ extern "amdgpu-kernel" fn f9() {} //~ ERROR amdgpu-kernel ABI is experimental an
22
24
// Methods in trait definition
23
25
trait Tr {
24
26
extern "rust-intrinsic" fn m1 ( ) ; //~ ERROR intrinsics are subject to change
27
+ //~^ ERROR intrinsic must be in
25
28
extern "platform-intrinsic" fn m2 ( ) ; //~ ERROR platform intrinsics are experimental
29
+ //~^ ERROR intrinsic must be in
26
30
extern "vectorcall" fn m3 ( ) ; //~ ERROR vectorcall is experimental and subject to change
27
31
extern "rust-call" fn m4 ( ) ; //~ ERROR rust-call ABI is subject to change
28
32
extern "msp430-interrupt" fn m5 ( ) ; //~ ERROR msp430-interrupt ABI is experimental
@@ -31,8 +35,6 @@ trait Tr {
31
35
extern "thiscall" fn m8 ( ) ; //~ ERROR thiscall is experimental and subject to change
32
36
extern "amdgpu-kernel" fn m9 ( ) ; //~ ERROR amdgpu-kernel ABI is experimental and subject to change
33
37
34
- extern "rust-intrinsic" fn dm1 ( ) { } //~ ERROR intrinsics are subject to change
35
- extern "platform-intrinsic" fn dm2 ( ) { } //~ ERROR platform intrinsics are experimental
36
38
extern "vectorcall" fn dm3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
37
39
extern "rust-call" fn dm4 ( ) { } //~ ERROR rust-call ABI is subject to change
38
40
extern "msp430-interrupt" fn dm5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
@@ -47,7 +49,9 @@ struct S;
47
49
// Methods in trait impl
48
50
impl Tr for S {
49
51
extern "rust-intrinsic" fn m1 ( ) { } //~ ERROR intrinsics are subject to change
52
+ //~^ ERROR intrinsic must be in
50
53
extern "platform-intrinsic" fn m2 ( ) { } //~ ERROR platform intrinsics are experimental
54
+ //~^ ERROR intrinsic must be in
51
55
extern "vectorcall" fn m3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
52
56
extern "rust-call" fn m4 ( ) { } //~ ERROR rust-call ABI is subject to change
53
57
extern "msp430-interrupt" fn m5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
@@ -60,7 +64,9 @@ impl Tr for S {
60
64
// Methods in inherent impl
61
65
impl S {
62
66
extern "rust-intrinsic" fn im1 ( ) { } //~ ERROR intrinsics are subject to change
67
+ //~^ ERROR intrinsic must be in
63
68
extern "platform-intrinsic" fn im2 ( ) { } //~ ERROR platform intrinsics are experimental
69
+ //~^ ERROR intrinsic must be in
64
70
extern "vectorcall" fn im3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
65
71
extern "rust-call" fn im4 ( ) { } //~ ERROR rust-call ABI is subject to change
66
72
extern "msp430-interrupt" fn im5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
0 commit comments