about summary refs log tree commit diff
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
commitdaeeffa83055483e11b4e8a43151b66b8e3dd670 (patch)
tree075fed0048aa9c886af16b4a8b896a230f36f8fb
parentf8b89a3d05e995bd293aaac35d97f4b18b54e8fe (diff)
parent60ee6fbaa464d4d65313a7919c07113ef6068140 (diff)
downloadrust-daeeffa83055483e11b4e8a43151b66b8e3dd670.tar.gz
rust-daeeffa83055483e11b4e8a43151b66b8e3dd670.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.
-rw-r--r--example/mini_core.rs2
-rw-r--r--example/mini_core_hello_world.rs4
-rw-r--r--example/mod_bench.rs2
-rw-r--r--example/std_example.rs2
4 files changed, 5 insertions, 5 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index bd7a4612a92..5a4ee0a198c 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -689,7 +689,7 @@ impl<T> Index<usize> for [T] {
     }
 }
 
-extern {
+extern "C" {
     type VaListImpl;
 }
 
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index dcfa34cb729..1d51e0a1856 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -258,13 +258,13 @@ fn main() {
 
     assert_eq!(((|()| 42u8) as fn(()) -> u8)(()), 42);
 
-    extern {
+    extern "C" {
         #[linkage = "weak"]
         static ABC: *const u8;
     }
 
     {
-        extern {
+        extern "C" {
             #[linkage = "weak"]
             static ABC: *const u8;
         }
diff --git a/example/mod_bench.rs b/example/mod_bench.rs
index cae911c1073..e8a9cade747 100644
--- a/example/mod_bench.rs
+++ b/example/mod_bench.rs
@@ -3,7 +3,7 @@
 #![allow(internal_features)]
 
 #[link(name = "c")]
-extern {}
+extern "C" {}
 
 #[panic_handler]
 fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
diff --git a/example/std_example.rs b/example/std_example.rs
index 9e43b4635f0..5fa1e0afb06 100644
--- a/example/std_example.rs
+++ b/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;
 }