about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-15 04:08:10 -0500
committerGitHub <noreply@github.com>2025-01-15 04:08:10 -0500
commit285df03257160fb62ea22b57a47f103739c5ba73 (patch)
tree99a38a6fc9ca9c4953f33fd82cd7382cafabe38d /compiler/rustc_codegen_gcc/example/std_example.rs
parent93ba568ab98f1492a96945ef646eeb898128b2ef (diff)
parent585c9765a203df7cc7b497d848aae4ba979fcb39 (diff)
downloadrust-285df03257160fb62ea22b57a47f103739c5ba73.tar.gz
rust-285df03257160fb62ea22b57a47f103739c5ba73.zip
Rollup merge of #132397 - m-ou-se:warn-missing-abi, r=Nadrieril
Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: https://github.com/rust-lang/rfcs/pull/3722#issuecomment-2447719047

This needs a lang FCP.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
-rw-r--r--compiler/rustc_codegen_gcc/example/std_example.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/example/std_example.rs b/compiler/rustc_codegen_gcc/example/std_example.rs
index 9e43b4635f0..5fa1e0afb06 100644
--- a/compiler/rustc_codegen_gcc/example/std_example.rs
+++ b/compiler/rustc_codegen_gcc/example/std_example.rs
@@ -7,7 +7,7 @@ use std::arch::x86_64::*;
 use std::io::Write;
 use std::ops::Coroutine;
 
-extern {
+extern "C" {
     pub fn printf(format: *const i8, ...) -> i32;
 }