We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d7246 commit e8ff465Copy full SHA for e8ff465
src/libpanic_unwind/miri.rs
@@ -32,16 +32,11 @@ pub struct _TypeDescriptor {
32
pub name: [u8; 11],
33
}
34
35
-extern "C" {
36
- #[link_name = "\x01??_7type_info@@6B@"]
37
- static TYPE_INFO_VTABLE: *const u8;
38
-}
39
-
40
const TYPE_NAME: [u8; 11] = *b"rust_panic\0";
41
42
#[cfg_attr(not(test), lang = "eh_catch_typeinfo")]
43
static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
44
- pVFTable: unsafe { &TYPE_INFO_VTABLE } as *const _ as *const _,
+ pVFTable: core::ptr::null(),
45
spare: core::ptr::null_mut(),
46
name: TYPE_NAME,
47
};
0 commit comments