Skip to content

Commit

Permalink
avoid linking errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 16, 2019
1 parent 52d7246 commit e8ff465
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/libpanic_unwind/miri.rs
Expand Up @@ -32,16 +32,11 @@ pub struct _TypeDescriptor {
pub name: [u8; 11],
}

extern "C" {
#[link_name = "\x01??_7type_info@@6B@"]
static TYPE_INFO_VTABLE: *const u8;
}

const TYPE_NAME: [u8; 11] = *b"rust_panic\0";

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

0 comments on commit e8ff465

Please sign in to comment.