Skip to content

Commit e8ff465

Browse files
committed
avoid linking errors
1 parent 52d7246 commit e8ff465

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/libpanic_unwind/miri.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,11 @@ pub struct _TypeDescriptor {
3232
pub name: [u8; 11],
3333
}
3434

35-
extern "C" {
36-
#[link_name = "\x01??_7type_info@@6B@"]
37-
static TYPE_INFO_VTABLE: *const u8;
38-
}
39-
4035
const TYPE_NAME: [u8; 11] = *b"rust_panic\0";
4136

4237
#[cfg_attr(not(test), lang = "eh_catch_typeinfo")]
4338
static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
44-
pVFTable: unsafe { &TYPE_INFO_VTABLE } as *const _ as *const _,
39+
pVFTable: core::ptr::null(),
4540
spare: core::ptr::null_mut(),
4641
name: TYPE_NAME,
4742
};

0 commit comments

Comments
 (0)