File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ impl<T> Index<usize> for [T] {
681
681
}
682
682
}
683
683
684
- extern {
684
+ extern "C" {
685
685
type VaListImpl ;
686
686
}
687
687
Original file line number Diff line number Diff line change @@ -258,13 +258,13 @@ fn main() {
258
258
259
259
assert_eq ! ( ( ( |( ) | 42u8 ) as fn ( ( ) ) -> u8 ) ( ( ) ) , 42 ) ;
260
260
261
- extern {
261
+ extern "C" {
262
262
#[ linkage = "weak" ]
263
263
static ABC : * const u8 ;
264
264
}
265
265
266
266
{
267
- extern {
267
+ extern "C" {
268
268
#[ linkage = "weak" ]
269
269
static ABC : * const u8 ;
270
270
}
Original file line number Diff line number Diff line change 3
3
#![ allow( internal_features) ]
4
4
5
5
#[ link( name = "c" ) ]
6
- extern { }
6
+ extern "C" { }
7
7
8
8
#[ panic_handler]
9
9
fn panic_handler ( _: & core:: panic:: PanicInfo < ' _ > ) -> ! {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::arch::x86_64::*;
7
7
use std:: io:: Write ;
8
8
use std:: ops:: Coroutine ;
9
9
10
- extern {
10
+ extern "C" {
11
11
pub fn printf ( format : * const i8 , ...) -> i32 ;
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments