]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no_owned_box_lang_item.rs
Update code to account for extern ABI requirement
[rust.git] / src / test / ui / no_owned_box_lang_item.rs
index b76699c19ac80e7100093ae3d3132197c9419214..c22b44ffca2a4e354fab2cd7ecfaedda8791510d 100644 (file)
@@ -11,6 +11,6 @@ fn main() {
     let x = box 1i32;
 }
 
-#[lang = "eh_personality"] extern fn eh_personality() {}
-#[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {}
+#[lang = "eh_personality"] extern "C" fn eh_personality() {}
+#[lang = "eh_catch_typeinfo"] static EH_CATCH_TYPEINFO: u8 = 0;
 #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} }