@@ -11,31 +11,31 @@ use minicore::*;
11
11
struct Wrapper < T > ( T ) ;
12
12
13
13
struct Test < T : Copy > {
14
- f1 : extern "C- cmse-nonsecure-call" fn <U : Copy >( U , u32 , u32 , u32 ) -> u64 ,
14
+ f1 : extern "cmse-nonsecure-call" fn <U : Copy >( U , u32 , u32 , u32 ) -> u64 ,
15
15
//~^ ERROR cannot find type `U` in this scope
16
16
//~| ERROR function pointer types may not have generic parameters
17
- f2 : extern "C- cmse-nonsecure-call" fn ( impl Copy , u32 , u32 , u32 ) -> u64 ,
17
+ f2 : extern "cmse-nonsecure-call" fn ( impl Copy , u32 , u32 , u32 ) -> u64 ,
18
18
//~^ ERROR `impl Trait` is not allowed in `fn` pointer parameters
19
- f3 : extern "C- cmse-nonsecure-call" fn ( T , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
20
- f4 : extern "C- cmse-nonsecure-call" fn ( Wrapper < T > , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
19
+ f3 : extern "cmse-nonsecure-call" fn ( T , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
20
+ f4 : extern "cmse-nonsecure-call" fn ( Wrapper < T > , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
21
21
}
22
22
23
- type WithReference = extern "C- cmse-nonsecure-call" fn ( & usize ) ;
23
+ type WithReference = extern "cmse-nonsecure-call" fn ( & usize ) ;
24
24
25
25
trait Trait { }
26
- type WithTraitObject = extern "C- cmse-nonsecure-call" fn ( & dyn Trait ) -> & dyn Trait ;
27
- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
26
+ type WithTraitObject = extern "cmse-nonsecure-call" fn ( & dyn Trait ) -> & dyn Trait ;
27
+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
28
28
29
29
type WithStaticTraitObject =
30
- extern "C- cmse-nonsecure-call" fn ( & ' static dyn Trait ) -> & ' static dyn Trait ;
31
- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
30
+ extern "cmse-nonsecure-call" fn ( & ' static dyn Trait ) -> & ' static dyn Trait ;
31
+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
32
32
33
33
#[ repr( transparent) ]
34
34
struct WrapperTransparent < ' a > ( & ' a dyn Trait ) ;
35
35
36
36
type WithTransparentTraitObject =
37
- extern "C- cmse-nonsecure-call" fn ( WrapperTransparent ) -> WrapperTransparent ;
38
- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
37
+ extern "cmse-nonsecure-call" fn ( WrapperTransparent ) -> WrapperTransparent ;
38
+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
39
39
40
- type WithVarArgs = extern "C- cmse-nonsecure-call" fn ( u32 , ...) ;
40
+ type WithVarArgs = extern "cmse-nonsecure-call" fn ( u32 , ...) ;
41
41
//~^ ERROR C-variadic function must have a compatible calling convention, like `C`
0 commit comments