conmon_common/
lib.rs

1#![allow(clippy::all)]
2pub mod conmon_capnp {
3    #![allow(unused_parens)]
4    include!(concat!(env!("OUT_DIR"), "/proto/conmon_capnp.rs"));
5}
6
7/// Workaround for rustc bug: https://github.com/rust-lang/rust/issues/47493
8///
9/// It shouldn't even be possible to reach this function, thanks to panic=abort,
10/// but libcore is compiled with unwinding enabled and that ends up making unreachable
11/// references to this.
12#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "musl"))]
13mod unwind {
14    #[unsafe(no_mangle)]
15    unsafe extern "C" fn _Unwind_Backtrace() {
16        unimplemented!("_Unwind_Backtrace")
17    }
18    #[unsafe(no_mangle)]
19    unsafe extern "C" fn _Unwind_DeleteException() {
20        unimplemented!("_Unwind_DeleteException")
21    }
22    #[unsafe(no_mangle)]
23    unsafe extern "C" fn _Unwind_GetDataRelBase() {
24        unimplemented!("_Unwind_GetDataRelBase")
25    }
26    #[unsafe(no_mangle)]
27    unsafe extern "C" fn _Unwind_GetIP() {
28        unimplemented!("_Unwind_GetIP")
29    }
30    #[unsafe(no_mangle)]
31    unsafe extern "C" fn _Unwind_GetIPInfo() {
32        unimplemented!("_Unwind_GetIPInfo")
33    }
34    #[unsafe(no_mangle)]
35    unsafe extern "C" fn _Unwind_GetLanguageSpecificData() {
36        unimplemented!("_Unwind_GetLanguageSpecificData")
37    }
38    #[unsafe(no_mangle)]
39    unsafe extern "C" fn _Unwind_GetRegionStart() {
40        unimplemented!("_Unwind_GetRegionStart")
41    }
42    #[unsafe(no_mangle)]
43    unsafe extern "C" fn _Unwind_GetTextRelBase() {
44        unimplemented!("_Unwind_GetTextRelBase")
45    }
46    #[unsafe(no_mangle)]
47    unsafe extern "C" fn _Unwind_RaiseException() {
48        unimplemented!("_Unwind_RaiseException")
49    }
50    #[unsafe(no_mangle)]
51    unsafe extern "C" fn _Unwind_Resume() {
52        unimplemented!("_Unwind_Resume")
53    }
54    #[unsafe(no_mangle)]
55    unsafe extern "C" fn _Unwind_SetGR() {
56        unimplemented!("_Unwind_SetGR")
57    }
58    #[unsafe(no_mangle)]
59    unsafe extern "C" fn _Unwind_SetIP() {
60        unimplemented!("_Unwind_SetIP")
61    }
62    #[unsafe(no_mangle)]
63    unsafe extern "C" fn _Unwind_FindEnclosingFunction() {
64        unimplemented!("_Unwind_FindEnclosingFunction")
65    }
66    #[unsafe(no_mangle)]
67    unsafe extern "C" fn _Unwind_GetCFA() {
68        unimplemented!("_Unwind_GetCFA")
69    }
70    #[cfg(target_arch = "arm")]
71    #[unsafe(no_mangle)]
72    unsafe extern "C" fn _Unwind_VRS_Get() {
73        unimplemented!("_Unwind_VRS_Get")
74    }
75    #[cfg(target_arch = "arm")]
76    #[unsafe(no_mangle)]
77    unsafe extern "C" fn _Unwind_VRS_Set() {
78        unimplemented!("_Unwind_VRS_Set")
79    }
80    #[cfg(target_arch = "arm")]
81    #[unsafe(no_mangle)]
82    unsafe extern "C" fn __aeabi_unwind_cpp_pr0() {
83        unimplemented!("__aeabi_unwind_cpp_pr0")
84    }
85    #[cfg(target_arch = "arm")]
86    #[unsafe(no_mangle)]
87    unsafe extern "C" fn __aeabi_unwind_cpp_pr1() {
88        unimplemented!("__aeabi_unwind_cpp_pr1")
89    }
90    #[cfg(target_arch = "arm")]
91    #[unsafe(no_mangle)]
92    unsafe extern "C" fn __gnu_unwind_frame() {
93        unimplemented!("__gnu_unwind_frame")
94    }
95}