]> git.lizzy.rs Git - rust.git/commitdiff
avoid linking errors
authorRalf Jung <post@ralfj.de>
Sat, 16 Nov 2019 08:37:45 +0000 (09:37 +0100)
committerRalf Jung <post@ralfj.de>
Sat, 16 Nov 2019 08:37:45 +0000 (09:37 +0100)
src/libpanic_unwind/miri.rs

index 7fdbf46ea487def2da2d77f096c66d2159db21aa..f26c42fd4bcbaac9c707b22ff7b50fd961b64e98 100644 (file)
@@ -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,
 };