Skip to content

Commit 0128f8e

Browse files
committed
codegen_llvm: remove unnecessary "extern C"
Signed-off-by: David Wood <david@davidtw.co>
1 parent a515258 commit 0128f8e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_codegen_llvm/back/write.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,7 @@ impl<'a> Drop for DiagnosticHandlers<'a> {
239239
}
240240
}
241241

242-
#[allow(improper_ctypes)]
243-
unsafe extern "C" fn report_inline_asm(cgcx: &CodegenContext<LlvmCodegenBackend>,
244-
msg: &str,
245-
cookie: c_uint) {
242+
fn report_inline_asm(cgcx: &CodegenContext<LlvmCodegenBackend>, msg: &str, cookie: c_uint) {
246243
cgcx.diag_emitter.inline_asm_error(cookie as u32, msg.to_owned());
247244
}
248245

0 commit comments

Comments
 (0)