@@ -446,11 +446,11 @@ impl<'a> Linker for GccLinker<'a> {
446
446
// FIXME(81490): ld64 doesn't support these flags but macOS 11
447
447
// has -needed-l{} / -needed_library {}
448
448
// but we have no way to detect that here.
449
- self . sess . dcx ( ) . emit_warning ( errors:: Ld64UnimplementedModifier ) ;
449
+ self . sess . dcx ( ) . emit_warn ( errors:: Ld64UnimplementedModifier ) ;
450
450
} else if self . is_gnu && !self . sess . target . is_like_windows {
451
451
self . linker_arg ( "--no-as-needed" ) ;
452
452
} else {
453
- self . sess . dcx ( ) . emit_warning ( errors:: LinkerUnsupportedModifier ) ;
453
+ self . sess . dcx ( ) . emit_warn ( errors:: LinkerUnsupportedModifier ) ;
454
454
}
455
455
}
456
456
self . hint_dynamic ( ) ;
@@ -504,7 +504,7 @@ impl<'a> Linker for GccLinker<'a> {
504
504
// FIXME(81490): ld64 as of macOS 11 supports the -needed_framework
505
505
// flag but we have no way to detect that here.
506
506
// self.cmd.arg("-needed_framework").arg(framework);
507
- self . sess . dcx ( ) . emit_warning ( errors:: Ld64UnimplementedModifier ) ;
507
+ self . sess . dcx ( ) . emit_warn ( errors:: Ld64UnimplementedModifier ) ;
508
508
}
509
509
self . cmd . arg ( "-framework" ) . arg ( framework) ;
510
510
}
@@ -950,7 +950,7 @@ impl<'a> Linker for MsvcLinker<'a> {
950
950
}
951
951
}
952
952
Err ( error) => {
953
- self . sess . dcx ( ) . emit_warning ( errors:: NoNatvisDirectory { error } ) ;
953
+ self . sess . dcx ( ) . emit_warn ( errors:: NoNatvisDirectory { error } ) ;
954
954
}
955
955
}
956
956
}
@@ -1501,7 +1501,7 @@ impl<'a> Linker for L4Bender<'a> {
1501
1501
1502
1502
fn export_symbols ( & mut self , _: & Path , _: CrateType , _: & [ String ] ) {
1503
1503
// ToDo, not implemented, copy from GCC
1504
- self . sess . dcx ( ) . emit_warning ( errors:: L4BenderExportingSymbolsUnimplemented ) ;
1504
+ self . sess . dcx ( ) . emit_warn ( errors:: L4BenderExportingSymbolsUnimplemented ) ;
1505
1505
return ;
1506
1506
}
1507
1507
0 commit comments