diff options
| author | Ralf Jung <post@ralfj.de> | 2019-11-16 09:37:45 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-11-16 09:37:45 +0100 |
| commit | e8ff4656fcfc4df97f5d0124c999cb5392a15dcb (patch) | |
| tree | 18e7433ff574a161adbcb4379be2317c71499caf | |
| parent | 52d7246a9368048154b9cb666f4b7a79377bd17d (diff) | |
| download | rust-e8ff4656fcfc4df97f5d0124c999cb5392a15dcb.tar.gz rust-e8ff4656fcfc4df97f5d0124c999cb5392a15dcb.zip | |
avoid linking errors
| -rw-r--r-- | src/libpanic_unwind/miri.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libpanic_unwind/miri.rs b/src/libpanic_unwind/miri.rs index 7fdbf46ea48..f26c42fd4bc 100644 --- a/src/libpanic_unwind/miri.rs +++ b/src/libpanic_unwind/miri.rs @@ -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, }; |
