1010
1111// Functions
1212extern "rust-intrinsic" fn f1 ( ) { } //~ ERROR intrinsics are subject to change
13+ //~^ ERROR intrinsic must be in
1314extern "platform-intrinsic" fn f2 ( ) { } //~ ERROR platform intrinsics are experimental
15+ //~^ ERROR intrinsic must be in
1416extern "vectorcall" fn f3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
1517extern "rust-call" fn f4 ( ) { } //~ ERROR rust-call ABI is subject to change
1618extern "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
2224// Methods in trait definition
2325trait Tr {
2426 extern "rust-intrinsic" fn m1 ( ) ; //~ ERROR intrinsics are subject to change
27+ //~^ ERROR intrinsic must be in
2528 extern "platform-intrinsic" fn m2 ( ) ; //~ ERROR platform intrinsics are experimental
29+ //~^ ERROR intrinsic must be in
2630 extern "vectorcall" fn m3 ( ) ; //~ ERROR vectorcall is experimental and subject to change
2731 extern "rust-call" fn m4 ( ) ; //~ ERROR rust-call ABI is subject to change
2832 extern "msp430-interrupt" fn m5 ( ) ; //~ ERROR msp430-interrupt ABI is experimental
@@ -31,8 +35,6 @@ trait Tr {
3135 extern "thiscall" fn m8 ( ) ; //~ ERROR thiscall is experimental and subject to change
3236 extern "amdgpu-kernel" fn m9 ( ) ; //~ ERROR amdgpu-kernel ABI is experimental and subject to change
3337
34- extern "rust-intrinsic" fn dm1 ( ) { } //~ ERROR intrinsics are subject to change
35- extern "platform-intrinsic" fn dm2 ( ) { } //~ ERROR platform intrinsics are experimental
3638 extern "vectorcall" fn dm3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
3739 extern "rust-call" fn dm4 ( ) { } //~ ERROR rust-call ABI is subject to change
3840 extern "msp430-interrupt" fn dm5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
@@ -47,7 +49,9 @@ struct S;
4749// Methods in trait impl
4850impl Tr for S {
4951 extern "rust-intrinsic" fn m1 ( ) { } //~ ERROR intrinsics are subject to change
52+ //~^ ERROR intrinsic must be in
5053 extern "platform-intrinsic" fn m2 ( ) { } //~ ERROR platform intrinsics are experimental
54+ //~^ ERROR intrinsic must be in
5155 extern "vectorcall" fn m3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
5256 extern "rust-call" fn m4 ( ) { } //~ ERROR rust-call ABI is subject to change
5357 extern "msp430-interrupt" fn m5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
@@ -60,7 +64,9 @@ impl Tr for S {
6064// Methods in inherent impl
6165impl S {
6266 extern "rust-intrinsic" fn im1 ( ) { } //~ ERROR intrinsics are subject to change
67+ //~^ ERROR intrinsic must be in
6368 extern "platform-intrinsic" fn im2 ( ) { } //~ ERROR platform intrinsics are experimental
69+ //~^ ERROR intrinsic must be in
6470 extern "vectorcall" fn im3 ( ) { } //~ ERROR vectorcall is experimental and subject to change
6571 extern "rust-call" fn im4 ( ) { } //~ ERROR rust-call ABI is subject to change
6672 extern "msp430-interrupt" fn im5 ( ) { } //~ ERROR msp430-interrupt ABI is experimental
0 commit comments