From 0128f8ee11c31c905205ff6019dcd240b6331d84 Mon Sep 17 00:00:00 2001 From: David Wood Date: Sat, 26 Oct 2019 20:36:51 +0100 Subject: [PATCH] codegen_llvm: remove unnecessary "extern C" Signed-off-by: David Wood --- src/librustc_codegen_llvm/back/write.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs index 6f6c02618ba1..bfba1c3ecff3 100644 --- a/src/librustc_codegen_llvm/back/write.rs +++ b/src/librustc_codegen_llvm/back/write.rs @@ -239,10 +239,7 @@ impl<'a> Drop for DiagnosticHandlers<'a> { } } -#[allow(improper_ctypes)] -unsafe extern "C" fn report_inline_asm(cgcx: &CodegenContext, - msg: &str, - cookie: c_uint) { +fn report_inline_asm(cgcx: &CodegenContext, msg: &str, cookie: c_uint) { cgcx.diag_emitter.inline_asm_error(cookie as u32, msg.to_owned()); }