File tree Expand file tree Collapse file tree 4 files changed +38
-24
lines changed Expand file tree Collapse file tree 4 files changed +38
-24
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( abi_vectorcall ) ]
1
+ #![ feature( rust_cold_cc ) ]
2
2
3
3
//@ is "$.index[?(@.name=='AbiRust')].inner.type_alias.type.function_pointer.header.abi" \"Rust\"
4
4
pub type AbiRust = fn ( ) ;
@@ -15,8 +15,5 @@ pub type AbiCUnwind = extern "C-unwind" fn();
15
15
//@ is "$.index[?(@.name=='AbiSystemUnwind')].inner.type_alias.type.function_pointer.header.abi" '{"System": {"unwind": true}}'
16
16
pub type AbiSystemUnwind = extern "system-unwind" fn ( ) ;
17
17
18
- //@ is "$.index[?(@.name=='AbiVecorcall')].inner.type_alias.type.function_pointer.header.abi.Other" '"\"vectorcall\""'
19
- pub type AbiVecorcall = extern "vectorcall" fn ( ) ;
20
-
21
- //@ is "$.index[?(@.name=='AbiVecorcallUnwind')].inner.type_alias.type.function_pointer.header.abi.Other" '"\"vectorcall-unwind\""'
22
- pub type AbiVecorcallUnwind = extern "vectorcall-unwind" fn ( ) ;
18
+ //@ is "$.index[?(@.name=='AbiRustCold')].inner.type_alias.type.function_pointer.header.abi.Other" '"\"rust-cold\""'
19
+ pub type AbiRustCold = extern "rust-cold" fn ( ) ;
Original file line number Diff line number Diff line change 1
- #![ feature( abi_vectorcall ) ]
1
+ #![ feature( rust_cold_cc ) ]
2
2
3
3
//@ is "$.index[?(@.name=='abi_rust')].inner.function.header.abi" \"Rust\"
4
4
pub fn abi_rust ( ) { }
@@ -15,8 +15,5 @@ pub extern "C-unwind" fn abi_c_unwind() {}
15
15
//@ is "$.index[?(@.name=='abi_system_unwind')].inner.function.header.abi" '{"System": {"unwind": true}}'
16
16
pub extern "system-unwind" fn abi_system_unwind ( ) { }
17
17
18
- //@ is "$.index[?(@.name=='abi_vectorcall')].inner.function.header.abi.Other" '"\"vectorcall\""'
19
- pub extern "vectorcall" fn abi_vectorcall ( ) { }
20
-
21
- //@ is "$.index[?(@.name=='abi_vectorcall_unwind')].inner.function.header.abi.Other" '"\"vectorcall-unwind\""'
22
- pub extern "vectorcall-unwind" fn abi_vectorcall_unwind ( ) { }
18
+ //@ is "$.index[?(@.name=='abi_rust_cold')].inner.function.header.abi.Other" '"\"rust-cold\""'
19
+ pub extern "rust-cold" fn abi_rust_cold ( ) { }
Original file line number Diff line number Diff line change 1
- #![ feature( abi_vectorcall) ]
2
-
1
+ #![ feature( rust_cold_cc) ]
3
2
//@ has "$.index[?(@.name=='Foo')]"
4
3
pub struct Foo ;
5
4
@@ -19,11 +18,8 @@ impl Foo {
19
18
//@ is "$.index[?(@.name=='abi_system_unwind')].inner.function.header.abi" '{"System": {"unwind": true}}'
20
19
pub extern "system-unwind" fn abi_system_unwind ( ) { }
21
20
22
- //@ is "$.index[?(@.name=='abi_vectorcall')].inner.function.header.abi.Other" '"\"vectorcall\""'
23
- pub extern "vectorcall" fn abi_vectorcall ( ) { }
24
-
25
- //@ is "$.index[?(@.name=='abi_vectorcall_unwind')].inner.function.header.abi.Other" '"\"vectorcall-unwind\""'
26
- pub extern "vectorcall-unwind" fn abi_vectorcall_unwind ( ) { }
21
+ //@ is "$.index[?(@.name=='abi_rust_cold')].inner.function.header.abi.Other" '"\"rust-cold\""'
22
+ pub extern "rust-cold" fn abi_rust_cold ( ) { }
27
23
}
28
24
29
25
pub trait Bar {
@@ -42,9 +38,6 @@ pub trait Bar {
42
38
//@ is "$.index[?(@.name=='trait_abi_system_unwind')].inner.function.header.abi" '{"System": {"unwind": true}}'
43
39
extern "system-unwind" fn trait_abi_system_unwind ( ) { }
44
40
45
- //@ is "$.index[?(@.name=='trait_abi_vectorcall')].inner.function.header.abi.Other" '"\"vectorcall\""'
46
- extern "vectorcall" fn trait_abi_vectorcall ( ) { }
47
-
48
- //@ is "$.index[?(@.name=='trait_abi_vectorcall_unwind')].inner.function.header.abi.Other" '"\"vectorcall-unwind\""'
49
- extern "vectorcall-unwind" fn trait_abi_vectorcall_unwind ( ) { }
41
+ //@ is "$.index[?(@.name=='trait_abi_rust_cold')].inner.function.header.abi.Other" '"\"rust-cold\""'
42
+ extern "rust-cold" fn trait_abi_rust_cold ( ) { }
50
43
}
Original file line number Diff line number Diff line change
1
+ #![ feature( abi_vectorcall) ]
2
+ //@ only-x86_64
3
+
4
+ //@ is "$.index[?(@.name=='AbiVectorcall')].inner.type_alias.type.function_pointer.header.abi.Other" '"\"vectorcall\""'
5
+ pub type AbiVectorcall = extern "vectorcall" fn ( ) ;
6
+
7
+ //@ is "$.index[?(@.name=='AbiVectorcallUnwind')].inner.type_alias.type.function_pointer.header.abi.Other" '"\"vectorcall-unwind\""'
8
+ pub type AbiVectorcallUnwind = extern "vectorcall-unwind" fn ( ) ;
9
+
10
+ //@ has "$.index[?(@.name=='Foo')]"
11
+ pub struct Foo ;
12
+
13
+ impl Foo {
14
+ //@ is "$.index[?(@.name=='abi_vectorcall')].inner.function.header.abi.Other" '"\"vectorcall\""'
15
+ pub extern "vectorcall" fn abi_vectorcall ( ) { }
16
+
17
+ //@ is "$.index[?(@.name=='abi_vectorcall_unwind')].inner.function.header.abi.Other" '"\"vectorcall-unwind\""'
18
+ pub extern "vectorcall-unwind" fn abi_vectorcall_unwind ( ) { }
19
+ }
20
+
21
+ pub trait Bar {
22
+ //@ is "$.index[?(@.name=='trait_abi_vectorcall')].inner.function.header.abi.Other" '"\"vectorcall\""'
23
+ extern "vectorcall" fn trait_abi_vectorcall ( ) { }
24
+
25
+ //@ is "$.index[?(@.name=='trait_abi_vectorcall_unwind')].inner.function.header.abi.Other" '"\"vectorcall-unwind\""'
26
+ extern "vectorcall-unwind" fn trait_abi_vectorcall_unwind ( ) { }
27
+ }
You can’t perform that action at this time.
0 commit comments