@@ -446,11 +446,11 @@ impl<'a> Linker for GccLinker<'a> {
446446 // FIXME(81490): ld64 doesn't support these flags but macOS 11
447447 // has -needed-l{} / -needed_library {}
448448 // 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 ) ;
450450 } else if self . is_gnu && !self . sess . target . is_like_windows {
451451 self . linker_arg ( "--no-as-needed" ) ;
452452 } else {
453- self . sess . dcx ( ) . emit_warning ( errors:: LinkerUnsupportedModifier ) ;
453+ self . sess . dcx ( ) . emit_warn ( errors:: LinkerUnsupportedModifier ) ;
454454 }
455455 }
456456 self . hint_dynamic ( ) ;
@@ -504,7 +504,7 @@ impl<'a> Linker for GccLinker<'a> {
504504 // FIXME(81490): ld64 as of macOS 11 supports the -needed_framework
505505 // flag but we have no way to detect that here.
506506 // self.cmd.arg("-needed_framework").arg(framework);
507- self . sess . dcx ( ) . emit_warning ( errors:: Ld64UnimplementedModifier ) ;
507+ self . sess . dcx ( ) . emit_warn ( errors:: Ld64UnimplementedModifier ) ;
508508 }
509509 self . cmd . arg ( "-framework" ) . arg ( framework) ;
510510 }
@@ -950,7 +950,7 @@ impl<'a> Linker for MsvcLinker<'a> {
950950 }
951951 }
952952 Err ( error) => {
953- self . sess . dcx ( ) . emit_warning ( errors:: NoNatvisDirectory { error } ) ;
953+ self . sess . dcx ( ) . emit_warn ( errors:: NoNatvisDirectory { error } ) ;
954954 }
955955 }
956956 }
@@ -1501,7 +1501,7 @@ impl<'a> Linker for L4Bender<'a> {
15011501
15021502 fn export_symbols ( & mut self , _: & Path , _: CrateType , _: & [ String ] ) {
15031503 // ToDo, not implemented, copy from GCC
1504- self . sess . dcx ( ) . emit_warning ( errors:: L4BenderExportingSymbolsUnimplemented ) ;
1504+ self . sess . dcx ( ) . emit_warn ( errors:: L4BenderExportingSymbolsUnimplemented ) ;
15051505 return ;
15061506 }
15071507
0 commit comments