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] {
681681 }
682682}
683683
684- extern {
684+ extern "C" {
685685 type VaListImpl ;
686686}
687687
Original file line number Diff line number Diff line change @@ -258,13 +258,13 @@ fn main() {
258258
259259 assert_eq ! ( ( ( |( ) | 42u8 ) as fn ( ( ) ) -> u8 ) ( ( ) ) , 42 ) ;
260260
261- extern {
261+ extern "C" {
262262 #[ linkage = "weak" ]
263263 static ABC : * const u8 ;
264264 }
265265
266266 {
267- extern {
267+ extern "C" {
268268 #[ linkage = "weak" ]
269269 static ABC : * const u8 ;
270270 }
Original file line number Diff line number Diff line change 33#![ allow( internal_features) ]
44
55#[ link( name = "c" ) ]
6- extern { }
6+ extern "C" { }
77
88#[ panic_handler]
99fn panic_handler ( _: & core:: panic:: PanicInfo < ' _ > ) -> ! {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::arch::x86_64::*;
77use std:: io:: Write ;
88use std:: ops:: Coroutine ;
99
10- extern {
10+ extern "C" {
1111 pub fn printf ( format : * const i8 , ...) -> i32 ;
1212}
1313
You can’t perform that action at this time.
0 commit comments