about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-10-26 20:36:51 +0100
committerDavid Wood <david@davidtw.co>2019-11-05 12:44:06 +0000
commit0128f8ee11c31c905205ff6019dcd240b6331d84 (patch)
tree59f4308c02e10941079eaa2658207534e38d9b59 /src/librustc_codegen_llvm/back
parenta515258b3597c60d9af78b7425cb0dff08872c34 (diff)
downloadrust-0128f8ee11c31c905205ff6019dcd240b6331d84.tar.gz
rust-0128f8ee11c31c905205ff6019dcd240b6331d84.zip
codegen_llvm: remove unnecessary "extern C"
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/librustc_codegen_llvm/back')
-rw-r--r--src/librustc_codegen_llvm/back/write.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs
index 6f6c02618ba..bfba1c3ecff 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<LlvmCodegenBackend>,
-                                       msg: &str,
-                                       cookie: c_uint) {
+fn report_inline_asm(cgcx: &CodegenContext<LlvmCodegenBackend>, msg: &str, cookie: c_uint) {
     cgcx.diag_emitter.inline_asm_error(cookie as u32, msg.to_owned());
 }